Re: [netmod] Poll on YANG Versioning NBC Approach

Jürgen Schönwälder <jschoenwaelder@constructor.university> Tue, 12 September 2023 13:10 UTC

Return-Path: <jschoenwaelder@constructor.university>
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 59BBEC151538 for <netmod@ietfa.amsl.com>; Tue, 12 Sep 2023 06:10:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.907
X-Spam-Level:
X-Spam-Status: No, score=-6.907 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, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 jwfhY40I2Li4 for <netmod@ietfa.amsl.com>; Tue, 12 Sep 2023 06:10:43 -0700 (PDT)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de [212.201.44.18]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4D8B8C151064 for <netmod@ietf.org>; Tue, 12 Sep 2023 06:10:42 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id 16D7612583; Tue, 12 Sep 2023 15:10:38 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.220]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id pr2-e2NtZUzD; Tue, 12 Sep 2023 15:10:38 +0200 (CEST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "DFN-Verein Global Issuing CA" (not verified)) by atlas3.jacobs-university.de (Postfix) with ESMTPS; Tue, 12 Sep 2023 15:10:37 +0200 (CEST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by hermes.jacobs-university.de (Postfix) with ESMTP id 621F020150; Tue, 12 Sep 2023 15:10:37 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10028) with ESMTP id cXNGr-S0pf9Y; Tue, 12 Sep 2023 15:10:35 +0200 (CEST)
Received: from localhost (alice.jacobs.jacobs-university.de [10.50.244.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by hermes.jacobs-university.de (Postfix) with ESMTPS id 8272120095; Tue, 12 Sep 2023 15:10:33 +0200 (CEST)
Date: Tue, 12 Sep 2023 15:10:32 +0200
From: Jürgen Schönwälder <jschoenwaelder@constructor.university>
To: "Jan Lindblad (jlindbla)" <jlindbla@cisco.com>
Cc: Kent Watsen <kent+ietf@watsen.net>, "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <64krrvbmsy4h7zbtvcs5zwwkrnyz7d77wl5baicl4ba54ibqfp@nc7qfwcfvojh>
Reply-To: Jürgen Schönwälder <jschoenwaelder@constructor.university>
Mail-Followup-To: "Jan Lindblad (jlindbla)" <jlindbla@cisco.com>, Kent Watsen <kent+ietf@watsen.net>, "netmod@ietf.org" <netmod@ietf.org>
References: <0100018a866682fd-922054c7-e040-43d5-b26f-b16acfbd61dd-000000@email.amazonses.com> <s7ufdqzntxtymckckdhkd7a4cey632sir7ox3iw5m6x6fy6s5p@ekaw2h6muodc> <36A11C7B-E240-4CC7-A054-DC28655C4261@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
In-Reply-To: <36A11C7B-E240-4CC7-A054-DC28655C4261@cisco.com>
X-Clacks-Overhead: GNU Terry Pratchett
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/DhPz3gArc06ReXXs76wPixMdg7Y>
Subject: Re: [netmod] Poll on YANG Versioning NBC Approach
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: Tue, 12 Sep 2023 13:10:47 -0000

The two options mix things together. Option 1 says updating YANG 1 and
YANG 1.1 to allow YANG modules to be modified _based on
draft-ietf-netmod-yang-module-versioning_ but this document has much
more in it than just changing a MUST to SHOULD.

There are features in draft-ietf-netmod-yang-module-versioning that
you can use only with new tools that implement the features. I am not
sure why tools that support different variants of YANG 1 and YANG 1.1
are any easier in practice than a tool that says clearly what it
implements.

I continue to believe the questions are badly phrased. Instead of
discussing properties and trade-offs of solutions, we discuss the
version number. And we accept that bumping the version number is
considered too costly but at the same time the entire work is about
introducing version numbers to data models (where the same logic will
sooner of later apply). Yes, for me, this is real-world irony.

/js

PS: There is no need to update YANG 1.1 modules to YANG 1.2 as long
    as you do not use YANG 1.2 rules and mechanism.

On Tue, Sep 12, 2023 at 12:43:56PM +0000, Jan Lindblad (jlindbla) wrote:
> Jürgen, all,
> 
> I see the irony in changing the YANG RFC(s) without updating the YANG language version number, but digging a bit deeper, I think the question is not as clear-cut as it might seem at first.
> 
> Altering the contents of the backwards-compatibility section of RFC 6020 (sec 10) and RFC 7950 (sec 11) clearly implies changes in YANG module authors' behavior.
> 
> Speaking as a YANG compiler implementor, however, I don't see any changes that have to made to the compiler because of this RFC change. There are no new keywords, none are removed. There is no change in the meaning of existing keywords. There is no difference in the output the compiler needs to generate.
> 
> So while there are changes to the YANG *standard* (meaning RFCs) there is no actual change to the YANG *language*. If we require user's to mark their modules with version 1.2 (or 2.0), from the compiler's pov, that would just be an alias for YANG 1.1. It means a fair amount of trouble to update all the tools out there to accept "yang-version 1.2" but do nothing new. It also adds a burden to YANG module implementors, since they would have to go through all YANG 1.1 modules and mark them 1.2, for no change in meaning. For organizations with some modules still on YANG 1.0, the bar is even higher.
> 
> I think the most pragmatic approach in this case would be to change the RFC text in the backwards-compatibility sections and not update the yang-version number as long as no change is required in the compilers. If anyone can point to actual things the compiler needs to do differently, I'd be interested to hear.
> 
> Best Regards,
> /jan
> 
> 
> 
> > On 12 Sep 2023, at 07:55, Jürgen Schönwälder <jschoenwaelder@constructor.university> wrote:
> > 
> > I disagree with the poll. There are important teachnigal differences
> > behind the two options that this polls tries to hide.
> > 
> > Updating YANG 1 and YANG 1.1 means creating YANG 1' and YANG
> > 1.1'. There is no way that a new versioning approach will be
> > understood by existing YANG tooling. That's an illusion.
> > 
> > /js
> > 
> > On Mon, Sep 11, 2023 at 10:39:39PM +0000, Kent Watsen wrote:
> >> WG,
> >> 
> >> Please help the YANG-versioning effort move forward by participating in the following poll:
> >> 
> >>  - https://notes.ietf.org/netmod-2023-sept-poll  (Datatracker login required)
> >> 
> >> Kent and Lou
> >> 
> > 
> >> _______________________________________________
> >> 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
> > Fax:   +49 421 200 3103         <https://constructor.university/>
> > 
> > _______________________________________________
> > 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
Fax:   +49 421 200 3103         <https://constructor.university/>