Re: [netmod] status-description (WAS Re: mbj review of draft-verdt-netmod-yang-module-versioning-01)

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> Wed, 29 April 2020 21:38 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 739763A18A7 for <netmod@ietfa.amsl.com>; Wed, 29 Apr 2020 14:38:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.721
X-Spam-Level:
X-Spam-Status: No, score=-2.721 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.82, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable 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 aodSsrJBcBVO for <netmod@ietfa.amsl.com>; Wed, 29 Apr 2020 14:38:15 -0700 (PDT)
Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-eopbgr760115.outbound.protection.outlook.com [40.107.76.115]) (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 8DF1D3A0D4E for <netmod@ietf.org>; Wed, 29 Apr 2020 14:37:50 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VtuV2PxJjvInJO4wSWaWLFWxlpaHIsY+1gT140fBG+KPpNSHkUKx8lUl6gQVBUHtWX9ifnrO2FQM7GsME5NWYMglyR94r1I8qtl41amc1wMOEaCbc545dE/OEXVYybc2lJTv4+hs45oggMrQOxvl8bJsRAAVe0x1dh3V1Qio3vbFm+jW+IRrNw8umMepW5qw7vROBmE5OqZFiJRUqOBAB0u+AmB+sIU9D+qFxC2BTzKahY+LzGDNWjIFnXxmpRa92JJ4PWqAXB1w4rDJ5zf14NhBKvSshp2QaH9Fhk39V5I/g3QPyLXTwzk2Ns8ZJ7++HnAMHmdVwR6zB9DsPyOEYQ==
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=pKMYW7aeL6U2CDeBIKR6/qmuuJOrmzQwhylYGmwpvK8=; b=GiidsYR8LmOM0oagKRegIliPGX3uSBBdw/03EBwrrllsTHTByZ7QSWr6G2CNe2tFmZvJc+NeeFM+6nL2zlDpRhHdJVHFhPSdxvI1gV2vikISAt/PsM6PvE1WI1224kUtW8FVHHEh+fNNPYXUBhPtdwdxQ5bthLLHu+Idkdh+UZwftShAqF62s+nYmoySOuuzJHSwVlsgHBy86SNy0U/bLPz/JHv9PaYEseZjF9u2EyMVSPr9ucsJerqPIecPEcDatdTNzTBS1URDB6dnVyKahTlfc8svvlV37cwi1EIhw4kqBVUHesUiIcRn/OrlDc38Wl+iIHfpY5B0awafoWIOwA==
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=pKMYW7aeL6U2CDeBIKR6/qmuuJOrmzQwhylYGmwpvK8=; b=vPt/a8YH0MfT1Bp61uIlujVyusl5z8q5Lhuc/0d4usXOItsHGM5qBmy6Yu7o5+TW7KBi/2mb4jSc+qpHhbwk7qxDq1lEZA02rmzHvMI0LfHAV89hZGUXUUllTuP5cg53p+lI32xYh1XILxhbIQXcVFgAKNnwU0WSJBx2HjSxypM=
Received: from DM5PR08MB2633.namprd08.prod.outlook.com (2603:10b6:3:ca::21) by DM5PR08MB3497.namprd08.prod.outlook.com (2603:10b6:4:62::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.22; Wed, 29 Apr 2020 21:37:48 +0000
Received: from DM5PR08MB2633.namprd08.prod.outlook.com ([fe80::c00d:56c3:675e:ec63]) by DM5PR08MB2633.namprd08.prod.outlook.com ([fe80::c00d:56c3:675e:ec63%3]) with mapi id 15.20.2937.026; Wed, 29 Apr 2020 21:37:48 +0000
From: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
To: "Reshad Rahman (rrahman)" <rrahman=40cisco.com@dmarc.ietf.org>, Martin Björklund <mbj+ietf@4668.se>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: status-description (WAS Re: mbj review of draft-verdt-netmod-yang-module-versioning-01)
Thread-Index: AQHWBICodxtZEL4Sck2h4uvyp4I9TKiQ0dGA
Date: Wed, 29 Apr 2020 21:37:48 +0000
Message-ID: <DM5PR08MB263369B99B8F25B4FC383E0B9BAD0@DM5PR08MB2633.namprd08.prod.outlook.com>
References: <3635DB7C-30F0-4214-BBD4-8A0C03177D0C@cisco.com>
In-Reply-To: <3635DB7C-30F0-4214-BBD4-8A0C03177D0C@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dmarc.ietf.org; dkim=none (message not signed) header.d=none;dmarc.ietf.org; dmarc=none action=none header.from=nokia.com;
x-originating-ip: [174.112.3.120]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 9875cf7d-f0be-45f0-f5cb-08d7ec858fd5
x-ms-traffictypediagnostic: DM5PR08MB3497:
x-microsoft-antispam-prvs: <DM5PR08MB34971CD9B1BB664C11A880089BAD0@DM5PR08MB3497.namprd08.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 03883BD916
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR08MB2633.namprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(136003)(39860400002)(376002)(366004)(396003)(8676002)(2906002)(316002)(55016002)(9686003)(86362001)(5660300002)(71200400001)(8936002)(66946007)(478600001)(33656002)(26005)(52536014)(186003)(66574012)(6506007)(966005)(66476007)(53546011)(66556008)(7696005)(110136005)(66446008)(76116006)(64756008); DIR:OUT; SFP:1102;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: mFLy5UqaXHVtnDs9G/DZU0vSkYsMyrOHk/WYc6Kbl1Ca3bA/VaEGyXFz6Cq7xbNLkyCpjdN4n04GDhWeh1ie4WSmzVIs3xpggFGDY7+MebDIbWhvIz7o7rEf37j4BRQYuxDins6UlXIzqZ1U/7DY2GnyoQnTNSn1s8FD3TJenlOa9fZIupUoRcaGWcK0EIZc9jWawa3U+J3Euwmm5oIEYwpY8/vkPM0Vi2J3w3ES3xOCZ5QG+DT9Sv9DWZM8M/U7XTBq9E569Z+GmVFaep6KwPfN6JjmCcrbB2/NVyYPUQf9KZS2JC9y2nd8tkxIerTx+cz+oCF0a3PKrT1Sw7yj4JwPcEtMIFKyBNDWijxrMyc6CMxcCmNFMhZf2IsH790YhiyF30bUafkKxAq+jX/Rzw9Tki2QAAlxv3h3kPeshskU5XzfIuMM2ZXOTZLK4dlOyohqzM8iZOge78iBWw4hsq0xhXxmGMS3Fid9tNfxvHZfiaRBvaxBDsxXXljPPfsfY4fbeSwo/KLX40TN48lYEQ==
x-ms-exchange-antispam-messagedata: aQk9Jq3L/cQIp0OmUq7ydLfPpKAO4w2CVaIRCriZlzJzQFKvh7flmnrTeiXhp9QBz2IGf1GmmcVi+2SBaRXx1S2Ebu5GGRJ9va/RLevTYnnIzxGovO2CzOoplfSQ/30a0+3MyJwkern6vqviCi2E0Dh599PaFsRzbgurYyMj618fBEtIL4lSsVoevj04YfGEIZJHlk+2/2Z+dZAgvWqGnNq2laXFVp/66lw2sB84P+TBCG8JvYnsALvZ3xQZhiTOAbodP+ah+zSClzYb4vpD49X+viLPJ2AI7Eus6ujpmzlMneSe4xb9DAWMOa3xoyQZypofD3Lr6sgbI3WRJS/ZQSRNG/dMjGgbcCsZCKUjeVqvCoPA5ceR/r9DNTERnIWIh8a9iKBFBue1yPU2KM4SFAhLi/Zp+51sFvBE+9o6+IfXAEMYU0adT6HbCGbfoZUBAemlIPW02Yk9+HuAJkOd4N67tXYxS/LGsvkAonuI5XWdhV1t6LDtO3hhpJ4Qu4AOGpsvbVE1JsAQ1QjyiQLJKkKNJTiLsCT76DTZFd0ZWG0mP8pN+5WGkd8omWWk0iJr2kYGYfTKhZDiYq4IeD0BEhz4P6vjHXePZxCcy5r/QN8oB9q8C0WDdaL/AgIdnyP4YAwEHzf3aF894yt5V3ISlgQqUy/wfgqOUHFk79iZDC6kkMVwvW4lEI8foaF5AcMmpKLvYbzXN8FDNP2jDMLed+N5R8R2paohsT12BX3cPCCivfTQ8nOPawbannHkjQ7VjIaHFisz6VaEuFMjD0NLcLffKQpXeFC9fPR/EGIhrh4=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 9875cf7d-f0be-45f0-f5cb-08d7ec858fd5
X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2020 21:37:48.2404 (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: 0QQXZRLgCpm6HI0mL/oyBsPjknz8oL7YyhGu2yGN2fdaYzT1dOCCS7B6pOeM8l6Mznh3fgDDdS/7MZU7okPBtg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR08MB3497
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/pf99H7AGDAYf8r23Dz4CHB_jV7Q>
Subject: Re: [netmod] status-description (WAS Re: mbj review of draft-verdt-netmod-yang-module-versioning-01)
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, 29 Apr 2020 21:38:20 -0000

I think we could wait until YANG 2.0 to add a description to the status.

Without a status description, an intelligent "YANG diff" of the models would produce this:
a) new status deprecated statement
b) change to a description

With a status description we'd identify this:
a) new status deprecated statement
b) new status description

In both cases it is (a) that identifies the most clear information.

In both cases (b) provides no additional information that can be acted upon in an automated fashion. The tool could only flag that (b) occurred in both cases and a human would then have to go look at it.

If the only change between two versions of a module was a status description change, then again a human would have to take a look. If we add some sort of "nbc" tag to the leaf for tooling, then it also doesn't matter which description changed.

Jason


> -----Original Message-----
> From: netmod <netmod-bounces@ietf.org> On Behalf Of Reshad Rahman
> (rrahman)
> Sent: Friday, March 27, 2020 5:43 PM
> To: Martin Björklund <mbj+ietf@4668.se>; netmod@ietf.org
> Subject: [netmod] rev:status-description (WAS Re: mbj review of draft-verdt-
> netmod-yang-module-versioning-01)
> 
> Hi,
> 
> https://github.com/netmod-wg/yang-ver-dt/issues/51
> 
>         o  3.4
> 
>              leaf imperial-temperature {
>                type int64;
>                units "degrees Fahrenheit";
>                status deprecated {
>                  rev:status-description
>                    "Imperial measurements are being phased out in favor
>                     of their metric equivalents.  Use metric-temperature
>                     instead.";
>                }
>                description
>                  "Temperature in degrees Fahrenheit.";
>              }
> 
>           I don't think rev:status-description is necessary / worth it.  This
>           can easily be written with the normal description statement instead:
> 
>              leaf imperial-temperature {
>                type int64;
>                units "degrees Fahrenheit";
>                status deprecated;
>                description
>                    "Imperial measurements are being phased out in favor
>                     of their metric equivalents.  Use metric-temperature
>                     instead.
> 
>                     Temperature in degrees Fahrenheit.";
>              }
> 
> While rev:status-description isn't strictly necessary, without it we'd have to
> modify the node's description as you pointed out. That'd make tooling more
> difficult: is the description change BC or NBC? Also, a user looking at a diff
> would need to go through the description change. Use of  rev:status-
> description makes this easier to handle.
> 
> Regards,
> Reshad.
> 
> 
> 
> On 2020-03-20, 5:08 PM, "netmod on behalf of Reshad Rahman (rrahman)"
> <netmod-bounces@ietf.org on behalf of
> rrahman=40cisco.com@dmarc.ietf.org> wrote:
> 
>     Hi Martin,
> 
>     We've opened issues to track your review comments (see below). Will kick
> off separate therads for each issue.
> 
>     https://github.com/netmod-wg/yang-ver-
> dt/issues?q=is%3Aissue+is%3Aopen+label%3Aupdated-mod-rev-handling
> 
>     Regards,
>     Reshad.
> 
>     On 2020-03-10, 3:31 PM, "netmod on behalf of Martin Björklund" <netmod-
> bounces@ietf.org on behalf of mbj+ietf@4668.se> wrote:
> 
>         Hi,
> 
>         Here are my review comments of
>         draft-verdt-netmod-yang-module-versioning-01.
> 
> 
> 
>         o  3.1.1
> 
>             o  In statements that have any data definition statements as
>                substatements, those data definition substatements MAY be
>                reordered, as long as they do not change the ordering or any "rpc"
>                "input" substatements.
> 
>           I think this needs to capture that no descendant statements to
>           "input" can be reordered.  Same for "output" (note, "input" and
>           "output" in both "rpc" and "action").
> 
> 
>         o  3.3
> 
>             All revision labels that match the pattern for the "version"
>             typedef in the ietf-yang-semver YANG module MUST be interpreted as
>             YANG semantic version numbers.
> 
>           I don't think this is a good idea.  Seems like a layer violation.
>           What if my project use another dialect of semver, that wouldn't be
>           possible with this rule.  I think this needs to be removed.
> 
> 
>         o  3.3
> 
>             Submodules MUST NOT use revision label schemes that could be
> confused
>             with the including module's revision label scheme.
> 
>           Hmm, how do I ensure that this MUST NOT is handled correctly?  What
>           exactly does "could be confused with" mean?
> 
> 
>         o  3.3
> 
>               In the filename of a YANG module, where it takes the form: module-
>               or-submodule-name ['@' revision-label] ( '.yang' / '.yin' )
> 
>           Should this section update 5.2 of RFC 7950?  I know that 5.2 just
>           says "SHOULD".  But existing tools implement this SHOULD, and they
>           need to be updated to handle this new convention.
> 
>           But I wonder if this a good idea.  It means that a tool that looks
>           for a module with a certain revision date cannot simply check the
>           filenames, but need to parse all available modules (wijust to find the
> 
> 
> 
>         o  3.4
> 
>              leaf imperial-temperature {
>                type int64;
>                units "degrees Fahrenheit";
>                status deprecated {
>                  rev:status-description
>                    "Imperial measurements are being phased out in favor
>                     of their metric equivalents.  Use metric-temperature
>                     instead.";
>                }
>                description
>                  "Temperature in degrees Fahrenheit.";
>              }
> 
>           I don't think rev:status-description is necessary / worth it.  This
>           can easily be written with the normal description statement instead:
> 
>              leaf imperial-temperature {
>                type int64;
>                units "degrees Fahrenheit";
>                status deprecated;
>                description
>                    "Imperial measurements are being phased out in favor
>                     of their metric equivalents.  Use metric-temperature
>                     instead.
> 
>                     Temperature in degrees Fahrenheit.";
>              }
> 
> 
>         o  3.5
> 
>           The example modules should be legal YANG modules.  Use e.g.
>           "urn:example:module" as namespace.
> 
>           Also, the modules are missing the last "}", which confuses the
>           "rfcstrip" tool.
> 
> 
>         o 4.1.1
> 
>             Alternatively, the first example could have used the revision label
>             "1.0.0" instead, which selects the same set of revisions/versions.
> 
>             import example-module {
>               rev:revision-or-derived 1.0.0;
>             }
> 
>           Shouldn't this be s/1.0.0/2.0.0/g ?
> 
> 
>         o  5
> 
>           I think the module name "ietf-yl-revisions" should be changed to
>           "ietf-yang-library-revisions".   "yl" is not a well-known acronym.
> 
> 
>         o  5.2.2
> 
>           Wouldn't it be better if the leaf "deprecated-nodes-implemented" and
>           "obsolete-nodes-absent" were of type "boolean" rather than type
>           "empty"?
> 
> 
>         o  7.1
> 
>           The text says:
> 
>             All IETF YANG modules MUST include revision-label statements for all
>             newly published YANG modules, and all newly published revisions of
>             existing YANG modules.  The revision-label MUST take the form of a
>             YANG semantic version number [I-D.verdt-netmod-yang-semver].
> 
>           I strongly disagree with this new rule.  IETF modules use a linear
>           history, so there are no reasons to use "modified semver".
> 
>           It is ok to use rev:nbc-changes if needed, though.
> 
> 
>         o 7.1.1
> 
>           There is a missing " in:
> 
>            4.  For status "obsolete", it is RECOMMENDED to keep the "status-
>                description" information, from when the node had status
>                "deprecated, which is still relevant.
>          HERE  -----------^
> 
> 
>         o  8
> 
>           s/CODE ENDS>/<CODE ENDS>/
> 
> 
>         o Both YANG modules
> 
>           All extensions should specify the grammar; i.e., in which statements
>           they can be present and which substatements they can have.
> 
> 
> 
>         /martin
> 
>         _______________________________________________
>         netmod mailing list
>         netmod@ietf.org
>         https://www.ietf.org/mailman/listinfo/netmod
> 
> 
>     _______________________________________________
>     netmod mailing list
>     netmod@ietf.org
>     https://www.ietf.org/mailman/listinfo/netmod
> 
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod