Re: [netmod] On prefixes again RE: IETF#119 I-D Status: draft-ietf-netmod-rfc8407bis

Andy Bierman <andy@yumaworks.com> Fri, 15 March 2024 15:22 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 47DC0C14F603 for <netmod@ietfa.amsl.com>; Fri, 15 Mar 2024 08:22:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.105
X-Spam-Level:
X-Spam-Status: No, score=-7.105 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_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks.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 At0FKmNK9ql8 for <netmod@ietfa.amsl.com>; Fri, 15 Mar 2024 08:22:18 -0700 (PDT)
Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 6E76AC14F691 for <netmod@ietf.org>; Fri, 15 Mar 2024 08:22:15 -0700 (PDT)
Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-5ce2aada130so1837896a12.1 for <netmod@ietf.org>; Fri, 15 Mar 2024 08:22:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1710516135; x=1711120935; darn=ietf.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=X4kUEP9LvbIaLMIwbcHkbTHXvloPPsyva+gHtMQ5Wco=; b=WB27/ybiJDms/NZGQJRxFClNxht9UjJTTT4NzRXZbpSaYhh/xtHAidbrjL0nP2KYgA ss1hQNoJST+YYEsmVh1Ko3Ve3l2+owhSRwnwDCqvbdAQqLxhBqFSVvaeqQOb2U0FHW8l c+Xns1+1RqLbbQ4Lg5/qtCX/F5VLWKE35JXPEFg8VWBxsE752qzwzSvZy7zfFyOEtzFe EUsCQ5QROIl+mFEk+DUKTMrrv+5eT4lpSy6SWjR1+Jf3oyxWfDsBaHZiD2z6i+dClZGx TpGQBZ/hE9he6fgSsEkkDFoeum7laFm4lLAFWortGy6c2qyMFWqutJS8Ca6XEQ/HhdCZ 0dhg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710516135; x=1711120935; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X4kUEP9LvbIaLMIwbcHkbTHXvloPPsyva+gHtMQ5Wco=; b=me+iro7LYLxFdVhCiY5p7Xt+V3HCfnrdwnGkTDOX6Zk8rqmbqoCBz2C9X5h5Yxv/jy Da4gbQHPPnC1VC6ZlmgC6SKGep3bIPAe61GQxnEWt+/uxz/9qvJP0J/+IDoPymjtJH7L rAUvDU5Mh3xnP7LkBZCjYlLrqZtcA8tyKU8LzjaWVonwY/RJdBXVs/wbuKDUjN//lN6A m6bn5EXNBBORSeycRef8txa0Xv3pAq6CYVDfkFDJ0URDZ7mNw5vFlr4LP+RgB5bybIqJ NGKpdkosuSx2hxrwoLea/O8F8IV3JS8NZdwzx4jiYD6+HC2l5i9qGutZyTTPmCK2HER7 uPCQ==
X-Forwarded-Encrypted: i=1; AJvYcCVI3H+4OLd8RnsP97X1P/NtEPMy6hfFzBIrMKCGr+KpijWkhl+5VpoXI+s/FNU5kBkYbdyTP4D+Cu7KOizwTl4=
X-Gm-Message-State: AOJu0YyRr8B2RGINu2JllNl8NBFoJQSFegZHyaSBzfLP06ndRXvFZkRu Ft3hEL2Fp7kUaB/uXt4RoodZluSQdmcAQ+pzVAkScSZ9j1tRHUYfVzgaOw29ogRALdUZtZNWBLM dolocUittEH2Cw7ixBWb5Ckfl8NhW0jWWEhDdCQQHV0UU7YLETE0=
X-Google-Smtp-Source: AGHT+IHjyv9hc9F67j2q7gJ7KJZYQofFCWHqTPRacBdesHr4Ztframn0AeVSUB2np/WjMAqCdXrwp0Mp77GmBipw1Ps=
X-Received: by 2002:a17:90b:1008:b0:29c:66b1:a90e with SMTP id gm8-20020a17090b100800b0029c66b1a90emr5708647pjb.34.1710516134503; Fri, 15 Mar 2024 08:22:14 -0700 (PDT)
MIME-Version: 1.0
References: <DU2PR02MB1016026565C00BFB81BB1367D882B2@DU2PR02MB10160.eurprd02.prod.outlook.com> <7CEA678E-9EEA-425E-B670-165582B4FD9A@gmail.com> <CABCOCHR1m1CDnEqjDhcgxnz433vs7SbQtjqG+KnkSwAuCJJE1w@mail.gmail.com> <DU2PR02MB10160B406F85CDE1669334FBD88282@DU2PR02MB10160.eurprd02.prod.outlook.com> <ZfRZ-acsHG7a_Kbf@alice.eecs.jacobs-university.de>
In-Reply-To: <ZfRZ-acsHG7a_Kbf@alice.eecs.jacobs-university.de>
From: Andy Bierman <andy@yumaworks.com>
Date: Fri, 15 Mar 2024 08:22:03 -0700
Message-ID: <CABCOCHSmhVuW0WBt5xggCfcOOF3Vr-KDcbFo3W=9GwOzY5zYvQ@mail.gmail.com>
To: Jürgen Schönwälder <jschoenwaelder@constructor.university>, mohamed.boucadair@orange.com, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000009484340613b49263"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/A6zeRhtwgYXHPYtfysSSF3Z_56Y>
Subject: Re: [netmod] On prefixes again RE: IETF#119 I-D Status: draft-ietf-netmod-rfc8407bis
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
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, 15 Mar 2024 15:22:22 -0000

On Fri, Mar 15, 2024 at 7:24 AM Jürgen Schönwälder
<jschoenwaelder@constructor.university> wrote:

> I wonder which problem we are solving with adding more little rules.
> Perhaps a future version of YANG will do away with prefixes but until
> this happens, I do not think we need to add more rules about how to
> choose prefixes. The original intend was that they are short to keep
> YANG snippets concise and easy to read.
>
>

This is the IETF Coding Conventions document, not the YANG specification.
Naming conventions are CLRs but often with some benefits.

What problems?

1) If there are multiple modules used in imports then the reader must be
able to
easily tell the prefixes apart.  If prefixes are too short and not
meaningful, this task
gets more difficult.  I find myself constantly going back to the imports to
make sure
I am matching the prefix to the correct module.

2) If there are complex XPath expressions then prefixes that are too long
make the
expression unreadable, especially as it is chopped into "string" +
"string"  format
to fit into 72 character lines. If prefixes are too short then back to
problem (1).

3)  It is becoming more common to have vendor modules import modules from
multiple SDOs.
Prefix naming conventions are already the BCP everywhere but the IETF.

Is it too late to start for IETF? There are many modules already with no
naming consistency,
so this would only affect new modules. There will never be consistent
naming of prefixes
so it may not be worth the change now.



/js
>


Andy


>
> On Fri, Mar 15, 2024 at 01:02:58PM +0000, mohamed.boucadair@orange.com
> wrote:
> > Hi Andy,
> >
> > (changing the subject to ease tracking this)
> >
> > The thread I was referring is:
> https://mailarchive.ietf.org/arch/msg/netmod/6VkSrroaxwXHSI19Jj0j-tbFCjA/
> >
> > I do personally think that it is a good guidance to prefix IETF modules
> with “ietf-“ and IANA-maintained ones with “iana-‘. This is consistent with
> the practice we followed recently for iana-maintained modules.
> >
> > If we recommend this prefix pattern, I’m afraid that we need to revisit
> the text about short prefixes, e.g.,
> >
> > OLD:
> >    Prefix values SHOULD be short but are also likely to be unique.
> >    Prefix values SHOULD NOT conflict with known modules that have been
> >    previously published.
> >
> > NEW:
> >    Prefix values SHOULD be prefixed with “ietf-“ for IETF modules and
> >    “iana-“ for IANA-maintained modules. Prefix values SHOULD NOT be
> >    too long and SHOULD NOT conflict with known modules that have been
> >    previously published.
> >
> > Cheers,
> > Med
> >
> > De : Andy Bierman <andy@yumaworks.com>
> > Envoyé : jeudi 14 mars 2024 22:53
> > À : Mahesh Jethanandani <mjethanandani@gmail.com>
> > Cc : BOUCADAIR Mohamed INNOV/NET <mohamed.boucadair@orange.com>;
> netmod@ietf.org
> > Objet : Re: [netmod] IETF#119 I-D Status: draft-ietf-netmod-rfc8407bis
> >
> > Hi,
> >
> > I cannot find this email wrt/ short prefixes
> >
> >
> >   *   (short/uniqueness of prefixes
> >
> > Other SDOs are using a prefix in their prefixes (e.g. openconfig).
> > It is common for servers to have both "if:interfaces" and
> "oc-if:interfaces" subtrees.
> >
> > It might be a good idea to have a guideline that all IETF YANG modules
> SHOULD
> > use the "ietf-" string in the module prefix.  This should reduce the
> chance of name collisions
> > between SDOs and vendors, and helps identify the module as an IETF
> module.
> >
> >
> > Andy
> >
> >
> >
> > On Tue, Mar 12, 2024 at 10:51 AM Mahesh Jethanandani <
> mjethanandani@gmail.com<mailto:mjethanandani@gmail.com>> wrote:
> > Hi Med,
> >
> > Thanks for driving this effort on updating RFC 8407.
> >
> > One additional change coming your way, is to address the question of how
> IANA is supposed to handle updates to IANA YANG modules. The YANG doctors
> are currently debating those changes. Once agreed, we will bring that
> discussion here, and will need to update rfc8407bis to provide guidance to
> authors who update an IANA module. Stay tuned.
> >
> > Cheers.
> >
> >
> > On Mar 12, 2024, at 5:00 AM, mohamed.boucadair@orange.com<mailto:
> mohamed.boucadair@orange.com> wrote:
> >
> > Hi all,
> >
> >
> >   *   A candidate -10 is ready to address 3 comments from Jan:
> >
> >      *   Long trees
> >      *   Updated security template
> >      *   Minor tweaks to Section 3.8
> >      *   The changes circulated on the list can be seen here: Compare
> Editor's Copy to Datatracker<
> https://boucadair.github.io/rfc8407bis/#go.draft-ietf-netmod-rfc8407bis.diff
> >
> >
> >   *   Jan raised two other comments (short/uniqueness of prefixes + how
> to handle “not set”) but no changes were made per the feedback received on
> the list.
> >   *   Next steps:
> >
> >      *   Submit -10 right after IETF#119
> >      *   WGLC
> >
> > Cheers,
> > Med
> >
> >
> ____________________________________________________________________________________________________________
> >
> > 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.
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org<mailto:netmod@ietf.org>
> > https://www.ietf.org/mailman/listinfo/netmod
> >
> >
> > Mahesh Jethanandani
> > mjethanandani@gmail.com<mailto:mjethanandani@gmail.com>
> >
> >
> >
> >
> >
> > _______________________________________________
> > 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.
>
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org
> > https://www.ietf.org/mailman/listinfo/netmod
>
>
> --
> Jürgen Schönwälder              Constructor University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>