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

Andy Bierman <andy@yumaworks.com> Fri, 24 March 2017 17:07 UTC

Return-Path: <andy@yumaworks.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 8E6CF12704B for <netmod@ietfa.amsl.com>; Fri, 24 Mar 2017 10:07:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 eEVVLV_szd3J for <netmod@ietfa.amsl.com>; Fri, 24 Mar 2017 10:07:17 -0700 (PDT)
Received: from mail-wr0-x233.google.com (mail-wr0-x233.google.com [IPv6:2a00:1450:400c:c0c::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E933D12949A for <netmod@ietf.org>; Fri, 24 Mar 2017 10:07:15 -0700 (PDT)
Received: by mail-wr0-x233.google.com with SMTP id u1so5802522wra.2 for <netmod@ietf.org>; Fri, 24 Mar 2017 10:07:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Vdrw6Ml686648NkSrlLNn5VqNiciNcCXtcULiwBpXko=; b=0oeMfYjqAk6beCaZHnFYD8C5JO2bvr9oQ+ZNTqwM9wjmoAbNkFlQTEkqziSNmlNzfF SEIN8XtywDXoDNCYM5QyB8a3c+TJixzMNzKQQi8r6ml/+BQqg3GzSdi3l89QflGGr2qY vcdJMgVFWV/SqcbKRgdq6/5d7tZ3BwYyC8b9hqb+erwY/l99/yy4tOKdJMmwGSyEKuuG hDpksahau6kFUwWL767jV0PbfUvBARohk7AlwWSgkuHIANYBJahqC9qz+635m2TcPPn6 d+rWxrfer0zQ6mi1asinnQCAcVjZRzRy1K5w5lJ8PBZtvAYHtYB9sUC9d9cKCWIlZhjG tyIw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Vdrw6Ml686648NkSrlLNn5VqNiciNcCXtcULiwBpXko=; b=TyxPPuSQWbIR3FcXQYeuA/LyWjlTFz2A6n7e5BlmBTsQuW3R6s3qsTzbFeP0HXC0fq MXVx+rFzzuk+LYiDvIS9P6KPfrZneBqiItJook4iEP8c4Skfgi0DjjbhJgSD8qt8NQrZ MyNd7y4ZsfE/nOaRCp1RYP5Y2cAh19ByzIL9CakrP9iVW7SEIqq+21mbzc3pe5/kgqX1 n7SNkClVYFi4ocYPKJxSKCUWIIS8dIzS7Wgs8idMq+kjjJZtxzwNOnqVgrK0CWZSFDCD 7zdRoutoqnEkVCxq2Y+k1/w6aN5A86zSmgx1lKj6RYZw0+qPYwYvxFN90LoQbzl6e3cW 85EQ==
X-Gm-Message-State: AFeK/H0HepN5dp75R5Y7p5jSQB249oqazNMAmO/iLqvFmnVKLu+jDcpGmgz3m5e5zoYUd0wKk5ITBgw/3kNALA==
X-Received: by 10.223.177.151 with SMTP id q23mr8575612wra.65.1490375234234; Fri, 24 Mar 2017 10:07:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.166.37 with HTTP; Fri, 24 Mar 2017 10:07:13 -0700 (PDT)
In-Reply-To: <20170324.144408.1191664098390131544.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>
From: Andy Bierman <andy@yumaworks.com>
Date: Fri, 24 Mar 2017 10:07:13 -0700
Message-ID: <CABCOCHTVpg=JMsmcGuhYfbqLWHPJToSUORU8hRuqSgmEKma7dw@mail.gmail.com>
To: Martin Bjorklund <mbj@tail-f.com>
Cc: Robert Wilton <rwilton@cisco.com>, Joe Marcus Clarke <jclarke@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="f403045e7cd46b45cf054b7d06aa"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/AtvHgNtIG7yMs6yB84qBPTaoB3s>
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 17:07:19 -0000

On Fri, Mar 24, 2017 at 6:44 AM, Martin Bjorklund <mbj@tail-f.com> wrote:

> Robert Wilton <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)

2) many revisions are actually obsolete work-in-progress
so keeping every old file around will grow into a problem

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.

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



>
> /martin
>
>
Andy


> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>