Re: [netmod] YANG Versioning Weekly Call Minutes - 2021-04-13

Andy Bierman <andy@yumaworks.com> Wed, 14 April 2021 15:17 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 15AD63A12C3 for <netmod@ietfa.amsl.com>; Wed, 14 Apr 2021 08:17:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.887
X-Spam-Level:
X-Spam-Status: No, score=-1.887 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 N0Xrs1y2Xo8G for <netmod@ietfa.amsl.com>; Wed, 14 Apr 2021 08:17:38 -0700 (PDT)
Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (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 D2EB33A1480 for <netmod@ietf.org>; Wed, 14 Apr 2021 08:16:57 -0700 (PDT)
Received: by mail-lf1-x130.google.com with SMTP id n8so33895429lfh.1 for <netmod@ietf.org>; Wed, 14 Apr 2021 08:16:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YwSS+TEm9F3gMhokxyw6Lq/L2sacUdKt9a27dDAhzY8=; b=cjur7zXCc2CvJS6RP5EayP+ze6b++59gWmngy9/OAcaKkrg+LZgIN+b7ToH5J8JykS 2rdvzMZr31rM/MiMNEroXXVJU5lkBmGi/4f1FpVbLMPbwM/nEW+yA0w7iSY+6hLQzK+O 52yof6n06fs0b5QuuKtFX6mfbNLbiCmbmVu5+YEJoDgkHnZn3G8UVgXx689Y8E+1m2+H V0mWmChUbzREWtW1mjI5W60YdhW/9Gb9qthP4mahxiyd645GsSmJEq9CGbH3jKyDA3mb G86SuR5CyPaz6//2Va0jT598uHvrNzi7r6PdjcNe89nsI4FxIBb35uBaC5bNtm5CvwnS r2tg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YwSS+TEm9F3gMhokxyw6Lq/L2sacUdKt9a27dDAhzY8=; b=ijX5kCKRdmjVlnRmA57f7BJfQQziajYDXdqnlazyqAri81qqhP+2qpNwb28/mfoTbC LtKDCraFAJ3NGCFkBIExv8RUxqRqnbqITbU6DmVyW8kgN7NYnnbyRDbXghAbJWons4Qj jSjMRfkcld2HB0SGY9g+oePRpXHQHlYcUJbogph6xVf3afK/sK58dbGqK/UZe9mx8gq8 A283T+6HVf0s3/KiKCoR3Pj1YzFFT8GGDvD4H3vDWu55Jrq9KLA4Z40xLzAVJ5pPyT3i 3WqbZNr3X1TWxHP0D0u8Tvq7yGV8wr6Ar7C6p3puWV7Fdz2ZrOL3M7tc+ScwHu6oYMlc VJbQ==
X-Gm-Message-State: AOAM531QqUq5Ch5oAxSoDamxLLmsquF4BVBk5zznpUVn2T1zgbLumsrG UvNUfAunSjzn+yCY/8fQ2cxlrmyAJK9X+qoS9y548Q==
X-Google-Smtp-Source: ABdhPJwnkrWSwk6Sa/g7rxysUIO5RMsjxysPTDpDgH+uEs94p2XiNKxf6mdog61g8kWgBlRbTG8+fwC/n/c21Z7pm3M=
X-Received: by 2002:a19:c707:: with SMTP id x7mr3851592lff.478.1618413414567; Wed, 14 Apr 2021 08:16:54 -0700 (PDT)
MIME-Version: 1.0
References: <DM6PR08MB50847B2EED48E0C642ABE2249B4F9@DM6PR08MB5084.namprd08.prod.outlook.com> <CABCOCHTWBmU3kjuTDkmAMiJ-=RexuJp4EALymEV=NurAQNusKw@mail.gmail.com> <DM6PR08MB5084B9510E2EE76F9D7A4D299B4F9@DM6PR08MB5084.namprd08.prod.outlook.com> <AM6PR0702MB3557227E0A860A3185181709F04E9@AM6PR0702MB3557.eurprd07.prod.outlook.com>
In-Reply-To: <AM6PR0702MB3557227E0A860A3185181709F04E9@AM6PR0702MB3557.eurprd07.prod.outlook.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 14 Apr 2021 08:16:43 -0700
Message-ID: <CABCOCHR0Epff=Mvhn23NDch2JCa+62Y6TnR5TRbkbgQd=jzmEQ@mail.gmail.com>
To: Balázs Lengyel <balazs.lengyel@ericsson.com>
Cc: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000ace22905bff03c1b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/vG4guvs10NgIpgHoM4RUOssef2k>
Subject: Re: [netmod] YANG Versioning Weekly Call Minutes - 2021-04-13
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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: Wed, 14 Apr 2021 15:17:44 -0000

On Wed, Apr 14, 2021 at 6:55 AM Balázs Lengyel <balazs.lengyel@ericsson.com>
wrote:

> Hello Andy,
>
> I remember when we wrote these rules, we were concentrating on config and
> did not spend much time considering state data.
>
>
>
> There are rules that are good for config but not for state. E.g.
>
>    - RFC7950 does not allow changing the mandatory statement from false
>    to true; as this could make a valid configuration that does not include an
>    optional leaf invalid.
>    - On the other hand, changing a state leaf from mandatory false to
>    true means always including the leaf in a <get> response. That should be a
>    compatible change.
>
> Do you agree, that at least in some cases different compatibility rules
> for state and configuration data makes sense?
>


I do not agree that this change is needed in the YANG standard.

I do agree that sometimes the YANG change rules get violated.
If this happens then incrementing the major version number may alert a
developer
that NBC changes exist in a new module revision.

IMO a new YANG RFC is needed in order to contradict ANY NORMATIVE TEXT in
RFC 7950.
The alternative seems to be to create 2 separate YANG compatibility tracks,
one called YANG 1.1 and another for "NBC-capable YANG".  As if routinely
breaking
backward compatibility was a good thing


Regards Balazs
>
>
Andy


>
>
> *From:* netmod <netmod-bounces@ietf.org> *On Behalf Of *Sterne, Jason
> (Nokia - CA/Ottawa)
> *Sent:* 2021. április 13., kedd 20:30
> *To:* Andy Bierman <andy@yumaworks.com>
> *Cc:* netmod@ietf.org
> *Subject:* Re: [netmod] YANG Versioning Weekly Call Minutes - 2021-04-13
>
>
>
> Hi Andy,
>
>
>
> Thx for taking a look.
>
>
>
> Yes - agree with the "orderly" comment. That was very brief shorthand for
> the minutes. By "remove" it could even just mean marking as "obsolete"
> (with deprecated as an optional intermediate step).
>
>
>
> We aren't trying to redefine the rules for config. But it is worth
> considering whether some of those aren't really good for state.
> Implementations may be ignoring some of those rules for state because they
> don't really fit.
>
>
>
> Jason
>
>
>
> *From:* Andy Bierman <andy@yumaworks.com>
> *Sent:* Tuesday, April 13, 2021 2:16 PM
> *To:* Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com>
> *Cc:* netmod@ietf.org
> *Subject:* Re: [netmod] YANG Versioning Weekly Call Minutes - 2021-04-13
>
>
>
>
>
>
>
> On Tue, Apr 13, 2021 at 7:12 AM Sterne, Jason (Nokia - CA/Ottawa) <
> jason.sterne@nokia.com> wrote:
>
> YANG Versioning Weekly Call Minutes - 2021-04-13
>
>
>
> Primary discussion was around the BC/NBC rules for state.
>
>
>
> Value space for config false:
>
> - more informative if you actually remove the enum from the model if it
> isn't used anymore (vs leaving it in and servers just not returning it)
>
> - a server implementation should deviate if it doesn't return something
> ever (schema should try to accurately define the API)
>
> - standard module -> remove the item if it isn't part of the API anymore
>
>
>
>
>
> I assume you mean to use the status-stmt to transition from current ->
> deprecated -> obsolete
>
> in an orderly fashion. Especially since sec 11 is very clear:
>
>
>
>    Obsolete definitions MUST NOT be removed from published modules,
>
>    since their identifiers may still be referenced by other modules.
>
>
>
>
>
>
>
> - NMDA operational DS has a copy of config true, so increased value space
> in config automatically casues increased value space in "state"
> (operational)
>
> - a config true MTU in the operational DS and a dedicated config false
> "oper-mtu" leaf should have the same rules for increasing value space
>
>
>
> Maybe a better formulation of the state rules is to take the 7950 rules
> and apply minimal text changes. Rob will take a stab at this.
>
>
>
> 7950:
>
>    o  A "must" statement may be removed or its constraint relaxed.
>
>
>
> Adjusted 7950 text:
>
>    o  A "must" statement may be added, removed, or changed
>
>
>
>
>
> 7950:
>
>    o  A "range", "length", or "pattern" statement may expand the allowed
>
>       value space.
>
> Adjusted 7950:
>
>    o  A "range", "length", or "pattern" statement may expand or reduce the
> allowed
>
>       value space.
>
>
>
>
>
> I strongly object to this WG creating an "adjusted YANG 1.1" standard.
>
> IMO there is no need or WG consensus to create any sort of replacement for
> RFC 7950.
>
>
>
> If YANG 1.1 needs non-backward-compatible changes  (which it doesn't IMO)
> then a new
>
> YANG 2.0 RFC must be written to accomplish that.
>
>
>
> It is possible to introduce support for NBC changes in a way that does not
> change YANG 1.1
>
> at all. E.g.:
>
>
>
> Rule 1 of 1:
>
>   - If any change is made that violates a MUST or MUST NOT provision of
> RFC 7950,
>
>     sec. 11, then the major revision number in the semver string MUST be
> incremented.
>
>
>
>
>
>
>
>
>
> Jason
>
>
>
> Andy
>
>
>
>
>
> ----------------------------------------------
>
> Weekly webex call details:
>
> Meeting number (access code): 171 069 0374
>
> Meeting password: semver?
>
> Occurs every Tuesday effective Tuesday, September 1, 2020 until Tuesday,
> August 24, 2021 from 9:00 AM to 10:00 AM, (UTC-04:00) Eastern Time (US &
> Canada)
>
> 9:00 am  |  (UTC-04:00) Eastern Time (US & Canada)  |  1 hr
>
> https://ietf.webex.com/ietf/j.php?MTID=ma7627a2ae7b770537cff5f5b89293c70
>
> Tap to join from a mobile device (attendees only)
>
> +1-650-479-3208,,1710690374## Call-in toll number (US/Canada)
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>
>