Re: [yang-doctors] reference in import statement

Martin Bjorklund <mbj@tail-f.com> Thu, 22 February 2018 07:53 UTC

Return-Path: <mbj@tail-f.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 85097124D37 for <yang-doctors@ietfa.amsl.com>; Wed, 21 Feb 2018 23:53:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, 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 LmlvdrTz1KSS for <yang-doctors@ietfa.amsl.com>; Wed, 21 Feb 2018 23:53:26 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id A2A511242EA for <yang-doctors@ietf.org>; Wed, 21 Feb 2018 23:53:26 -0800 (PST)
Received: from localhost (unknown [173.38.220.45]) by mail.tail-f.com (Postfix) with ESMTPSA id E45BF1AE02EF; Thu, 22 Feb 2018 08:53:23 +0100 (CET)
Date: Thu, 22 Feb 2018 08:53:23 +0100
Message-Id: <20180222.085323.144940543114040096.mbj@tail-f.com>
To: mjethanandani@gmail.com
Cc: j.schoenwaelder@jacobs-university.de, yang-doctors@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <9783C687-6D5B-4FF4-BFB6-3D9FA62DB249@gmail.com>
References: <20180215083130.uagwwr5huxgs5qst@elstar.local> <9783C687-6D5B-4FF4-BFB6-3D9FA62DB249@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/yang-doctors/FuU6R41XGkaZNj2de-LwNBqZovg>
Subject: Re: [yang-doctors] reference in import statement
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 22 Feb 2018 07:53:28 -0000

Hi,

Mahesh Jethanandani <mjethanandani@gmail.com> wrote:
> I agree that this is grounds for confusion. 
> 
> My preference would be that we NOT have a reference statement for
> import, or a comment for that matter, unless the module is doing
> import by revision. The text of the document is already required to
> have normative references to whatever the module imports.

I think this would be quite unfortunate, even though I agree that it
might be confusing to have the reference.  The problem with having
the reference only in the main body is that modules are typically
extracted from the RFCs and live their own life.  So all you have is a
list of various imported modules, and it is not obvious where to find
them.

We added the "reference" statement to "import" for this very reason in
YANG 1.1.

So maybe the best solution is the one suggested by Juergen initially:

    reference "RFC 6991: Common YANG Data Types
                 (at the time of this writing)";


Or maybe we declare that in fact this is not confusing (or at least it
is not a major issue) - people are aware of the fact that documents
evolve, and that there might be a more recent version available.


/martin

> 
> Cheers.
> 
> > On Feb 15, 2018, at 12:31 AM, Juergen Schoenwaelder
> > <j.schoenwaelder@jacobs-university.de> wrote:
> > 
> > Hi,
> > 
> > I have just seen this pattern
> > 
> >   import ietf-inet-types {
> >     prefix "inet";
> >     reference "RFC 6991";
> >   }
> > 
> > and I wonder how people understand this. From the way this import
> > works, any (newer) version of ietf-inet-types is OK to use to resolve
> > the import but I could see that this statement makes people believe
> > they have to use the version of ietf-inet-types contained in RFC 6991
> > (but then this should have been import by revision). I know that we
> > had a common practice to have comments before this was possible, like
> > 
> >   import ietf-inet-types {             // RFC 6991
> >     prefix "inet";
> >   }
> > 
> > but then this was a comment, now the RFC numbers becomes part of the
> > definition. Should we be concerned about this? Or should we suggest
> > to be more clear about this, e.g.:
> > 
> >   import ietf-inet-types {
> >     prefix "inet";
> >     reference "RFC 6991 (at the time of this writing)";
> >   }
> > 
> > /js
> > 
> > -- 
> > Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> > Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> > Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
> > 
> > _______________________________________________
> > yang-doctors mailing list
> > yang-doctors@ietf.org
> > https://www.ietf.org/mailman/listinfo/yang-doctors
> 
> Mahesh Jethanandani
> mjethanandani@gmail.com
> 
> _______________________________________________
> yang-doctors mailing list
> yang-doctors@ietf.org
> https://www.ietf.org/mailman/listinfo/yang-doctors
>