[netconf] Clarification on NETCONF edit-config default-operation replace

"Ivory, William" <william.ivory@intl.att.com> Thu, 05 March 2020 12:35 UTC

Return-Path: <william.ivory@intl.att.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E7C1B3A140B for <netconf@ietfa.amsl.com>; Thu, 5 Mar 2020 04:35:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pRgALyqhIHDy for <netconf@ietfa.amsl.com>; Thu, 5 Mar 2020 04:35:03 -0800 (PST)
Received: from mx0a-00191d01.pphosted.com (mx0b-00191d01.pphosted.com [67.231.157.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 32F5A3A1417 for <netconf@ietf.org>; Thu, 5 Mar 2020 04:35:02 -0800 (PST)
Received: from pps.filterd (m0049458.ppops.net [127.0.0.1]) by m0049458.ppops.net-00191d01. (8.16.0.42/8.16.0.42) with SMTP id 025CVl53036995 for <netconf@ietf.org>; Thu, 5 Mar 2020 07:35:02 -0500
Received: from alpi155.enaf.aldc.att.com (sbcsmtp7.sbc.com [144.160.229.24]) by m0049458.ppops.net-00191d01. with ESMTP id 2yjym3vta4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <netconf@ietf.org>; Thu, 05 Mar 2020 07:35:01 -0500
Received: from enaf.aldc.att.com (localhost [127.0.0.1]) by alpi155.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id 025CZ1ap007839 for <netconf@ietf.org>; Thu, 5 Mar 2020 07:35:01 -0500
Received: from zlp27130.vci.att.com (zlp27130.vci.att.com [135.66.87.38]) by alpi155.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id 025CYt55007778 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <netconf@ietf.org>; Thu, 5 Mar 2020 07:34:56 -0500
Received: from zlp27130.vci.att.com (zlp27130.vci.att.com [127.0.0.1]) by zlp27130.vci.att.com (Service) with ESMTP id 1A9314009E7B for <netconf@ietf.org>; Thu, 5 Mar 2020 12:34:55 +0000 (GMT)
Received: from gbcdcmbx17.intl.att.com (unknown [135.76.180.53]) by zlp27130.vci.att.com (Service) with ESMTPS id BD36D4014CA0 for <netconf@ietf.org>; Thu, 5 Mar 2020 12:34:54 +0000 (GMT)
Received: from gbcdcmbx15.intl.att.com (135.76.180.51) by gbcdcmbx17.intl.att.com (135.76.180.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1913.5; Thu, 5 Mar 2020 12:34:52 +0000
Received: from gbcdcmbx15.intl.att.com ([fe80::7999:cd57:9ab3:a961]) by gbcdcmbx15.intl.att.com ([fe80::7999:cd57:9ab3:a961%5]) with mapi id 15.01.1913.005; Thu, 5 Mar 2020 12:34:52 +0000
From: "Ivory, William" <william.ivory@intl.att.com>
To: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: Clarification on NETCONF edit-config default-operation replace
Thread-Index: AQHV8up3fXrFXOpHlkeLycpqDm3qRQ==
Date: Thu, 05 Mar 2020 12:34:52 +0000
Message-ID: <b586413eb1a939e144191c07ea8267843ac092bd.camel@intl.att.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-mailer: Evolution 3.28.5-0ubuntu0.18.04.1
x-originating-ip: [135.76.168.250]
Content-Type: multipart/alternative; boundary="_000_b586413eb1a939e144191c07ea8267843ac092bdcamelintlattcom_"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-03-05_03:2020-03-05, 2020-03-05 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 clxscore=1011 spamscore=0 mlxscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 mlxlogscore=486 phishscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2003050081
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/r65c9U3dbyv5NLuKr3PRNuvYvoI>
Subject: [netconf] Clarification on NETCONF edit-config default-operation replace
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Mar 2020 12:35:11 -0000

Hi,

I'd appreciate clarification on the following NETCONF operations relating to copy-config and edit-config:

My understanding is as follows:

- <copy-config> completely replaces any existing configuration

- <edit-config> with operation:replace attribute will replace any existing configuration with new configuration for nodes specified inside the <config> operation. The attribute may be at any level in the request, and applies only to the node specified and nodes under that node.

Where I'm not clear is the <edit-config> operation with the default-operation parameter set to replace. RFC 6241 section 7.2 states:


         replace:  The configuration data in the <config> parameter
            completely replaces the configuration in the target
            datastore.  This is useful for loading previously saved
            configuration data.


Does this mean that this is the equivalent of the <copy-config> operation, ie ALL existing configuration should be removed, even if there is no explicit replacement in the new <config> section?

Thanks,

William