Re: [netmod] ietf-yang-library edit

Martin Bjorklund <mbj@tail-f.com> Wed, 15 November 2017 06:19 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 782A71294FF for <netmod@ietfa.amsl.com>; Tue, 14 Nov 2017 22:19:49 -0800 (PST)
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, SPF_PASS=-0.001, URIBL_BLOCKED=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 ys1KsqxRukOY for <netmod@ietfa.amsl.com>; Tue, 14 Nov 2017 22:19:47 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 733B31294AB for <netmod@ietf.org>; Tue, 14 Nov 2017 22:19:47 -0800 (PST)
Received: from localhost (h-40-225.A165.priv.bahnhof.se [94.254.40.225]) by mail.tail-f.com (Postfix) with ESMTPSA id 3C09E1AE0311; Wed, 15 Nov 2017 07:19:45 +0100 (CET)
Date: Wed, 15 Nov 2017 07:19:44 +0100
Message-Id: <20171115.071944.118686339998444147.mbj@tail-f.com>
To: andy@yumaworks.com
Cc: rwilton@cisco.com, netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <CABCOCHQ20hKkTtaMbLA8PwfTLYY7ayo2rcj6hPJ_chmXJ8c7GQ@mail.gmail.com>
References: <e4ea2a38-4e13-12b1-31b2-be7fbbb30d06@ericsson.com> <14b6c48a-3d59-6d71-fff3-c034db085227@cisco.com> <CABCOCHQ20hKkTtaMbLA8PwfTLYY7ayo2rcj6hPJ_chmXJ8c7GQ@mail.gmail.com>
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/mBUgRd55UrpTqaYMlbV6aVlVTVI>
Subject: Re: [netmod] ietf-yang-library edit
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: Wed, 15 Nov 2017 06:19:49 -0000

Hi,

I agree w/ Balazs and Robert.

> The entire reason for import-by-revision is to make sure that
> the importing module can safely use definitions that have been added after
> the first revision of the imported module.

I don't think this is correct; the reason for import-by-revision is to
protect against a newver revision being used.


/martin


> 
> 
> Andy
> 
> 
> 
> On Tue, Nov 14, 2017 at 9:04 PM, Robert Wilton <rwilton@cisco.com> wrote:
> 
> >
> >
> > On 15/11/2017 12:48, Balazs Lengyel wrote:
> >
> > Hello,
> >
> > I though our strategy was to always use the latest revision available. At
> > least till now that works for me.
> >
> > Yes, I'm not convinced that the import by revision is really that helpful
> > since it states that it must pull in exactly that version, but really the
> > dependency is "at least version X, assuming newer revisions are backwards
> > compatible".
> >
> > E.g. if/when ietf-yang-types is updated again, it would be cleaner/simpler
> > if the server could just use the latest version rather than having to
> > potentially import multiple revisions.
> >
> > Thanks,
> > Rob
> >
> >
> > regards Balazs
> >
> > On 2017-11-15 10:33, Andy Bierman wrote:
> >
> > Hi,
> >
> > The ietf-yang-library module relies on "yang-identifier", which was added
> > to the 2nd
> > version of the ietf-yang-types. It does not compile unless that version is
> > used.
> >
> >
> > OLD:
> >
> >     import ietf-yang-types {
> >         prefix yang;
> >     }
> >
> >
> > NEW:
> >
> >     import ietf-yang-types {
> >         prefix yang;
> >         revision-date "2013-07-15";
> >         reference "RFC 6991: Common YANG Data Types";
> >     }
> >
> >
> > There are other modules such as ietf-ip that rely on RFC 6991 additions
> > and the import-stmt (in every case) should be changed to specify the
> > required revision-date.
> >
> >
> > Andy
> >
> >
> >
> >
> > _______________________________________________
> > netmod mailing listnetmod@ietf.orghttps://www.ietf.org/mailman/listinfo/netmod
> >
> >
> > --
> > Balazs Lengyel                       Ericsson Hungary Ltd.
> > Senior Specialist
> > Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com
> >
> >
> >
> > _______________________________________________
> > netmod mailing listnetmod@ietf.orghttps://www.ietf.org/mailman/listinfo/netmod
> >
> >
> >