Re: [netmod] Client validation text [was RE: YANG Versioning Weekly Call Minutes - 2021-04-06]

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> Fri, 09 April 2021 14:32 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 B83233A231E for <netmod@ietfa.amsl.com>; Fri, 9 Apr 2021 07:32:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hgXis_lfF6dl for <netmod@ietfa.amsl.com>; Fri, 9 Apr 2021 07:32:33 -0700 (PDT)
Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on20700.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eaa::700]) (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 AC5E93A231D for <netmod@ietf.org>; Fri, 9 Apr 2021 07:32:33 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kR9VcQiL0KysKShN6spJSQ6e7TEkz5OWcdMdowp/wKx3ec9/G7aHcj5QzJHMvdRJ/SewARr9gl07VNVzqz/EfyXd6VFP/xHZsNfxHbMcSjffbpIRR2vkSvl031/PaMagXdmIP3kLjMhGJFkoh2x4yAFNsbiDW8dUWj5WPWa9oOOtduiUI2okZoIQDFIarw3ao0r30ulDTaaRUBDJc13hrTiBOZ1W3Ej2qxlcp4SQMjxvWOhMGSHd2tFPqH4b67SrAmn2EINKdLc+JuLThd37CtWsDBhN6U7k7vUu3QlVLmGiWNLdTxrMb3D4QAQh4odBV5vBZNtE7evgGdTpVPyeDA==
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-SenderADCheck; bh=Lxh9/8r8Q2ZCI0Hao8gKO83XOmitdHq9byRlHu+MdMM=; b=A09EI1mbplzwLA17qauEC6u9bqg8a2cCtQNKmjqxHCCMcxeX6l099FraBKx3Apl7AnT/Mv4VfCFiBW4NktbLiibCkFZTguCSQu6FXrdZADKkLiyU1LvVup1XvUg5mn68wtBkzh/lYvj38fygtYNbq5LJYrJw34gMKBrLhwHl0Z8iMyMKqeJYxrk2fQsuamHdKbQVMy6eupa0tu4OCsUzDJxojU6cJTlke9yo6Yaig69c8nU6DPC4ixUH4CQJtbQGCpJtA9YmWw9OnhMYNyqPUEB1H4Z+pRdkFlH4MQIGK+sUv8CDAkh3nUy1rBMnhlWokB64jbXS4n1WSk7pOAouvg==
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=Lxh9/8r8Q2ZCI0Hao8gKO83XOmitdHq9byRlHu+MdMM=; b=h3CsSO8TpGuiixeYCb3M6n6J6bJi3McG3sH5cztTOIPDERCcXEtWyKXTVDtHfF0wSKB7PDfAI4FZwaiz7iEmvUynUX9/Yi59odoj/Oksb5q6MFjYhGDF/HHz+oqWnXA3OfTrS7x/diKI+ZCdHNxBqt4LkAJ+9f4/VycrJBrI6Ms=
Received: from DM6PR08MB5084.namprd08.prod.outlook.com (2603:10b6:5:41::29) by DM6PR08MB5403.namprd08.prod.outlook.com (2603:10b6:5:19::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.16; Fri, 9 Apr 2021 14:32:25 +0000
Received: from DM6PR08MB5084.namprd08.prod.outlook.com ([fe80::4c19:5c12:5ed6:96df]) by DM6PR08MB5084.namprd08.prod.outlook.com ([fe80::4c19:5c12:5ed6:96df%4]) with mapi id 15.20.3999.036; Fri, 9 Apr 2021 14:32:25 +0000
From: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
CC: "Rob Wilton (rwilton)" <rwilton@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Client validation text [was RE: YANG Versioning Weekly Call Minutes - 2021-04-06]
Thread-Index: Adcrjvs0u1Y2kX7cTWaMCLlk2EmADgBEca5wAAHbCoAAJt+v8AAAgYyAAAAa8OAAAGNHAAAAJCmAAADIUoAAAD73IA==
Date: Fri, 09 Apr 2021 14:32:25 +0000
Message-ID: <DM6PR08MB50846CAC728FCD5C47D228D99B739@DM6PR08MB5084.namprd08.prod.outlook.com>
References: <MN2PR11MB4366255A77C76D9004360169B5759@MN2PR11MB4366.namprd11.prod.outlook.com> <DM6PR08MB5084935EDB6AB7718B695BAA9B749@DM6PR08MB5084.namprd08.prod.outlook.com> <20210408185127.l7cafoeq6svs4ns4@anna.jacobs.jacobs-university.de> <DM6PR08MB5084D71FD6FF7F029318AFD69B739@DM6PR08MB5084.namprd08.prod.outlook.com> <20210409133901.ifffu3jg4cghyji6@anna.jacobs.jacobs-university.de> <DM6PR08MB50845720309BE411A3FECBEF9B739@DM6PR08MB5084.namprd08.prod.outlook.com> <20210409135308.4nrlvndnj3phjih4@anna.jacobs.jacobs-university.de> <DM6PR08MB508470734D8E5AE99FDE2C859B739@DM6PR08MB5084.namprd08.prod.outlook.com> <20210409141935.xsjj5c272rq453u5@anna.jacobs.jacobs-university.de>
In-Reply-To: <20210409141935.xsjj5c272rq453u5@anna.jacobs.jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: jacobs-university.de; dkim=none (message not signed) header.d=none;jacobs-university.de; dmarc=none action=none header.from=nokia.com;
x-originating-ip: [23.233.24.194]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 0fd667ba-1405-4221-8afb-08d8fb644bbc
x-ms-traffictypediagnostic: DM6PR08MB5403:
x-microsoft-antispam-prvs: <DM6PR08MB54034E472827281E063D9C289B739@DM6PR08MB5403.namprd08.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: F6Q9cEcH7qccQjEtZ/vHllK3U2rJ3L1THzv8mgFQl5bxi6QZlbAgoPRmOym/MTJORyXQLFV5WRJEjTa8FkFqA+u9Gp+Dm1QGAYeRq5iDcnTx2ZFNB6WsPCnatyu6yg2UREjojFBHJlr+DiNp8K204EixB9xgS+qnp14ahv/YmhbC/bnKp7p3aUHGeB0DgSRFMDJrSuh+rXJ2ROPHl9nScSXkAi+q9rr6RnWwIkMpxMLkbmj8vL291bCqe3cel4+vOrfTYcAeEJjPoZTPF6zXH3BKTxGT3KnfbzgMJKMgFtccLiIkuhcyXzIMR+dcN1yq7GFuU6Sl+zXEeJaw2aEQNNB7/6D4kn1sPDxZc8I6JdBLExhW+3GffsEUIgSkn02ZjBhM9tszD+AFZkX2ofE24FFLBaExwMyZl6Mm4aeDsFL2Tu0EuFXY+shcE0EKaPTDnFvCaK9gQd+/NjSlqABt8m7rFvpHjoOMDcETRGFr2q5cv+cbeYsBTZ1N3CMI1jX6y/XKDuauxJRIUrkl6lnxNNFsHOP5j68X0Yt6UPAkAghs+E3kN2TLMyTUwnaSLbGRD2d00yDL+gHtb++R/LF/cdgpP3SP/tvTY7r0n6/RodMdm9wGfIvoacyysyJbrq6gQd8H+cSu7abFgKsLjbi2ZndvtwWPVDuIkvpaxlDx14qXJe7DiSRf1GzVH6WTofk0FN1KW3d51/GUD+oYqJRRsWIrPuidDAWN60CYy/yfLQsVRvrdTZTmQ/QM4nVJIACW
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:(4636009)(346002)(366004)(39860400002)(376002)(396003)(136003)(66476007)(6506007)(478600001)(66946007)(76116006)(26005)(66446008)(53546011)(8936002)(64756008)(66556008)(2906002)(5660300002)(52536014)(33656002)(86362001)(38100700001)(71200400001)(54906003)(316002)(8676002)(83380400001)(55016002)(6916009)(66574015)(186003)(4326008)(7696005)(9686003); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: t0k4rtas/PO7RhgFnppxL3sOTj5Y2LaLzMmn76iioo6gIZgwVGtgL7mOfOdQKjfTS8UzRyStkaw0b4bUe+LoRG8VvgoNc8IJSlh+y+VHh30sZGvudRUP3VH1LXd/zbSTbdeesWNaejcfgNlEY6vEdV+AjdE1J3Lwkl/IpMgmU4AbiD8eFooCeCV6V496NmVyXUKvGNZSfx1eA+DJtVKM+RtfUeUKqxaCqUc/bG5pDugZSh11Ayk/+R0P8+WG6jnwmQTnLpy9xdaRNOx2x0rpMb+T/x43ydSnTnHYF7jLAiykXYppE2lfbN00YEQrAGLRZ5xR4WwXjp+46MW0txHWWFBOBxSk5uYHIefDT8MOzdtWYthnixcr0z4GJksRSNLJhYeSFpOo1LAe6Lmx4F8FP2bLiuPe2o3tdLKKAdrGs0VwRdxgAXMSPWDlivA5A5kwu/l7dvaU9xhnVZm7E6WTAUHayh8Rm+ySHGJrgpQXMoThKK57iB6FemXbn/bj/d8HtuRdNDosTd1nNgBBfUl32crFX59vUCKRrySRZr42U6llYYoL46bPuV1KfT76lhtnK3pMFV8Mt74Q2T4asHNbl6uQYYfQWopposFWEea+daycUdX9J4QnPjQcgGFb3VFFJJTSpx5mg13nnzfA7ykkfrijQy3Md86TpRX/LMaXtZn6YLZijLSdlEBv2m/mQiEd/kILlCVqU0Vx7KnhcmneBZgLSaLttxrwQYqZu8tYKfAKbCqSIuM7rSQmCyKnoD03ApU4Z8xV6FuWcaOUmQ368odAD1ztbpIvST0G+D/M2wAC/ao3e8PxA7IJo1l6zHrV1CjlfBNClZ7ClquZDwchM6F7KI1aCDmL2UC48Tk/MiSucc1JI1ipr1VXRkQAp8iEobOVbMOFCcuK1tV6c6IQMwVjKlfDev7wUx9XcXIXtTkrO9yLWFHCpfGghVTaG2wjCdJeWlxblcELp1N0uSYy+AwXI4+Y5unhwPD9APzFlzMgBRQQ5D1x4aC1FV9srcS1ZwJtEDRjSbWpWyeeFsLLa+z20VDUt9jlBUvYQPaPUtQ0pesf4aGIKbzMRD6s+d7p97t2ImP98iU8849DOLUdXhpXULLgK10YaVnYC6pf6k+1quvME4MBkpnQOUZRICmcqAN6a4HD0yRZDZ0YoD4NRkChFSe0EYwHNpFGcQhuucKxzgAWT8VxaKxxBWvHH3yl9mnvF5QzZ0k3Ov+rwLYUiBPyioeOPqtDVxzUIvzO/KEfPgfasJWnFNS75z15OqhwGF/CYHf7063hnRIvHvh/IxePWbmoGaS8mF/9Cl0OD40sRkYKZopthn5ycJwRYcVf
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
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: 0fd667ba-1405-4221-8afb-08d8fb644bbc
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2021 14:32:25.7165 (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: NvNZZSKm4ki737UfICkfoz+s00W/OaTk8jc0ZXSjWTcvOcAjCKICQLUxNRbcTAB1lm2n5fP/1Ax5UMQj7RXA2Q==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR08MB5403
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/n-eTKVhIVk_zm9mdCMYEiEAwCk0>
Subject: Re: [netmod] Client validation text [was RE: YANG Versioning Weekly Call Minutes - 2021-04-06]
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: Fri, 09 Apr 2021 14:32:40 -0000

Hi Juergen,

Yes - it isn't obvious and we've been struggling with what to do about state. It just feels like maybe the 7950 rules were more focussed on config and it might be worthwhile adapting some of them a bit for state for this YANG Revision work we're doing.

The big one is this value space issue. It feels like expanding/reducing value space has different impacts on clients for config vs state.

I think a fairly common use case for this is bug fixes in vendor modules. And note that at least two major router vendors have separate modules for state (Nokia and Cisco).

Jason

> -----Original Message-----
> From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
> Sent: Friday, April 9, 2021 10:20 AM
> To: Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com>
> Cc: Rob Wilton (rwilton) <rwilton@cisco.com>; netmod@ietf.org
> Subject: Re: [netmod] Client validation text [was RE: YANG Versioning
> Weekly Call Minutes - 2021-04-06]
> 
> Creating lots of special rules makes me feel uncomfortable. Is there
> evidence that people reduce state value spaces a lot and in isolation,
> i.e., they just rev a module to reduce some state value spaces?
> 
> /js
> 
> On Fri, Apr 09, 2021 at 02:00:42PM +0000, Sterne, Jason (Nokia - CA/Ottawa)
> wrote:
> > The key focus here is *if* the author does remove the enum, then how
> should we label the revision -> BC or NBC ?
> >
> > RFC7950 does indeed say that is NBC.  But do we actually want that for
> state for:
> > - removing an enum
> > - shrinking a range
> > - changing a pattern in a manner that reduces the value space
> >
> > We're worried that will create too much "NBC noise" when it really in
> practice won't be an issue at all for clients.  Client just won't receive the old
> values from the larger value space anymore.  So why flag this as NBC and
> make people do work to analyze it ?
> >
> > Jason
> >
> > > -----Original Message-----
> > > From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
> > > Sent: Friday, April 9, 2021 9:53 AM
> > > To: Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com>
> > > Cc: Rob Wilton (rwilton) <rwilton@cisco.com>; netmod@ietf.org
> > > Subject: Re: [netmod] Client validation text [was RE: YANG Versioning
> > > Weekly Call Minutes - 2021-04-06]
> > >
> > > I do not recall that removing an enum was ever an issue in
> > > practice. If an enum value is not used anymore, you leave the old enum
> > > value and it will slowly but surely not be used anymore. (An enum
> > > statement even has a status statement, so you can deprecate or
> > > obsolete enum values.) That said, if the module owner decides to
> > > remove the value, then this is indeed non-backwards compatible. (And
> > > removing an enum paves the way to reallocate the associated number,
> > > and be it by accident later again. I suggest people think twice
> > > before removing enums.)
> > >
> > > /js
> > >
> > > On Fri, Apr 09, 2021 at 01:43:09PM +0000, Sterne, Jason (Nokia -
> CA/Ottawa)
> > > wrote:
> > > > Urghh.  I reversed my example.  I should have said removing an enum.
> Let
> > > me reword:
> > > >
> > > > One key example is this:  7950 says that removing an enum from an
> > > enumeration leaf is NBC (and that applies to state). But that may not
> really
> > > be how most implementations would want to treat state. Would we
> really
> > > want to flag a module as non backwards compatible when a state leaf has
> an
> > > enum removed?  Wouldn't that create a lot of unnecessary noise?
> > > >
> > > > > -----Original Message-----
> > > > > From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-
> university.de>
> > > > > Sent: Friday, April 9, 2021 9:39 AM
> > > > > To: Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com>
> > > > > Cc: Rob Wilton (rwilton) <rwilton@cisco.com>; netmod@ietf.org
> > > > > Subject: Re: [netmod] Client validation text [was RE: YANG Versioning
> > > > > Weekly Call Minutes - 2021-04-06]
> > > > >
> > > > > On Fri, Apr 09, 2021 at 01:32:15PM +0000, Sterne, Jason (Nokia -
> > > CA/Ottawa)
> > > > > wrote:
> > > > >
> > > > > > One key example is this:  7950 says that adding another enum to an
> > > > > enumeration leaf is NBC (and that applies to state). But that may not
> > > really
> > > > > be how most implementations would want to treat state. Would we
> > > really
> > > > > want to flag a module as non backwards compatible when a state leaf
> > > gets an
> > > > > additional enum?  Wouldn't that create a lot of unnecessary noise?
> > > > >
> > > > > I read this in RFC 7950:
> > > > >
> > > > >    o  An "enumeration" type may have new enums added, provided
> the
> > > old
> > > > >       enums's values do not change.  Note that inserting a new enum
> > > > >       before an existing enum or reordering existing enums will result
> > > > >       in new values for the existing enums, unless they have explicit
> > > > >       values assigned to them.
> > > > >
> > > > > What do you want this to change to?
> > > > >
> > > > > /js
> > > > >
> > > > > --
> > > > > Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> > > > > Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen |
> Germany
> > > > > Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
> > >
> > > --
> > > Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> > > Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> > > Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
> 
> --
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>