Re: [netmod] <CODE BEGINS> file "ietf-foo@2016-03-20.yang" or <CODE BEGINS> file "ietf-foo.yang"

Robert Wilton <rwilton@cisco.com> Fri, 24 March 2017 18:35 UTC

Return-Path: <rwilton@cisco.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 EB571127876 for <netmod@ietfa.amsl.com>; Fri, 24 Mar 2017 11:35:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.522
X-Spam-Level:
X-Spam-Status: No, score=-14.522 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, 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 e6tuLcUnbNip for <netmod@ietfa.amsl.com>; Fri, 24 Mar 2017 11:35:57 -0700 (PDT)
Received: from aer-iport-3.cisco.com (aer-iport-3.cisco.com [173.38.203.53]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2AE51126C2F for <netmod@ietf.org>; Fri, 24 Mar 2017 11:35:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=12492; q=dns/txt; s=iport; t=1490380557; x=1491590157; h=subject:to:references:cc:from:message-id:date: mime-version:in-reply-to; bh=RPQBUtLt6pcTsvBSJZobKBr3N57BTbEgrrQbgdckvJg=; b=My3wT9V8klcS/3E4TfwT1ZbtpBXioM18nxQ50zBvpFe/A2vFkICCDEN+ Q/BcBsJZRkCethO7NAa+DJPQsQT4cvPoeFJaO5qkIaxPKec9K+ErUckz1 DoCObjQdUplHM2E2axtPC/2jjuWVlbjsK5PtjM4+ILyIl+SoepdHFxVlB M=;
X-IronPort-AV: E=Sophos;i="5.36,216,1486425600"; d="scan'208,217";a="651682364"
Received: from aer-iport-nat.cisco.com (HELO aer-core-1.cisco.com) ([173.38.203.22]) by aer-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Mar 2017 18:35:55 +0000
Received: from [10.61.230.242] ([10.61.230.242]) by aer-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id v2OIZp97030655; Fri, 24 Mar 2017 18:35:52 GMT
To: Andy Bierman <andy@yumaworks.com>, Martin Bjorklund <mbj@tail-f.com>
References: <30B9FE1D-D8E8-4255-847B-DBAD1AA6E73D@juniper.net> <f536f12f-3afa-2501-12ff-15c8159c59e0@cisco.com> <146c5483-6e6d-a581-781b-bf5351b1df68@cisco.com> <20170324.144408.1191664098390131544.mbj@tail-f.com> <CABCOCHTVpg=JMsmcGuhYfbqLWHPJToSUORU8hRuqSgmEKma7dw@mail.gmail.com>
Cc: Joe Marcus Clarke <jclarke@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <0d6144bc-c0ff-4a47-c4bc-46aae6d7a856@cisco.com>
Date: Fri, 24 Mar 2017 18:35:48 +0000
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <CABCOCHTVpg=JMsmcGuhYfbqLWHPJToSUORU8hRuqSgmEKma7dw@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------15D3237E366D172B17ABB40A"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/iI0A3NqdPoI3Y5B08WmdKWf-JDI>
Subject: Re: [netmod] <CODE BEGINS> file "ietf-foo@2016-03-20.yang" or <CODE BEGINS> file "ietf-foo.yang"
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Fri, 24 Mar 2017 18:36:00 -0000


On 24/03/2017 17:07, Andy Bierman wrote:
>
>
> On Fri, Mar 24, 2017 at 6:44 AM, Martin Bjorklund <mbj@tail-f.com 
> <mailto:mbj@tail-f.com>> wrote:
>
>     Robert Wilton <rwilton@cisco.com <mailto:rwilton@cisco.com>> wrote:
>     >
>     >
>     > On 24/03/2017 08:09, Benoit Claise wrote:
>     > > On 3/24/2017 2:32 AM, Kent Watsen wrote:
>     > >> Hi Benoit,
>     > >>
>     > >> Section 4.2 of rfc6187bis says:
>     > >>
>     > >>     The "<CODE BEGINS>" tag SHOULD be followed by a string
>     > >>     identifying the file name specified in Section 5.2 of
>     > >>     [RFC7950].
>     > >>
>     > >> While Section 5.2 of RFC7950 says:
>     > >>
>     > >>     The name of the file SHOULD be of the form:
>     > >>
>     > >>       module-or-submodule-name ['@' revision-date] ( '.yang'
>     / '.yin' )
>     > >>
>     > >>     "module-or-submodule-name" is the name of the module or
>     > >>     submodule, and the optional "revision-date" is the latest
>     > >>     revision of the module or submodule, as defined by the
>     > >>     "revision" statement (Section 7.1.9).
>     > >>
>     > >> While the SHOULD statements provide a recommendation, the
>     > >> square-brackets "[]" impart no bias, and the text is ambiguous.
>     > >> That is, is the revision-date optional *only* because the
>     > >> revision statement is optional within the module?  What is
>     > >> the recommendation for when the revision statement is present?
>     > >> The RFC7950 text isn't clear.
>     > >>
>     > >> My opinion is that RFC7950 errata should state that the file
>     > >> name SHOULD include the revision-date when the revision
>     > >> statement appears within the module.
>     > > That makes sense.
>     > > Any other views?
>     >
>     > I don't feel strongly, but would it make more sense if instead
>     > rfc6187bis stated that the file name SHOULD include the revision
>     date?
>     > I.e. 7950 states what the filename is allowed to look like and
>     6187bis
>     > states what they should look like for IETF produced models.
>
>     +1
>
>
> This is fine, but this there is a larger goal of library consistency 
> that is
> impacted by this guideline. (such as the github/YangModels/yang repo.
>
> 1) changing the filename for each revision is not git-friendly
> (if one wants to track changes over releases)
Perhaps this is a difference between a development version (maybe being 
worked on in a separate directory in git) vs a published version, and by 
published I mean any draft revision.

>
> 2) many revisions are actually obsolete work-in-progress
> so keeping every old file around will grow into a problem
For the YANG models in RFCs, I guess that they are effectively published 
forever in github.
But for drafts, I think that they can could be removed from github at 
the point that there is no other current draft that references them, 
which should be scriptable.

>
> 3) almost every import is import-without-revision so compiling the
> old obsolete modules quickly breaks as the new work-in-progress version
> makes incompatible changes.
Yes.

Perhaps YANG is missing an "import with revision X or greater" (given 
that revisions are expected to be backwards compatible)?

>
> However, import-by-revision breaks if you only keep the latest 
> revision around,
> so these problems have to be managed by the YANG librarians ;-)
I agree.

>
>
>
>
>     /martin
>
>
> Andy
>
>     _______________________________________________
>     netmod mailing list
>     netmod@ietf.org <mailto:netmod@ietf.org>
>     https://www.ietf.org/mailman/listinfo/netmod
>     <https://www.ietf.org/mailman/listinfo/netmod>
>
>