Re: [netmod] Yang 1.1 change: Allow type "empty" in a key.

Alex Campbell <Alex.Campbell@Aviatnet.com> Tue, 14 February 2017 20:58 UTC

Return-Path: <Alex.Campbell@Aviatnet.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 091B612987C for <netmod@ietfa.amsl.com>; Tue, 14 Feb 2017 12:58:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-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 DrsviujVJQsf for <netmod@ietfa.amsl.com>; Tue, 14 Feb 2017 12:58:55 -0800 (PST)
Received: from mail-send.aviatnet.com (mail-send.aviatnet.com [192.147.115.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E2F99129878 for <netmod@ietf.org>; Tue, 14 Feb 2017 12:58:55 -0800 (PST)
From: Alex Campbell <Alex.Campbell@Aviatnet.com>
To: "Martin Ciglan -X (mciglan - PANTHEON TECHNOLOGIES at Cisco)" <mciglan@cisco.com>
Thread-Topic: Yang 1.1 change: Allow type "empty" in a key.
Thread-Index: AQHShsjv5qSguYqtGEOf5dz8Fc9fB6Fo+6Ci
Date: Tue, 14 Feb 2017 20:58:54 +0000
Message-ID: <1487105934602.29661@Aviatnet.com>
References: <1487080134376.87476@cisco.com>
In-Reply-To: <1487080134376.87476@cisco.com>
Accept-Language: en-NZ, en-US
Content-Language: en-NZ
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.15.6.10]
Content-Type: multipart/alternative; boundary="_000_148710593460229661Aviatnetcom_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/dAG1kx2SFY9K7D1frAdgjqH86Po>
Cc: "Igor Foltin -X (ifoltin - PANTHEON TECHNOLOGIES at Cisco)" <ifoltin@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
Subject: Re: [netmod] Yang 1.1 change: Allow type "empty" in a key.
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 14 Feb 2017 20:58:57 -0000

Hi,


It means exactly what the summary says. In YANG 1.0 (RFC 6020) we have:

   A leaf that is part of the key can be of any built-in or derived
   type, except it MUST NOT be the built-in type "empty".

and in YANG 1.1 (RFC 7950) we have:

   A leaf that is part of the key can be of any built-in or
   derived type.

In YANG 1.1, leaves of type "empty" are not disallowed from being keys.

Note that since leaves of type "empty" only convey information through their presence or absence, and since
key leaves must always be present, key leaves of type "empty" convey no useful information.



Alex



________________________________
From: netmod <netmod-bounces@ietf.org> on behalf of Martin Ciglan -X (mciglan - PANTHEON TECHNOLOGIES at Cisco) <mciglan@cisco.com>
Sent: Wednesday, 15 February 2017 2:48 a.m.
To: netmod@ietf.org
Cc: Igor Foltin -X (ifoltin - PANTHEON TECHNOLOGIES at Cisco)
Subject: [netmod] Yang 1.1 change: Allow type "empty" in a key.


Hi all


Yang 1.1 change:  Allow type "empty" in a key.


What is the meaning of this change? We're interested from implementation point of view.


  Thanks


       Martin