Re: [CCAMP] [netmod] What to reference when importing an IANA module?

mohamed.boucadair@orange.com Tue, 17 January 2023 13:46 UTC

Return-Path: <mohamed.boucadair@orange.com>
X-Original-To: ccamp@ietfa.amsl.com
Delivered-To: ccamp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E7B23C14CE39; Tue, 17 Jan 2023 05:46:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.095
X-Spam-Level:
X-Spam-Status: No, score=-7.095 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=orange.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 85hyILqBntT2; Tue, 17 Jan 2023 05:46:28 -0800 (PST)
Received: from relais-inet.orange.com (relais-inet.orange.com [80.12.66.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5F9E5C14CE36; Tue, 17 Jan 2023 05:46:28 -0800 (PST)
Received: from opfedar00.francetelecom.fr (unknown [xx.xx.xx.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by opfedar25.francetelecom.fr (ESMTP service) with ESMTPS id 4Nx9Ck2v15z8tFn; Tue, 17 Jan 2023 14:46:26 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.com; s=ORANGE001; t=1673963186; bh=tFr+K4NxVlPWiTdEkEXRj6fQO/f/FWeD/UqAYW2ilXE=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=QylbkB8szFAq0EOB7P6NhwfZ5VhVow06vWTkRjwalerRWtkZSN9fkDnn/G/CYzroQ Fk5R2u7jLSxsUORbmXBMrKvOgNqiRTRC+FWtXyKVXiBv2zHgoJvBbq2i4Y6wCyL6TB j7vBpk0J86hNQVCLmoaysETthZ7TIzWCwWgcmdScvEU6e3wZxpu4DNd/6S6ZSnyUpk hNf92OsmUA4WpnEdTdytsXOUzicZuQFwcZzfIgtznhI8jrqv8u3MIOIvftlpEsg/pN 8UH90drzxuN2e2KmCXFElLSj3vo9hmPZv/NCYd/80ZhiJENoNDHuL1N3hzbtnTTT5Z 7UXpqAMox6ywA==
From: mohamed.boucadair@orange.com
To: Benoit Claise <benoit.claise=40huawei.com@dmarc.ietf.org>, Randy Presuhn <randy_presuhn@alumni.stanford.edu>, "ccamp@ietf.org" <ccamp@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] What to reference when importing an IANA module?
Thread-Index: AQHZKZhGwU4R8k7b70C+bHicZXW9966inoVw
Content-Class:
Date: Tue, 17 Jan 2023 13:46:25 +0000
Message-ID: <19871_1673963186_63C6A6B2_19871_391_1_2e73a81d1de54970998730c9b27f6934@orange.com>
References: <900fcde63e90473b8424658bc7095818@huawei.com> <ede7a11a-bc66-26a5-f33a-83b15fc61fde@huawei.com> <AM7PR07MB624874275BBD327AEB38C004A0FD9@AM7PR07MB6248.eurprd07.prod.outlook.com> <ab763386-7668-39a7-a080-1bc202eb992e@huawei.com> <AM7PR07MB6248DE5396AC76C0101B233BA0C29@AM7PR07MB6248.eurprd07.prod.outlook.com> <b4dd6eae-7cab-5c87-5e1e-d90a0859b466@huawei.com> <01000185ac5c8328-452eee8e-b8d8-4ef0-955a-e2ead0c557b2-000000@email.amazonses.com> <072be8fa-3801-1236-752a-e44df9347d18@alumni.stanford.edu> <953da02a-b364-cdda-0c6d-89d4ea1ec2fa@huawei.com>
In-Reply-To: <953da02a-b364-cdda-0c6d-89d4ea1ec2fa@huawei.com>
Accept-Language: fr-FR, en-US
Content-Language: fr-FR
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_Enabled=true; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_SetDate=2023-01-17T13:37:53Z; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_Method=Privileged; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_Name=unrestricted_parent.2; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_SiteId=90c7a20a-f34b-40bf-bc48-b9253b6f5d20; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_ActionId=8a05cd37-869a-42f9-b1de-547e991478f6; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_ContentBits=0
x-originating-ip: [10.115.27.51]
Content-Type: multipart/alternative; boundary="_000_2e73a81d1de54970998730c9b27f6934orangecom_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/ccamp/EJ5Z7lrm9xhXVrLTAGTZ37SVDB0>
Subject: Re: [CCAMP] [netmod] What to reference when importing an IANA module?
X-BeenThere: ccamp@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Discussion list for the CCAMP working group <ccamp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ccamp>, <mailto:ccamp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ccamp/>
List-Post: <mailto:ccamp@ietf.org>
List-Help: <mailto:ccamp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ccamp>, <mailto:ccamp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2023 13:46:34 -0000

Hi Benoît,

Please see inline.

Cheers,
Med

De : netmod <netmod-bounces@ietf.org> De la part de Benoit Claise
Envoyé : lundi 16 janvier 2023 11:49
À : Randy Presuhn <randy_presuhn@alumni.stanford.edu>; ccamp@ietf.org; netmod@ietf.org
Objet : Re: [netmod] What to reference when importing an IANA module?

Dear all,
On 1/13/2023 9:22 PM, Randy Presuhn wrote:
Hi -

On 2023-01-13 10:20 AM, Kent Watsen wrote:




On Jan 13, 2023, at 11:25 AM, Benoit Claise <benoit.claise=40huawei.com@dmarc.ietf.org><mailto:benoit.claise=40huawei.com@dmarc.ietf.org> wrote:

Hi Tom,

Yes I do think that people outside the IETF may be ignorant of the nuances of the way the IETF works and  may not realise that a URL to the IANA website must be used in preference to an RFC.  There is more to YANG modules than extracting the code from somewhere in order to incorporate it into something.  I have even seen RFC reference the obsolete list of possibilities  in the RFC that set up an IANA registry
If this is the case (And Randy supports this), then we should update RFC 8047.

Benoit's reference to RFC 8047 had me puzzled until I saw Kent's
response regarding RFC 8407.  :-)


Agreed - as a hold for document update?

Currently RFC 8407, Section 3.9 says:

    For every import or include statement that appears in a module
    contained in the specification that identifies a module in a separate
    document, a corresponding normative reference to that document MUST
    appear in the Normative References section.  The reference MUST
    correspond to the specific module version actually used within the
    specification.

I agree with Kent's "hold for document update" assessment.  The
difficultly with the existing text is that it correctly reflects
the concerns that were at the forefront when it was written -
e.g. making it as easy as possible for developers to get the
necessary context for implementing a module, but, as far as
I can recall, the group hadn't thought as deeply about
registries spun off from an initial document.


Want to take a swing at it?

Not me.  :-)  There are competing requirements, and the "best" answer
will very much depend on each situation.  I think the *spirit* of
the RFC 8407 Section 3.9 is  "point to whatever resource will be most
enlightening to the developer / user."  But the letter of the law is
"point to whatever is needed to generate a tree of normative
reference dependencies" - that is, use what will be most helpful
to the people writing the standards.  There's a point to both kinds of
pointers.

When in doubt, my preference is to go whichever way will make it
harder for implementations to get it wrong.
Agree on the principles, but there is no quick fix.
Look at Med's proposal:

   If an IANA-maintained module is imported by another module, a

   normative reference with the IANA URL from where to retrieve the

   IANA-maintained module SHOULD be included.  Although not encouraged,

   referencing the RFC that defines the initial version of the IANA

   module is acceptable in specific cases (e.g., the imported version is

   specifically the initial version, the RFC includes useful description

   about the usage of the module).
If we want to add an IANA link to update RFC 8407, Section 3.9, a couple of remarks:
- It's not clear what "a normative reference with the IANA URL" is.
    Is it https://www.iana.org/assignments/yang-parameters/yang-parameters.xhtml?
    Or is it https://www.iana.org/assignments/yang-parameters/iana-if-type@2022-08-24.yang?
    The more precise the later, right?

[Med] None of them. IANA is using dedicated URLs:
* https://www.iana.org/assignments/iana-bgp-l2-encaps/iana-bgp-l2-encaps.xhtml
* https://www.iana.org/assignments/iana-pseudowire-types/iana-pseudowire-types.xhtml
* https://www.iana.org/assignments/iana-bfd-types/iana-bfd-types.xhtml

    However, the latter, which is a typical example of IANA maintained YANG module does NOT work, as the revision in the URL changes with any IAN update
- So this leads to have both RFC and IANA, so https://www.iana.org/assignments/yang-parameters/yang-parameters.xhtml + RFC7224 (in the above example)
- Also, we should make more generic for some other SDOs, as IANA is for IETF only.
  And the guidelines are followed by others: BBF, IEEE, etc.

Regards, Benoit


Randy

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


_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.