Re: [netmod] RFC 7950 on The YANG 1.1 Data Modeling Language

Per Hedeland <per@tail-f.com> Thu, 01 September 2016 22:35 UTC

Return-Path: <per@tail-f.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 3A85012D08C for <netmod@ietfa.amsl.com>; Thu, 1 Sep 2016 15:35:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.449
X-Spam-Level:
X-Spam-Status: No, score=-2.449 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.548, 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 utyaBK2x1jLu for <netmod@ietfa.amsl.com>; Thu, 1 Sep 2016 15:35:30 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id BE15C12D76A for <netmod@ietf.org>; Thu, 1 Sep 2016 15:35:30 -0700 (PDT)
Received: from pluto.hedeland.org (h194n2-hy-a32.ias.bredband.telia.com [81.228.176.194]) by mail.tail-f.com (Postfix) with ESMTPSA id BC8501AE0351; Fri, 2 Sep 2016 00:35:28 +0200 (CEST)
To: Phil Shafer <phil@juniper.net>
References: <201609012214.u81MErfX004479@idle.juniper.net>
From: Per Hedeland <per@tail-f.com>
Message-ID: <57C8AD30.9020609@tail-f.com>
Date: Fri, 02 Sep 2016 00:35:28 +0200
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0
MIME-Version: 1.0
In-Reply-To: <201609012214.u81MErfX004479@idle.juniper.net>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/hcWCplochJ6Cgpl4k6YS3nXRMXE>
Cc: netmod@ietf.org
Subject: Re: [netmod] RFC 7950 on The YANG 1.1 Data Modeling Language
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: Thu, 01 Sep 2016 22:35:32 -0000

On 2016-09-02 00:14, Phil Shafer wrote:
> Martin Bjorklund writes:
>> See Section 1.1 (Summary of Changes from RFC 6020)
> 
> I may be missing something but it says:
> 
>     o Allow "choice" as a shorthand "case" statement (see
>       Section 7.9.2).
> 
> which is definitely in 6020.

No, it isn't:

7.9.1.  The choice's Substatements

                 +--------------+---------+-------------+
                 | substatement | section | cardinality |
                 +--------------+---------+-------------+
                 | anyxml       | 7.10    | 0..n        |
                 | case         | 7.9.2   | 0..n        |
                 | config       | 7.19.1  | 0..1        |
                 | container    | 7.5     | 0..n        |
                 | default      | 7.9.3   | 0..1        |
                 | description  | 7.19.3  | 0..1        |
                 | if-feature   | 7.18.2  | 0..n        |
                 | leaf         | 7.6     | 0..n        |
                 | leaf-list    | 7.7     | 0..n        |
                 | list         | 7.8     | 0..n        |
                 | mandatory    | 7.9.4   | 0..1        |
                 | reference    | 7.19.4  | 0..1        |
                 | status       | 7.19.2  | 0..1        |
                 | when         | 7.19.5  | 0..1        |
                 +--------------+---------+-------------+

7.9.2.  The choice's case Statement
   ...
   As a shorthand, the "case" statement can be omitted if the branch
   contains a single "anyxml", "container", "leaf", "list", or
   "leaf-list" statement.

--Per