Re: [netmod] Revision labels for submodules

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Mon, 22 June 2020 20:59 UTC

Return-Path: <rrahman@cisco.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 C9AF63A0C3C for <netmod@ietfa.amsl.com>; Mon, 22 Jun 2020 13:59:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.598
X-Spam-Level:
X-Spam-Status: No, score=-9.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=MCLEAN9T; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=BhkErGun
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 GE-J3_WtRHcz for <netmod@ietfa.amsl.com>; Mon, 22 Jun 2020 13:59:45 -0700 (PDT)
Received: from alln-iport-2.cisco.com (alln-iport-2.cisco.com [173.37.142.89]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0C6F33A11A1 for <netmod@ietf.org>; Mon, 22 Jun 2020 13:59:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=50172; q=dns/txt; s=iport; t=1592859582; x=1594069182; h=from:to:subject:date:message-id:references:in-reply-to: content-id:content-transfer-encoding:mime-version; bh=vb736VAeTQbf9BIGCWwNlngkKtokwwjh+0k4kTZF/1k=; b=MCLEAN9ThI05rVO+yi+0mbrV7D+ZgU/CXZXUxtIGRXNUQYG+kLWY52cY joES/i/wnXEXPpchNw088Yw6gMI0iEt8IMu6OE1I3lPRzJ5DnHKyaz7PK aAjgDJj05q3ZNjiNWdhfIofN+r1K9g+sblZ/Qmx+mjKWqWSNPxdax4h3c U=;
IronPort-PHdr: =?us-ascii?q?9a23=3Ax4c+CREUSf2Fk6uvnSr8K51GYnJ96bzpIg4Y7I?= =?us-ascii?q?YmgLtSc6Oluo7vJ1Hb+e401QWbXIjH5bRDkeWF+6zjWGlV55GHvThCdZFXTB?= =?us-ascii?q?YKhI0QmBBoG8+KD0D3bZuIJyw3FchPThlpqne8N0UGGcviaRvVuHLhpTIXEw?= =?us-ascii?q?/0YAxyIOm9E4XOjsOxgua1/ZCbYwhBiDenJ71oKxDjpgTKvc5Qioxneas=3D?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0BmBgC3GvFe/4gNJK1mHAEBAQEBAQc?= =?us-ascii?q?BARIBAQQEAQFAgUqBUlEHb1gvLAqEGoNGA40fJZhUgUKBEANQBQsBAQEMAQE?= =?us-ascii?q?YDQgCBAEBhAJFAheCFAIkOBMCAwEBCwEBBQEBAQIBBgRthVsBC4VyAQEBAQI?= =?us-ascii?q?BAQEQCAkRDAEBLAwEBwQCAQgRBAEBAQICJgICAiULFQgIAgQTIoMEAYJLAw4?= =?us-ascii?q?gAQ6reQKBOYhhdoEygwEBAQWFUhiCDgMGgQ4qgmeJfBqBQT+BEScMEIJNPoJ?= =?us-ascii?q?cAQECAYEnARIBBxoHECECglozgi2PFQEDMIJghmCaTIECCoJaiEKLF4VQAx2?= =?us-ascii?q?CcTWbVZErgWOIMpQzAgQCBAUCDgEBBYFqImZwcBU7KgGCPlAXAg2OHgwXg06?= =?us-ascii?q?FFIVCdAI1AgYBBwEBAwl8jnsBgRABAQ?=
X-IronPort-AV: E=Sophos;i="5.75,268,1589241600"; d="scan'208";a="518040743"
Received: from alln-core-3.cisco.com ([173.36.13.136]) by alln-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 22 Jun 2020 20:59:40 +0000
Received: from XCH-ALN-002.cisco.com (xch-aln-002.cisco.com [173.36.7.12]) by alln-core-3.cisco.com (8.15.2/8.15.2) with ESMTPS id 05MKxeu9006034 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL) for <netmod@ietf.org>; Mon, 22 Jun 2020 20:59:40 GMT
Received: from xhs-aln-001.cisco.com (173.37.135.118) by XCH-ALN-002.cisco.com (173.36.7.12) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 22 Jun 2020 15:59:40 -0500
Received: from xhs-rcd-002.cisco.com (173.37.227.247) by xhs-aln-001.cisco.com (173.37.135.118) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 22 Jun 2020 15:59:39 -0500
Received: from NAM10-MW2-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 22 Jun 2020 15:59:39 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O5HUJc+NKcZbh8VNfgUai7N7EhI92MFsAHOaB01hiDtecJ5N8PQG8mtrn1UjvfQ7dsugjOcWOmYYVSgJPDNDCRcsjOPE7Nfy/40pqE00yCMsE7ft4kZebBeuzLzr++s45xRen2mT1t4Z6VBe/ty9Dxzl7YTLKdxX4y19w561opOj64L7CTNSWADlWMyjdZKWeIjWGhRNGswx7m8lD2frcSPWbYCo3aq0c6qOp/iWg2SSaZ4kgI2pxRty6Jcj+1ipOMDj9kRYLrnra5F4dkVUiEx2Z0Hs3amtUwE7soX4WsaJwH+9tR6lFzJ3smci6LNFKQPtRHNglTDCcnPQTj+lHg==
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=vb736VAeTQbf9BIGCWwNlngkKtokwwjh+0k4kTZF/1k=; b=b4gkpXBOukOb403kXEcxiNBdFUMpU2WiYnHAVFv8qrG0O7hDXO29EUlKpWsAqohfAyPFdXb+IybycEGJPUqJaYVwbr3aOirqcTRrdVs2qa5XZpgj/CFrQdBS5oABaZxWf0as2BpC0buKpyNO0daGbeHbkDRqFA01yGDaRdp7tCVBQ32ZBMyNrLZKUVWaTWjejnwDAPRHpeWf7k9ACzP7X905qetHqqonUx5I537g5pKui1G4eK0kks9qlbDeIJMjK3vNYN90JRhgB1605Vw2+vBOJM2pRZ5s2H42kcZFg+pnB0Clw5mfVuvfUq3eRk9IupkxF6GntQsNA1KrORr9bg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vb736VAeTQbf9BIGCWwNlngkKtokwwjh+0k4kTZF/1k=; b=BhkErGun93MQECsB9YGpkxHtjVRVcGfZEjMFw1ByBF9w9kCP0w9Q8YoiHNBxv8JklEy7M8+GMFHO5i+bmyMlF986/CdJyeDj2KQq/3I9XeSXIeYRjKOvqS1o7YOPoto8cA8Wbq8rsbD4dVD2b7JGb2wgnC+F2qDgRb+epWUnyxs=
Received: from BN6PR11MB3875.namprd11.prod.outlook.com (2603:10b6:405:80::37) by BN6PR11MB0002.namprd11.prod.outlook.com (2603:10b6:405:62::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22; Mon, 22 Jun 2020 20:59:37 +0000
Received: from BN6PR11MB3875.namprd11.prod.outlook.com ([fe80::3076:a505:335e:a8ff]) by BN6PR11MB3875.namprd11.prod.outlook.com ([fe80::3076:a505:335e:a8ff%6]) with mapi id 15.20.3109.027; Mon, 22 Jun 2020 20:59:37 +0000
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Revision labels for submodules
Thread-Index: AQHWJT+MiAxw1tFb+k6vD0etivad/KiesDOA///RIoCAAWgsgIAADsmQgARBloCAAd74MP//5aCAgABOUzD///Y6AAAJC/BgBAtspoADx3cCgA==
Date: Mon, 22 Jun 2020 20:59:37 +0000
Message-ID: <6017DB44-52A3-4039-B695-B4C8B03340B7@cisco.com>
References: <8D4A99E4-93D3-495C-9B46-26C61BBABAA7@cisco.com> <20200508.231215.893859438588129498.id@4668.se> <B692BC98-AA66-4E12-9EF5-516FFCF04F33@cisco.com> <20200509.175337.1668899395924812873.id@4668.se> <DM5PR08MB2633E41BFC1C1FBBB8D2C7059BA30@DM5PR08MB2633.namprd08.prod.outlook.com> <75D482FE-2F79-4B39-A7B7-B131510BF039@cisco.com> <DM5PR08MB26334810A88C7F994370156B9BBF0@DM5PR08MB2633.namprd08.prod.outlook.com> <DCA5FE0D-7308-445B-8B97-7174339B04B4@cisco.com> <DM5PR08MB26339A6A842DD724E64B9B1F9BBF0@DM5PR08MB2633.namprd08.prod.outlook.com> <59E710C1-B118-4E35-9A3D-59A17ED4CBB5@cisco.com> <DM5PR08MB2633F88107857EBA4C84DC5F9BBF0@DM5PR08MB2633.namprd08.prod.outlook.com> <B34AE370-4C65-4A35-B887-CD191F79BE13@cisco.com>
In-Reply-To: <B34AE370-4C65-4A35-B887-CD191F79BE13@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.37.20051002
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [142.113.229.50]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 78a4794d-c694-4fa5-6cad-08d816ef2cce
x-ms-traffictypediagnostic: BN6PR11MB0002:
x-microsoft-antispam-prvs: <BN6PR11MB00026B6960D011D26756C501AB970@BN6PR11MB0002.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:5516;
x-forefront-prvs: 0442E569BC
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: MSKz46GWNkm9Zd2T1Gokw3r0sf+I2dA2Au/WJcQknVNu0wts3vDuEV178NDOsa/HNorreJNYuLaEV5GluWTAyuXilmwpVb872ugxQ4h1wA5qCCei2/JRFREpiZkZNrRqZdMgKcT2qIh7B96aD3apA/DJ2JNHL5pFn7xeZ+XiSxN1I1Ka4bJeZ10coQDJtpwL5OuuelmmEASAEmCNrf2++0Nz+TZ+aXPbWWjwUUSkd9Ag3i7IEaVTF95xV/4gAbgns4vZOktG9o2xIGk5yBLpdqzB1cm1djzeCkuUqCexKxzHcSkIknzT9Jk9sTUg7STS25w2SMCWBn5CQoWX/ajpVc2w4Et04IiFNtnytXe/RLHphXz1jnvvghNa8VG8HHWLe9vJMSJAJz6QUhtuvayLng==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR11MB3875.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(39860400002)(346002)(366004)(136003)(376002)(6486002)(6512007)(36756003)(2906002)(66574015)(30864003)(71200400001)(186003)(8936002)(2616005)(83380400001)(26005)(6916009)(8676002)(53546011)(6506007)(33656002)(478600001)(86362001)(64756008)(66556008)(966005)(91956017)(76116006)(66476007)(66446008)(5660300002)(316002)(66946007)(559001)(579004); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: qRlCk4W1Dy5AU6iErYng/UnPfEIEIwv+KlHXYgiMQTmj9r4u9zzwCMOho16e5p7sP7JnjAb7MJOQERx9KUmyeWLmRGU5tsKnEQqD+OGLaNgWM0YIepVuO4eMWHnVgfc/aP6lFuys83ayFOgQVIqp5yj85cp/cnFMKBTcQhewuQOrCMPxQx5IvBz+GOHTn8gsF/gk3jYCVOGqr1jUcyZYeIlgvxHTI4prWbiIzjqG0EQYCIDe19yZgTIuxX4Pq1vx2PPjnI/YbHCdfPMZGKFiWrnchZ79Fb/su84AWjA8D8Kkoexs6hrkhwi6zMOpQt7FtzB3RYonyVv4ZJWxkgyHVjLEFtsPxvWF1ttvyXuISnf9hk82OZmYxkWAMMG1QdtAj387JmBijY2HmAZDGt0sjNJzWL4Hcf+DTj53cjribVk0Nw0oZ7dctldCHnEbYrWGxAqHANagvg9HPsKYGKnMB81qE5NN/4XaiaLco3dIkHcPcGJ6cvpuJ9yKYRHnfj+Q
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <A82D138827C91A4386477779EFB52EA4@namprd11.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 78a4794d-c694-4fa5-6cad-08d816ef2cce
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jun 2020 20:59:37.7056 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: Ir1PXBUnV60rJDCDxRdf2J2EZoz2sf+aoGi7gDntKYbmRwaDOZOzfW37ZXnAKb0hBYE94TpO308XG5GOI2J+Rg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB0002
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.12, xch-aln-002.cisco.com
X-Outbound-Node: alln-core-3.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/tUdfaoKwB3fNioqw5Rj8rktPzT0>
Subject: Re: [netmod] Revision labels for submodules
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: Mon, 22 Jun 2020 20:59:49 -0000

WG, we're in the process of updating the various drafts. So comments/ack/nack sooner rather than later would be very appreciated.

Regards,
Reshad.


On 2020-06-05, 3:06 PM, "Reshad Rahman (rrahman)" <rrahman@cisco.com> wrote:

    We (authors/contributors) have discussed this issue in the last couple of weekly meetings and come up with the following. We'd like to hear back from the WG before updating the draft.

    For sub-modules:
    1) No revision-label is OK
    2) Same revision-label scheme as including module is OK, but different revision-label space for submodules
    3) Sub-modules can use different scheme as including module. By default (no revision-label scheme extension statement), submodules use same scheme as including module. Different submodules could use different schemes.

    3)  is not unanimous. Why would submodules use a different scheme as including module? But since allowing this seems to have a small cost, it doesn't seem to do any harm.

    Here's the proposed text:

    i) Replace MUST by SHOULD for include of submodules by revision-date.

    https://tools.ietf.org/html/draft-ietf-netmod-yang-module-versioning-00#section-3, replaced MUST by SHOULD below and added some text:
       A module's name and revision date identifies a specific immutable
       definition of that module within its revision history.  Hence, if a
       module includes submodules then the module's "include" statements
       SHOULD use "revision-date" substatements to specify the exact revision
       date of each included submodule.

    ADDED TEXT:
    When a module does not include its submodules by revision-date,  the revision of submodules used cannot be derived from the including module. If the revision of submodules is needed, mechanisms such as YANG packages and YANG library can be used.

    https://tools.ietf.org/html/draft-ietf-netmod-yang-module-versioning-00#section-7.1, replaced MUST by SHOULD and modified existing text as suggested in email discussion.
    OLD TEXT:
       A module that includes submodules MUST use the "revision-date"
       substatement to include specific submodule revisions.  Changing a
       module's include statements to include different submodule revisions
       requires a new revision of the module.
    NEW TEXT:
       A module that includes submodules SHOULD use the "revision-date"
       substatement to include specific submodule revisions.  The revision of the including
       module MUST be updated when any included submodule has changed. The
       revision-label substatement used in the new module revision MUST indicate the nature
       of the change, i.e. NBC, BC or editorial, to the module's schema tree.

    ii) Change text which talks about revision-labels for submodules, https://tools.ietf.org/html/draft-ietf-netmod-yang-module-versioning-00#section-3.3:
    OLD TEXT:
       The revision date and revision label within a submodule's revision
       history have no effect on the including module's revision.
       Submodules MUST NOT use revision label schemes that could be confused
       with the including module's revision label scheme.
    NEW TEXT:
      Submodules MAY use a revision label scheme. When they use a revision
      label scheme, submodules MAY use a revision label scheme that is different from
      the one used in the including module.
      The revision label space of submodules is separate from the revision label space of the including module.
      A change in one submodule MUST result in a new revision label of that submodule and the including module,
      but the actual values of the revision labels in the module and submodule  could be completely different. A
      change in one submodule does not result in a new revision label in another submodule. A change in a module
      revision label does not necessarily mean a change to the revision label in all included submodules.

    Regards,
    Reshad (on behalf of the group).

    On 2020-05-13, 5:25 PM, "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> wrote:

        The example we've been using to discuss this is an editorial type change in 2 submodules (moving a leaf between them with no changes to their definition or the schema). 

        But if we consider an example where schema actually changes (in a part that is defined in a submodule), then it does seem reasonable that the module version should also change.

        So (A) is probably the right answer here.  But it does have a potentially confusing consequence: two YANG files could be identical except for an extra revision statement. It may appear that someone incorrectly bumped a version when there was no change, until you notice that "oh, this module includes submodules - one of those must have changed".

        Jason

        > -----Original Message-----
        > From: Reshad Rahman (rrahman) <rrahman@cisco.com>
        > Sent: Wednesday, May 13, 2020 4:52 PM
        > To: Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com>; Martin
        > Björklund <mbj+ietf@4668.se>
        > Cc: netmod@ietf.org
        > Subject: Re: [netmod] Revision labels for submodules
        > 
        > Hi Jason,
        > 
        > Is your question of option A v/s B just for the case where the schema
        > represented by the module does not change?
        > 
        > If the schema changes, even if the module didn't change, the revision-label
        > has to be updated to indicate the change.
        > If the schema didn't change, I'd go with editorial revision-label update as (I
        > think) Martin suggested.
        > 
        > Regards,
        > Reshad.
        > 
        > On 2020-05-13, 1:30 PM, "Sterne, Jason (Nokia - CA/Ottawa)"
        > <jason.sterne@nokia.com> wrote:
        > 
        >     So that's the part I'm not sure of.
        > 
        >     If a leaf moves between submodules, and the module file doesn't change
        > in any way (as we've said is possible and should be allowed), do we mandate
        > that the module version changes?  This is up to us to define IMO
        > 
        >     (A) the module version has a scope that includes the module and all
        > submodules
        >     (B) the module version has a scope that is just the module file contents
        > 
        >     I'm on the fence between those two. (A) could make sense but it does
        > mean that someone comparing two versions of the just the module file itself
        > may see no difference whatsoever between them except the addition of a
        > new version statement.
        > 
        >     Jason
        > 
        >     > -----Original Message-----
        >     > From: Reshad Rahman (rrahman) <rrahman@cisco.com>
        >     > Sent: Wednesday, May 13, 2020 12:46 PM
        >     > To: Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com>;
        > Martin
        >     > Björklund <mbj+ietf@4668.se>
        >     > Cc: netmod@ietf.org
        >     > Subject: Re: [netmod] Revision labels for submodules
        >     >
        >     > Hi Jason,
        >     >
        >     >
        >     > On 2020-05-13, 11:50 AM, "Sterne, Jason (Nokia - CA/Ottawa)"
        >     > <jason.sterne@nokia.com> wrote:
        >     >
        >     >     Hi guys,
        >     >
        >     >     As someone who is heavily involved in the development of an
        > extensive
        >     > YANG model comprised of submodules, I'm not a fan of mandating that
        >     > include by revision is mandatory for submodules. It may indeed be a
        > good
        >     > idea (so perhaps SHOULD is fine) but I can see it causing problems on the
        >     > implementation side.
        >     >
        >     >     The primary development of a data model may be distributed out to
        >     > submodules and the main module may only be a top level container for
        > the
        >     > submodules (and rarely touched). This would suddenly create an
        > ordering
        >     > dependency in the release process that requires the main module file to
        >     > systematically be updated after all development of the submodules is
        > halted.
        >     > Then the results of the submodules has to be used to then go update
        > the
        >     > module. Solvable - yes, but folks who work on large scale projects will
        > know
        >     > that suddenly requiring that type of development process change isn't as
        >     > easy as it may sound on paper.
        >     > <RR> I can see why you wouldn't want to modify all your include by-
        > revision
        >     > statements. But you would still need to update the module revision-
        > label
        >     > based on changes done in the included submodules.
        >     >
        >     > Regards,
        >     > Reshad.
        >     >
        >     >     It is possible to manage the "packaging" of submodules and modules
        > out
        >     > of band or other mechanisms.
        >     >
        >     >     OpenConfig, for example, uses submodules but does not currently
        > include
        >     > by version. I'm not proposing this is ideal. But I think we should leave it
        > as
        >     > acceptable.
        >     >
        >     >     Rgds,
        >     >     Jason
        >     >
        >     >     > -----Original Message-----
        >     >     > From: Reshad Rahman (rrahman) <rrahman@cisco.com>
        >     >     > Sent: Tuesday, May 12, 2020 9:46 AM
        >     >     > To: Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com>;
        >     > Martin
        >     >     > Björklund <mbj+ietf@4668.se>
        >     >     > Cc: netmod@ietf.org
        >     >     > Subject: Re: [netmod] Revision labels for submodules
        >     >     >
        >     >     > Hi Jason,
        >     >     >
        >     >     > On 2020-05-09, 12:52 PM, "Sterne, Jason (Nokia - CA/Ottawa)"
        >     >     > <jason.sterne@nokia.com> wrote:
        >     >     >
        >     >     >     Hi Martin,
        >     >     >
        >     >     >     Your approach sounds good to me. I was forgetting about the
        >     > "editorial"
        >     >     > level of change (e.g. the 3rd part of SemVer).  So I agree that moving
        > a
        >     > leaf
        >     >     > would be an editorial change in both submodules.
        >     >     >
        >     >     >     But what if a module is not doing include by revision? It may
        > indeed
        >     > make
        >     >     > sense to include by revision but it isn't mandated. For sake of
        > argument
        >     > here
        >     >     > what if the module itself didn't change at all in this case?
        >     >     > It is now mandated in section 3 of draft-ietf-netmod-yang-module-
        >     >     > versioning-00.
        >     >     >
        >     >     >
        >     >     >     It *feels* like the right thing to do here is to consider the module
        >     > overall
        >     >     > to have an editorial change.
        >     >     >
        >     >     >     The revision statement of sub-modules has a scope of the file (the
        >     > sub-
        >     >     > module). It isn't clear to me whether the revision of a *module* has
        > a
        >     > scope
        >     >     > that includes all sub-modules or if it is just a scope of the module
        > file.
        >     > But we
        >     >     > could clarify that as part of this work.
        >     >     > Because of include by revision, the module would have to change to
        >     > include
        >     >     > a different revision of a sub-module.
        >     >     >
        >     >     > Regards,
        >     >     > Reshad.
        >     >     >
        >     >     >     Jason
        >     >     >
        >     >     >     > -----Original Message-----
        >     >     >     > From: Martin Björklund <mbj+ietf@4668.se>
        >     >     >     > Sent: Saturday, May 9, 2020 11:54 AM
        >     >     >     > To: rrahman@cisco.com
        >     >     >     > Cc: netmod@ietf.org; Sterne, Jason (Nokia - CA/Ottawa)
        >     >     >     > <jason.sterne@nokia.com>
        >     >     >     > Subject: Re: [netmod] Revision labels for submodules
        >     >     >     >
        >     >     >     > "Reshad Rahman (rrahman)" <rrahman@cisco.com> wrote:
        >     >     >     > > Hi,
        >     >     >     > >
        >     >     >     > > On 2020-05-08, 5:12 PM, "Martin Björklund"
        > <mbj+ietf@4668.se>
        >     >     > wrote:
        >     >     >     > >
        >     >     >     > >     Hi,
        >     >     >     > >
        >     >     >     > >     "Reshad Rahman (rrahman)" <rrahman@cisco.com> wrote:
        >     >     >     > >     > Hi,
        >     >     >     > >     >
        >     >     >     > >     > This came up during this week's meeting. We briefly
        > discussed
        >     >     > whether
        >     >     >     > >     > there's a need to version sub-modules or can we restrict
        >     > versioning
        >     >     > to
        >     >     >     > >     > modules only. We would like to hear from the WG on this,
        >     >     > especially
        >     >     >     > >     > those with experience managing sub-modules.
        >     >     >     > >
        >     >     >     > >     Yes I think this is needed.  At tail-f, there are several
        > modules
        >     > with
        >     >     >     > >     many submodules.  These modules always use include by
        >     > revision,
        >     >     > and
        >     >     >     > >     always the main module is always uddated when any
        > submodule
        >     > is
        >     >     >     > >     updated.  It doens't make much sense IMO to not use
        > include by
        >     >     >     > >     revision.
        >     >     >     > >
        >     >     >     > >     > For completeness, below is an update from Jason in
        > github:
        >     >     >     > >     > My initial reaction is that we should not preclude the use
        > of
        >     >     > revision
        >     >     >     > >     > label with a submodule. Submodules have their own
        > version
        >     >     > today. The
        >     >     >     > >     > trick is to define (or explicitly say it is out of scope)
        > whether a
        >     >     >     > >     > module version must change if any underlying submodule
        >     > versions
        >     >     >     > >     > change. That gets difficult if you consider simply moving a
        > leaf
        >     >     > from
        >     >     >     > >     > one sub-module to another (without changing anything
        > else
        >     > about
        >     >     > it -
        >     >     >     > >     > its context, etc).
        >     >     >     > >
        >     >     >     > >     Why would this be difficult?  The revision date is updated on
        > any
        >     >     >     > >     editorial change (see 7.1.9 of RFC 7950).  So if a leaf gets
        > moved
        >     >     >     > >     from submodule A to submodule B, then their revisions are
        >     > udpated,
        >     >     > and
        >     >     >     > >     hence the module's include-by revision is udpated, and
        > hence
        >     > the
        >     >     >     > >     module's revision ois updated.
        >     >     >     > >
        >     >     >     > > I think what Jason meant is that by moving a leaf between
        >     >     > submodules,
        >     >     >     > > it's possible the module's schema didn't change.
        >     >     >     > > So yes revision date is updated, but you can't blindly update
        > the
        >     >     >     > > revision-label.
        >     >     >     >
        >     >     >     > Why not?
        >     >     >     >
        >     >     >     >
        >     >     >     > /martin
        >     >     >     >
        >     >     >     >
        >     >     >     > >
        >     >     >     > > Regards,
        >     >     >     > > Reshad.
        >     >     >     > >
        >     >     >     > >     /martin
        >     >     >     > >
        >     >     >     > >
        >     >     >     > >
        >     >     >     > >     >
        >     >     >     > >     > Regards,
        >     >     >     > >     > Reshad.
        >     >     >     > >     >
        >     >     >     > >     > On 2020-03-27, 5:44 PM, "netmod on behalf of Reshad
        >     > Rahman
        >     >     >     > (rrahman)"
        >     >     >     > >     > <netmod-bounces@ietf.org on behalf of
        >     >     >     > >     > rrahman=40cisco.com@dmarc.ietf.org> wrote:
        >     >     >     > >     >
        >     >     >     > >     >     Hi,
        >     >     >     > >     >
        >     >     >     > >     >     https://github.com/netmod-wg/yang-ver-dt/issues/49
        >     >     >     > >     >
        >     >     >     > >     >             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?
        >     >     >     > >     >
        >     >     >     > >     >     Good point. What was meant by that the label space for
        >     >     > modules and
        >     >     >     > >     >     sub-modules are orthogonal.  e.g. the sub-module and
        >     > module
        >     >     > both
        >     >     >     > have
        >     >     >     > >     >     the same label, it shouldn't be inferred that the 2 are
        >     > related.
        >     >     >     > >     >     We'll change/clarify the text.
        >     >     >     > >     >
        >     >     >     > >     >     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
        >     >     >     > >     >
        >     >     >     > >     >
        >     >     >     > >
        >     >     >     > >
        >     >     >
        >     >
        >     >
        > 
        >