[Netconf] Existence of Non-Presence Containers

"Gary Wu (garywu)" <garywu@cisco.com> Thu, 28 June 2018 16:54 UTC

Return-Path: <garywu@cisco.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 74E2A130EBE for <netconf@ietfa.amsl.com>; Thu, 28 Jun 2018 09:54:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.51
X-Spam-Level:
X-Spam-Status: No, score=-14.51 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com
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 Ge1gK9XOL6ez for <netconf@ietfa.amsl.com>; Thu, 28 Jun 2018 09:54:03 -0700 (PDT)
Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 81DD8130E9D for <netconf@ietf.org>; Thu, 28 Jun 2018 09:54:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=11460; q=dns/txt; s=iport; t=1530204843; x=1531414443; h=from:to:subject:date:message-id:mime-version; bh=kUREXvlc+RCFHbAr6T/tZMPpPyyNP6NQuP1YXIvfWV4=; b=UM0V4IH1Th6Vi1j7wgdiZaA2D7thPC+ay+90wrzT15PFRx8kW4DoOCjw JFJ5TLfUv7Saybl+5bMCPSEWovXi81fbxsxkKgiIBvniPW9N0dLjCJt34 pq4gn17XK5orMIb36ZgE6gfkKNNqH415G1/hFYK3H8hrVROz/g/kbb6fY Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0ByAgDxETVb/4UNJK1dGgEBAQEBAgEBAQEIAQEBAYJTdmJ/MoNvlEKBZZA3hQmBeguFBYMDITYWAQIBAQIBAQJtHQuFYGgBSgIEMCcEgzMBgRtkrTSCHIRbg3iBHIhtgVY/gTYMh0CDFzGCJAKRXYdhCQKBO41ZgUCGcYUckVICERMBgSQkDSSBUnAVZQGCP5BQkC+BGgEB
X-IronPort-AV: E=Sophos;i="5.51,284,1526342400"; d="scan'208,217";a="135421773"
Received: from alln-core-11.cisco.com ([173.36.13.133]) by alln-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2018 16:54:02 +0000
Received: from XCH-RCD-010.cisco.com (xch-rcd-010.cisco.com [173.37.102.20]) by alln-core-11.cisco.com (8.14.5/8.14.5) with ESMTP id w5SGs22R011743 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for <netconf@ietf.org>; Thu, 28 Jun 2018 16:54:02 GMT
Received: from xch-rcd-006.cisco.com (173.37.102.16) by XCH-RCD-010.cisco.com (173.37.102.20) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Thu, 28 Jun 2018 11:54:02 -0500
Received: from xch-rcd-006.cisco.com ([173.37.102.16]) by XCH-RCD-006.cisco.com ([173.37.102.16]) with mapi id 15.00.1320.000; Thu, 28 Jun 2018 11:54:02 -0500
From: "Gary Wu (garywu)" <garywu@cisco.com>
To: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: Existence of Non-Presence Containers
Thread-Index: AQHUDwCdjdzZKkMBN0+Bh3irTx6eNA==
Date: Thu, 28 Jun 2018 16:54:02 +0000
Message-ID: <928D9971-527D-4BB0-9200-D2C32CD4869D@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.24.66.159]
Content-Type: multipart/alternative; boundary="_000_928D9971527D4BB09200D2C32CD4869Dciscocom_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/6H5Xrc7uSsGDuC6w5ywSVZpVIZc>
Subject: [Netconf] Existence of Non-Presence Containers
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: Network Configuration WG mailing 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, 28 Jun 2018 16:54:06 -0000

Hi NETCONF WG,

I have a question about the definition of existence as it applies to
non-presence containers and the expected behavior when one performs a "create"
or "delete" operation on them in an <edit-config>.

RFC 6020 states:

7.5.8.  NETCONF <edit-config> Operations
   ...

   If a container does not have a "presence" statement and the last
   child node is deleted, the NETCONF server MAY delete the container.
   ...

The way I read this is that the existence of non-presence containers that have
no child data, as it relates to <edit-config>, is implementation-defined.

Another place where the existence of non-presence containers is mentioned is
for the XPath context.

RFC 7950 states:

6.4.1.  XPath Context
   ...

   If a node that exists in the accessible tree has a non-presence
   container as a child, then the non-presence container also exists in
   the accessible tree.
   ...

This seems to clearly define existence for non-presence containers, which has
implications on whether the container's child "must" statements are evaluated.
However, it does not say whether existence in the XPath context is equivalent
to existence in <edit-config> operations.  As well, this passage seems to have
been introduced for YANG 1.1 and is not present in RFC 6020.

Thanks,
Gary Wu