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

Christian Hopps <chopps@chopps.org> Fri, 15 March 2024 19:10 UTC

Return-Path: <chopps@chopps.org>
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 2B257C14F5FC for <netmod@ietfa.amsl.com>; Fri, 15 Mar 2024 12:10:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.895
X-Spam-Level:
X-Spam-Status: No, score=-6.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
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 kYQgsnUp60jt for <netmod@ietfa.amsl.com>; Fri, 15 Mar 2024 12:10:25 -0700 (PDT)
Received: from smtp.chopps.org (smtp.chopps.org [54.88.81.56]) by ietfa.amsl.com (Postfix) with ESMTP id 7B397C14F5FA for <netmod@ietf.org>; Fri, 15 Mar 2024 12:10:25 -0700 (PDT)
Received: from smtpclient.apple (172-222-091-149.res.spectrum.com [172.222.91.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by smtp.chopps.org (Postfix) with ESMTPSA id 842FE7D0CF; Fri, 15 Mar 2024 19:10:24 +0000 (UTC)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\))
From: Christian Hopps <chopps@chopps.org>
In-Reply-To: <DU2PR02MB10160CDE65D7D74E2065D768A88282@DU2PR02MB10160.eurprd02.prod.outlook.com>
Date: Fri, 15 Mar 2024 15:10:13 -0400
Cc: Christian Hopps <chopps@chopps.org>, Andy Bierman <andy@yumaworks.com>, Jürgen Schönwälder <jschoenwaelder@constructor.university>, "netmod@ietf.org" <netmod@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <842D923E-746D-4AA1-94C6-E823E11E094E@chopps.org>
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> <CABCOCHSmhVuW0WBt5xggCfcOOF3Vr-KDcbFo3W=9GwOzY5zYvQ@mail.gmail.com> <ZfR6e-KRQHrtFsLb@alice.eecs.jacobs-university.de> <CABCOCHSs_LshD4_XzE+YWjk3WK0zcwPbcwi2TF13c7iOZ7cTQQ@mail.gmail.com> <DU2PR02MB10160CDE65D7D74E2065D768A88282@DU2PR02MB10160.eurprd02.prod.outlook.com>
To: mohamed.boucadair@orange.com
X-Mailer: Apple Mail (2.3774.500.171.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/-qzy5TtJcZP2mOLHglHcrV73U60>
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 19:10:26 -0000


> On Mar 15, 2024, at 13:26, mohamed.boucadair@orange.com wrote:
> 
> Re-,
>  I’m not sure to agree with your last statement, Andy.
>  The reality is that the OLD reco is inducing many cycles and waste of time for no obvious technical reason:  see an example herehttps://mailarchive.ietf.org/arch/msg/teas/eknpfAZIb9gX7GvUN1UoByCf5e4/
>  Let’s save the authors time with a clear guidance:
>     • Pick ietf- or iana- as a function of the module

I disagree with this guidance.

Thanks,
Chris.

>     • Use something meaningful, but preferably not too long
>  Cheers,
> Med
>  De : Andy Bierman <andy@yumaworks.com> 
> Envoyé : vendredi 15 mars 2024 18:01
> À : Jürgen Schönwälder <jschoenwaelder@constructor.university>; Andy Bierman <andy@yumaworks.com>; BOUCADAIR Mohamed INNOV/NET <mohamed.boucadair@orange.com>; netmod@ietf.org
> Objet : Re: [netmod] On prefixes again RE: IETF#119 I-D Status: draft-ietf-netmod-rfc8407bis
>    On Fri, Mar 15, 2024 at 9:42 AM Jürgen Schönwälder <jschoenwaelder@constructor.university> wrote:
> Yes, for long XPath expressions, one likes to have short prefixes, the
> shorter the better. In other contexts, such as type definitions, one
> may want to use longer prefixes providing more context. It seems you
> can't have both at the same time. Given this inherent conflict, I am
> not sure that generally pushing for longer prefixes is a good thing.
> 
> For modules with long XPath expressions, an author may consider to go
> for one character local prefixes even if they require to lookup their
> meaning in the imports (or people have modern editors that can
> dynamically show an expansion) because mutli-line XPath expressions
> with lots of repetitive substrings are pretty bad for human eyes.
>  Short is OK if the prefix is familiar to the reader. Like "if".
> What if the writer wanted a, b, c, d, etc? Shortt but not meaningful.
> It is a judgment call every time, too complex for a guideline.
>  The guideline only mentions short so the prefix will not conflict and the import-stmt in
> other modules will not need a different prefix.  This is only for reader familiarity, since the
> YANG compiler does not care which prefix is used.
>  The naming convention already established is that the SDO prefix (ietf or iana) is not used.
> It would not help readers to change it now.
>    /js
>  Andy
>  
> On Fri, Mar 15, 2024 at 08:22:03AM -0700, Andy Bierman wrote:
> > 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
> > >
> > 
> > 
> 
> -- 
> Jürgen Schönwälder              Constructor University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> ____________________________________________________________________________________________________________
> 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