Re: [netmod] Suspected SPAM - Re: Another comment/question on appendix B.2 of draft-ietf-netmod-yang-module-versioning-05

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> Mon, 24 October 2022 19:30 UTC

Return-Path: <jason.sterne@nokia.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 94F49C1524B6; Mon, 24 Oct 2022 12:30:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.377
X-Spam-Level:
X-Spam-Status: No, score=-2.377 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.571, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_NONE=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
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.onmicrosoft.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 jG8i4mgyZEH0; Mon, 24 Oct 2022 12:30:50 -0700 (PDT)
Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2130.outbound.protection.outlook.com [40.107.212.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AC19BC1522DD; Mon, 24 Oct 2022 12:30:44 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=emY4kg4jDCdpV9Yyk42F4mX1dOIfpasFNJla54MLVD5OJYOUgHNIbi4566E+h96gAQr10+Ad5hYFpHUSkWawuITu3WYh44fuks8BthZwQ3Ms884Wa64WVYdp0OBDFFh7M8KfSdvtgHxij7b25r50vVDPYfuCav+mK6Fl7AGyG0kc0xkSknnN224hXjFv5i5uJdKxkerTcczReWiGY2F8DpQBaU1SuT1qYpDRR3epEmUR4LP9kK33QKhNefZTYtLbkpn3J7trKUMCnw+NO+gvlv6gH5OmhHIK/RAVxurzE9QYzzp73U60LDZQAU0KzFVzB6B4F2DOLJxKu89kirCSxg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YVauIG+isElINGhdNJI49ivJJwTX9DDzpERk0UmndwA=; b=Nu9LDOaUdwYyAoe3pdtbt3xvnPgsHHS/NaHRGeZpJCWvyBzpOxAm7/qoYKKem1G4onDlpFDR6xRhwanoMPc7QS7tZJL5ZylLYBDGb2unLT/C3k77PkCrcWyA8d+MSQfhaKk5b2pEbdHM2RoI1wKUSeWkNpIAREHGUKRFrJgbITEZlzEHoLoT51os1F7ne2h9vYLzWvDl7oFUHctIKD8yVIuHPgFIrODmk7aom/18rh2A5C5NIoUK0ZEDC2WNDc6E+xdgllWtHxHHWzit/b7yAUF7gwD3hPR8i2Dm1ZA14TKdpjLefBiFBoQQ+OXLfdsf4gV30WEjg8xRujhZ+kYkCg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YVauIG+isElINGhdNJI49ivJJwTX9DDzpERk0UmndwA=; b=A4GMYMSQMuIwPHrN/Na217S+Vxw5jGTT3bgS/nIjhMGe4wBuhH7pUFbVEbCtQe2VqGKiNZvYAdICq2sTevyeFld/nEupLZ2VeASuyJiIUcCB+IpexvwBCEg5SGNtPP9wMOgZld+puROvNYzwFdGzKDgtK6Kgt12I5x1uNBh78Mw=
Received: from DM6PR08MB5084.namprd08.prod.outlook.com (2603:10b6:5:41::29) by DM6PR08MB4076.namprd08.prod.outlook.com (2603:10b6:5:8a::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.23; Mon, 24 Oct 2022 19:30:39 +0000
Received: from DM6PR08MB5084.namprd08.prod.outlook.com ([fe80::4044:9a81:c96e:a440]) by DM6PR08MB5084.namprd08.prod.outlook.com ([fe80::4044:9a81:c96e:a440%7]) with mapi id 15.20.5709.015; Mon, 24 Oct 2022 19:30:39 +0000
From: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
To: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>, Scott Mansfield <scott.mansfield@ericsson.com>, "italo.busi" <italo.busi@huawei.com>, "netmod@ietf.org" <netmod@ietf.org>
CC: "'ccamp@ietf.org'" <ccamp@ietf.org>
Thread-Topic: Suspected SPAM - Re: [netmod] Another comment/question on appendix B.2 of draft-ietf-netmod-yang-module-versioning-05
Thread-Index: AQHYefimYRhaxW9TVUiWtnnOGpoG7q4eyaiQ
Date: Mon, 24 Oct 2022 19:30:39 +0000
Message-ID: <DM6PR08MB508450A381E5611CCF907FB09B2E9@DM6PR08MB5084.namprd08.prod.outlook.com>
References: <49dffd7325274aa4a6327bdbb4798a71@huawei.com> <BN7PR08MB5073F864D99D58F9236EB88E9BDE9@BN7PR08MB5073.namprd08.prod.outlook.com> <BL0PR1501MB413004920467C521C461817B8BA19@BL0PR1501MB4130.namprd15.prod.outlook.com> <DM6PR08MB5084AE53569E84CD9387D60F9BA29@DM6PR08MB5084.namprd08.prod.outlook.com>
In-Reply-To: <DM6PR08MB5084AE53569E84CD9387D60F9BA29@DM6PR08MB5084.namprd08.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: DM6PR08MB5084:EE_|DM6PR08MB4076:EE_
x-ms-office365-filtering-correlation-id: 19dce06f-b870-408f-4ed6-08dab5f63bc1
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 3LjgIJd4bPGHDSpn6ZhzHfciuq51fIwcgAFRSHtP602q7iH6yx0Xiljw9OFnURgLrl/jQsfKBHHDaNPj5nl2SSFVKMsQGfHdiNMoUCvJuk7V4nxEVvvAzr/U8jViLcrcYcd1fVRnaT2uhF8mGjFRP2kZuzZcx1NW7nFPUKvY3gUQCqPxTvKmrY1yAiSHlP7a/CF4AZ733otcYsMlQ1LH6BwVilD86W6goKTeSdyBovtA2WEsDNFZkqenRXX4j9Ugd+OS2Kuq4g8p+NPkinrY++TRs/g/DabHWAR81sRMgqrDAES/V7azVQS6gezRSuvcHdwQYUn1ONTbvHpG3XoGe2g8XV9w2UNGJgPSa1upMUNnIVZtathLUfGLg5QLsklQgXiIV1nSwo2cLq8jPjnZdGgZwYFE6PG/wDU6tCEIHr5W4n3hBk3clMUDMP+Fudd0FKyQL/udgvSEhYoAGxMPnst9/txquM+apGy8RFgaQ7pj1TqyCOtQhTUIGD2g05oweKvohHyopjaiPRWJYqX9C1FdGXAH+DqBTzMxftj3tIP29XprO5CX3C2auHvlhxIjP+wwM+/hxp5bV1wWwhOTFvXcU8UBiVmvVXplaiHud5yQvBArNJKLhbq7r2R5Z+MLys5BxK9vR4CZmuugwJtnqmb/tLitrbn4dwoUSXLrjmDGWVlz622Dsc9NoCozwniqIKf8ZNsfJZdUbW5yhBnmNNR7oFSiqQ3UFo+CXKKWZUj4nry4hj7PEd0pfIujb7hGIA66neKl2oLsmcQT/d/9gqKa8ydF5eCD0AkQRwBrWn3UoV3bYIBh/Xk94p3A4LOE0uoWLJcoBQEnxS3Oqj0ghQ==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR08MB5084.namprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(376002)(396003)(136003)(346002)(39860400002)(366004)(451199015)(966005)(478600001)(82960400001)(166002)(122000001)(38100700002)(83380400001)(26005)(9686003)(71200400001)(186003)(53546011)(7696005)(6506007)(41300700001)(33656002)(86362001)(2906002)(19627405001)(5660300002)(52536014)(316002)(8676002)(55016003)(38070700005)(66946007)(64756008)(66446008)(4326008)(8936002)(66556008)(66476007)(76116006)(110136005); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: kDUvoz39LIx8+6HLxGZOhHF9aYHas8fH7T6Pe5XAFMsLTt/6CpKJCf/Ez0RgGPGFQMa3aXZy3prGqCMYVAhFf/PR7SkAt3cyU+AxrgPdnmFPdmtsnlqIbfCaPdJdMWmKokf9HH3PgH3uLxouomjwFGmKLxt1U4qtdddiN9pigeBqkZ9lA8M3k0k2o6G4aN7g+aJFLwzOkNcKkdbtvjymnuMs7VhAm87pzqE0h7CqGST9NadeHTlamh7wgmf9tfn9zXvQGux/W/+tCyeuKQVPfzmgzj90w+DZKJuh6rnzyDzUTkrBATgwkdZBTqVkl0/urrJQj0kV4PcWEeNPlYVGUwKyRnodMJbcekmB5Vg5K5xNCyXDNapoD3dvx8Hx4+p0SMK3OQIM26V7a7q+h19Ka8tH69c3PZ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tQEzRZUFbb8o+fZ0T5E/XFDE5EHNrpFG3cR4Vjr/Hg7B5ia2xySq9izNcvaiPDUtKfODSudJ9vGdITfzVG/084Ip3
Content-Type: multipart/alternative; boundary="_000_DM6PR08MB508450A381E5611CCF907FB09B2E9DM6PR08MB5084namp_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM6PR08MB5084.namprd08.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 19dce06f-b870-408f-4ed6-08dab5f63bc1
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2022 19:30:39.4828 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: FzQd5fpOiOECzIDrKnX8b59PWGr2NHu02lPRv287duA1RWlqb2vc/OANnZWRWqHaxY48fHEzGi0giHQQD5LOLw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR08MB4076
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/et7jPGyHVwS7EU2ZcMElvig0LuA>
Subject: Re: [netmod] Suspected SPAM - Re: Another comment/question on appendix B.2 of draft-ietf-netmod-yang-module-versioning-05
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: Mon, 24 Oct 2022 19:30:54 -0000

Hi all,

Version 7 of Module Versioning here has the examples in Appendix B fixed up to remove the incorrect option of putting an old leaf into a new "choice" construct. We've focused the examples on the "incremental" approach (marking the old one deprecated, implement a new item in parallel for a period, then finally obsoleting the old item).


https://datatracker.ietf.org/doc/draft-ietf-netmod-yang-module-versioning/

Jason

From: netmod <netmod-bounces@ietf.org> On Behalf Of Sterne, Jason (Nokia - CA/Ottawa)
Sent: Monday, June 6, 2022 6:56 PM
To: Scott Mansfield <scott.mansfield@ericsson.com>; italo.busi <italo.busi@huawei.com>; netmod@ietf.org
Cc: 'ccamp@ietf.org' <ccamp@ietf.org>
Subject: Suspected SPAM - Re: [netmod] Another comment/question on appendix B.2 of draft-ietf-netmod-yang-module-versioning-05

Another reason just occurred to me why moving the old leaf inside a "choice" is NBC: it may not affect the data tree path to that element of instance data, but it does affect the schema path to that element.

So if it was a container, for example, and some other module was augmenting that container, the augmentation path would be broken if it was moved inside a choice.  I'm not certain that maintaining compatibility with an augmenting module is a fundamental criteria but it certain is an impact to an ecosystem of modules.

Of course all the above is for a fairly "strict" manner of defining backwards compatibility. The actual impacts to a client of moving an old leaf into a new "choice" (where other cases of the choice contain purely new elements that didn't exist before) are often going to be minor to nothing. But the users of the module would need to take a look at it.

This discussion is also making me realize that our text in B.2.3.1 may have a mistake. An author can't stick the old leaf into a "choice" and be 100% BC so we should probably remove that option.

Jason

From: Scott Mansfield <scott.mansfield@ericsson.com<mailto:scott.mansfield@ericsson.com>>
Sent: Friday, June 3, 2022 3:06 PM
To: Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com<mailto:jason.sterne@nokia.com>>; italo.busi <italo.busi@huawei.com<mailto:italo.busi@huawei.com>>; netmod@ietf.org<mailto:netmod@ietf.org>
Cc: 'ccamp@ietf.org' <ccamp@ietf.org<mailto:ccamp@ietf.org>>
Subject: RE: Another comment/question on appendix B.2 of draft-ietf-netmod-yang-module-versioning-05


So basically, deprecating a leaf and adding a new leaf/container that replaces the deprecated leaf will always be NBC.

Still the guidance in B.2 has the least impact and is easy to explain, and has the added benefit that the tree doesn't change and existing (old schema) instance data will work with the new schema.

-scott.

From: CCAMP <ccamp-bounces@ietf.org<mailto:ccamp-bounces@ietf.org>> On Behalf Of Sterne, Jason (Nokia - CA/Ottawa)
Sent: Thursday, June 2, 2022 5:03 PM
To: Italo Busi <Italo.Busi=40huawei.com@dmarc.ietf.org<mailto:Italo.Busi=40huawei.com@dmarc.ietf.org>>; netmod@ietf.org<mailto:netmod@ietf.org>
Cc: 'ccamp@ietf.org' <ccamp@ietf.org<mailto:ccamp@ietf.org>>
Subject: Re: [CCAMP] Another comment/question on appendix B.2 of draft-ietf-netmod-yang-module-versioning-05

Hi Italo,

One problem I see with this change is that in the old data model, the leaf "mode" had to exist in the instance data. But with the new model, it is valid to have instance data with no "mode" leaf at all. That instance data would not validate against the old YANG model.

I do see your point that any valid data that could be generated using the old model is still accepted in the new model. But for the YANG versioning work we've been pretty hesitant to diverge far from RFC 7950 for the list of what is NBC vs BC (mainly just cleanup of the status deprecated & obsolete), and clarifying

There are other possible cases that might meet a definition of "any old config would be accepted by the new model" but we still don't label them as BC in our YANG versioning work, e.g.:
- moving a pre-existing leaf into a new choice along with new elements in other cases (like yours below but without any additional complications of "mandatory" statements)
- changing the type of a uint8 to a union of uint8 and other types

Jason

From: netmod <netmod-bounces@ietf.org<mailto:netmod-bounces@ietf.org>> On Behalf Of Italo Busi
Sent: Wednesday, June 1, 2022 6:07 PM
To: netmod@ietf.org<mailto:netmod@ietf.org>
Cc: 'ccamp@ietf.org' <ccamp@ietf.org<mailto:ccamp@ietf.org>>
Subject: [netmod] Another comment/question on appendix B.2 of draft-ietf-netmod-yang-module-versioning-05

The example (in particular in point 3.1), assumes that it is possible to put the old deprecated leaf and the new leaf within a choice to ensure that the new node is not used when the old node is used

In the context of an update to RFC8561 (-00 I-D still under preparation) we have found a similar care where the choice could also be beneficial to express the requirement that the new node is mandatory when the old node is not used (in other words either the old node or the new node MUST be configured)

You can find a simplified example of the change we were considering here:

https://github.com/samans/testing-yang/tree/main/mw-option<https://protect2.fireeye.com/v1/url?k=31323334-501d5122-313273af-454445555731-dc62b26de858ae3b&q=1&e=885085f0-90e5-462d-827c-73bc1e45f9fc&u=https%3A%2F%2Fgithub.com%2Fsamans%2Ftesting-yang%2Ftree%2Fmain%2Fmw-option>

The original (using the old style mode) is in mw-option@2022-04-01.yang<mailto:mw-option@2022-04-01.yang>. the new version of mode (rlt-mode) is in mw-option@2022-05-26.yang<mailto:mw-option@2022-05-26.yang>

However, when we use pyang to check backward compatibility we get an error message (see the nbc.out file in github):


mw-option@2022-05-26.yang:47<mailto:mw-option@2022-05-26.yang:47>: error: the leaf 'mode', defined at mw-option@2022-04-01.yang:40<mailto:mw-option@2022-04-01.yang:40> is illegally removed
mw-option@2022-05-26.yang:50<mailto:mw-option@2022-05-26.yang:50>: error: the mandatory node mode-option is illegally added

However, we have checked that the xml file mw-option.xml, which uses the deprecated style of mode, works fine also with the new mw-option@2022-05-26.yang<mailto:mw-option@2022-05-26.yang>. We therefore think this type of change can be considered backward compatible since an old client would not break when trying to configure a new server which implements the deprecated node

We are therefore not sure whether this is a tooling issue or a specification issue

Reviewing clause 11 of RFC7950 and draft-ietf-netmod-yang-module-versioning-05, it seems that moving an existing leaf under a choice is not listed as a backward compatible change

We are wondering whether draft-ietf-netmod-yang-module-versioning-05 could clarify that this type of change can be considered backward compatible

We would appreciated any clarification by Netmod WG expert about whether this change can be considered backward compatible or not

Thanks, Italo (on behalf of co-authors working on a new I-D for updating RFC8561)