Re: [netmod] example modules in 6087bis

Martin Bjorklund <mbj@tail-f.com> Tue, 24 January 2017 19:26 UTC

Return-Path: <mbj@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 D9735129675 for <netmod@ietfa.amsl.com>; Tue, 24 Jan 2017 11:26:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.1
X-Spam-Level:
X-Spam-Status: No, score=-5.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-3.199, 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 eSBlTfbx4yb9 for <netmod@ietfa.amsl.com>; Tue, 24 Jan 2017 11:26:32 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 33DD9129671 for <netmod@ietf.org>; Tue, 24 Jan 2017 11:26:32 -0800 (PST)
Received: from localhost (h-13-76.a165.priv.bahnhof.se [155.4.13.76]) by mail.tail-f.com (Postfix) with ESMTPSA id 67FF61AE0402; Tue, 24 Jan 2017 20:26:30 +0100 (CET)
Date: Tue, 24 Jan 2017 20:26:30 +0100
Message-Id: <20170124.202630.843995888894291234.mbj@tail-f.com>
To: kwatsen@juniper.net
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <093ED4A3-081D-418A-B233-E75148133635@juniper.net>
References: <CABCOCHRkFwDrQrGqk61nh-3fc+emtJEshdEMqA+G4r2YaKxwdg@mail.gmail.com> <003354d9-841f-37b2-a594-6e9983110984@cisco.com> <093ED4A3-081D-418A-B233-E75148133635@juniper.net>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/xx3SI-gb7ZprI4GiJOGqr6XR8aA>
Cc: netmod@ietf.org
Subject: Re: [netmod] example modules in 6087bis
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, 24 Jan 2017 19:26:34 -0000

Kent Watsen <kwatsen@juniper.net> wrote:
> Hi Andy,
> 
> I think this discussion has come to a head.  Please submit an updated 6087bis as soon as you can.  Some comments:
> 
> 
> 1) on the 3rd line below, should the text clarify that --ietf is only for IETF modules?  Also, how does the MUST here jive with the SHOULD in Section 4.10?
> 
>    - MUST use CODE BEGINS for a real module
>    - MUST NOT use CODE BEGINS for an example module
>    - MUST pass pyang --ietf for a real module
>    - MUST pass pyang for example module
> 
> 
> 2) related to #1, Section 5 says "In general, modules in IETF Standards Track specifications MUST comply with all syntactic and semantic requirements of YANG [RFC7950]."
> 
>    First, what does "In general...MUST" mean?  - maybe the 
>    sentence should start with "Modules in IETF..."?
> 
>    Second, can we add a statement for non-IETF SDOs that might
>    have other conventions/restrictions?  Would we recommend
>    --strict for starters, until they can add an SDO-specific
>    flag (e.g., --<sdo>) to pyang?

We wouldn't talk about any specific tool; we'd just talk about
compliance with this document.  Other SDOs will have to decide on
their own rules, but we can suggest that they use all our rules except
the naming convention for modules and namespaces.


> 3) The first paragraph in Section 4.6 isn't clear, how about this?
> 
>  OLD
>    This section contains the module(s) defined by the specification.
>    These modules SHOULD be written using the YANG syntax defined in
>    [RFC7950].  YANG 1.0 [RFC6020] MAY be used if no YANG 1.1 constructs
>    or semantics are needed in the module.
> 
>  NEW
>    This section contains the module(s) defined by the YANG specification.
>    These modules SHOULD be written using the YANG 1.1 [RFC7950] syntax;
>    YANG 1.0 [RFC6020] syntax MAY be used if no YANG 1.1 constructs
>    or semantics are needed in the module.
> 
>  Note: this reads better, but I wonder, since YANG 1.0 syntax is a
>  subset of YANG 1.1 syntax, what is really being said here? - that
>  yang-version statement is optional?  Or maybe, instead of focusing
>  on syntax, the statement should regard the version of YANG used?

The point is that yang-version 1.1 SHOULD be used, and yang-version 1
MAY be used.

> 4) Lastly, picking up on this discussion:
> 
>      https://www.ietf.org/mail-archive/web/netmod/current/msg17277.html.
> 
>    can add an Informational reference to RFC 4151 in Section 5.9?
>    Maybe something like this:
> 
>  OLD
> 
>    The following examples are for non-Standards-Track modules.  The
>    domain "example.com" SHOULD be used in all namespace URIs for example
>    modules.
> 
>        http://example.com/ns/example-interfaces
> 
>        http://example.com/ns/example-system
> 
>  NEW
> 
>    The following URIs exemplify what might be used by non Standards
>    Track modules.  Note that the domain "example.com" SHOULD be used
>    by example modules in IETF drafts.
> 
>    Example URIs using URLs per RFC 3986 [RFC3986]:
> 
>        http://example.com/ns/example-interfaces
>        http://example.com/ns/example-system
> 
>    Example URIs using tags per RFC 4151 [RFC4151]:
>  
>        tag:example.com,2017:example-interfaces
>        tag:example.com,2017:example-system

I would like to see urn:example:<module-name>, that's what I usually
use here.


/martin