Re: [yang-doctors] reference in import statement

Mahesh Jethanandani <mjethanandani@gmail.com> Thu, 22 February 2018 18:56 UTC

Return-Path: <mjethanandani@gmail.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 F274D120713 for <yang-doctors@ietfa.amsl.com>; Thu, 22 Feb 2018 10:56:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 13KYVSI6tmwy for <yang-doctors@ietfa.amsl.com>; Thu, 22 Feb 2018 10:56:55 -0800 (PST)
Received: from mail-pl0-x242.google.com (mail-pl0-x242.google.com [IPv6:2607:f8b0:400e:c01::242]) (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 554FD1201F8 for <yang-doctors@ietf.org>; Thu, 22 Feb 2018 10:56:55 -0800 (PST)
Received: by mail-pl0-x242.google.com with SMTP id k8so3389406pli.8 for <yang-doctors@ietf.org>; Thu, 22 Feb 2018 10:56:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=VRB7jRm38VTBfe32O9DjeCyn2YIoI3STZa3cWhMrOFs=; b=jUvWNdnw6LGJnQnKTktJPKD1xfcbIa1zW2e+6lDamjvksOGJbXL/gB65zHTZkJl5cY YMTM8jBWP8piYwSyut5jqwCrXSR6DpT67HoOIFdN6RJiuVmxmqQuW9DTIKhO+9527zRA iUsD7GB16EmAtOz7L9JBa7Sc6ZwZRgLbmzp0R3B7bTVRqJ5F5S2Y1q7ZwtU+pdobIF7c VXvNHuwXz3KCEdXK4nlTKllmdJEqI6KsbfOtSAWZLUf+wdRxJZ6n6+kROe9ddg7Me1UG XgjlIeV0fcndLhY1+jWq1D1Q3gXajqtO9Ts6v8uGWRYHm3zHF2zfrYbbUuX5PN2/R3a9 hfwg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=VRB7jRm38VTBfe32O9DjeCyn2YIoI3STZa3cWhMrOFs=; b=ucVQogYlHP3uACxT8Fyfunp+QHC23H339GCqcKLQAToUIVrb7WBBbJ4o8t2FGlJwoO nA9gTfOAzMNOh5smkKLPGruWTMFO4mwDUOlgo3VB9g1Fb2ln3qUG7A0R/1KVTmBSF9KP z473msdhnXDHcmXQoGfNYt7NZaLEkKXN4NggiHPqRvyXNtL/r+7YCIbCq/0zskBnU2cH 81bQDqzSH73bzqNtgPXRKdgxUog6EIIH2OIyrsPEenuNSzFjISP0uY6ivo8hONIEbUtu vlts8jus9Cbh8icqsqeHt7rzrn5nMHGBD8+DxAs1ub+lGO5TzrciowOuGREwZ7rRwRhD UVGw==
X-Gm-Message-State: APf1xPA0hh4sjVNr/fj+ZPSIg7c8HHwhv+T0soRJHTlj5gycdNg4Wm0r rwo+lnKugDdgzgzP0fh9x0I=
X-Google-Smtp-Source: AH8x224U/nzXhzVgFYvU6ckmcYJ3rUe44PgXJybZhAM/Jt1xjQEZGPyyymndxcLAtGlBcaFnk8N0vg==
X-Received: by 2002:a17:902:2904:: with SMTP id g4-v6mr7391130plb.170.1519325814638; Thu, 22 Feb 2018 10:56:54 -0800 (PST)
Received: from ?IPv6:2601:647:4700:1280:9d2d:1cd4:b8b7:50ab? ([2601:647:4700:1280:9d2d:1cd4:b8b7:50ab]) by smtp.gmail.com with ESMTPSA id u22sm1045441pgv.77.2018.02.22.10.56.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Feb 2018 10:56:54 -0800 (PST)
From: Mahesh Jethanandani <mjethanandani@gmail.com>
Message-Id: <80C8A9F0-1067-4937-9FC1-7D18070CDF7A@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_540B5871-2A5F-4900-920C-063C36601A68"
Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\))
Date: Thu, 22 Feb 2018 11:02:30 -0800
In-Reply-To: <14396a94-e79f-1c94-564f-d1a9ebf87aec@cisco.com>
Cc: Martin Bjorklund <mbj@tail-f.com>, yang-doctors@ietf.org
To: Benoit Claise <bclaise@cisco.com>
References: <20180215083130.uagwwr5huxgs5qst@elstar.local> <9783C687-6D5B-4FF4-BFB6-3D9FA62DB249@gmail.com> <20180222.085323.144940543114040096.mbj@tail-f.com> <A37B4457-245F-4ACA-957E-94206F08C491@gmail.com> <14396a94-e79f-1c94-564f-d1a9ebf87aec@cisco.com>
X-Mailer: Apple Mail (2.3445.5.20)
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/Ob5P_S_qRdUJOaKCKKiRToQuMT8>
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 18:56:58 -0000

Benoit,

> On Feb 22, 2018, at 10:36 AM, Benoit Claise <bclaise@cisco.com> wrote:
> 
> Dear all,
> 
> I think that keeping the reference is good thing. Btw, this is not specifically a reference to where the YANG module is, but mainly where the supporting document is.
> I think that having the reference pointing to where the extracted YANG module is (read the IANA registry, as Mahesh suggested) misses the pointer to the supporting document.

I was thinking the registry would be of this format:

ID                                                  URI                                                             Filename                                          Reference

ietf-interfaces@2014-05-08               urn:ietf:params:xml:ns:yang:ietf-interfaces      ietf-interfaces@2014-05-08.yang         RFC7223
ietf-interfaces@2018-02-22               urn:ietf:params:xml:ns:yang:ietf-interfaces      ietf-interfaces@2018-02-22.yang <mailto:ietf-interfaces@2018-02-22.yang>         RFCXXXX

where the last column would be a hyperlink to the supporting document. No?

> I think that this problem is maybe not that confusing. Either people find the YANG module from the RFCs and they would see RFCbis links, or people find YANG module from a repo (IANA, yangcatalog.org, github) and they would directly discover the latest revision. So adding "(at the time of this writing)" doesn't hurt but doesn't add a lot of value. Actually, this is typically the type of rules that hurts if not done consistently. Ex: 90% of YANG modules contains "(at the time of this writing)", while the complementary 10% doesn't. What should I conclude for the 10%? Something special or simply an oversight?
> 
> Regards, Benoit (as a contributor)
>> Hi Martin,
>> 
>> 
>>> On Feb 21, 2018, at 11:53 PM, Martin Bjorklund <mbj@tail-f.com> wrote:
>>> 
>>> 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.
>> Wasn’t the idea to not have the relationship between RFC number and a YANG model because of some of these very reasons, and move to IANA maintaining a copy of all version of the YANG models? If so, would it not make sense to refer to the IANA registry, rather than point to the RFC?
>> 
>>> 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
>>>> 
>> Mahesh Jethanandani
>> mjethanandani@gmail.com
>> 
>> _______________________________________________
>> yang-doctors mailing list
>> yang-doctors@ietf.org
>> https://www.ietf.org/mailman/listinfo/yang-doctors
> 

Mahesh Jethanandani
mjethanandani@gmail.com