Re: [Netmod-ver-dt] draft-verdt-netmod-yang-module-versioning: Name of the “label-string” typedef.

"Rob Wilton (rwilton)" <rwilton@cisco.com> Tue, 10 September 2019 13:51 UTC

Return-Path: <rwilton@cisco.com>
X-Original-To: netmod-ver-dt@ietfa.amsl.com
Delivered-To: netmod-ver-dt@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 80671120130 for <netmod-ver-dt@ietfa.amsl.com>; Tue, 10 Sep 2019 06:51:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.5
X-Spam-Level:
X-Spam-Status: No, score=-14.5 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, 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=RIs/N8aZ; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=fAN1TSc7
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 KeKUe6AxCXPZ for <netmod-ver-dt@ietfa.amsl.com>; Tue, 10 Sep 2019 06:51:00 -0700 (PDT)
Received: from alln-iport-5.cisco.com (alln-iport-5.cisco.com [173.37.142.92]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 83FC612001E for <netmod-ver-dt@ietf.org>; Tue, 10 Sep 2019 06:51:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=19558; q=dns/txt; s=iport; t=1568123460; x=1569333060; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=hXAPJWqt2NE1J22jK2ZCq1OqJ3BYt1r4piyD1USl3Nc=; b=RIs/N8aZzDTWb0QZPaEtw+H5uogE9ksbfTA5T1tAzQDXswIcPXoN+sRs S6Gqct6nbgUfLe8K+i4r7K0dWHjmHsJG1w5CzmYgz6UiVRMStCL+9p9zI Gr7rBBJdm8aXsx15GRiIWcpaaG0DLi66yJIMbxwv+hAkAxg7c49LpeHqA A=;
IronPort-PHdr: 9a23:Ei27yRJXW/pdrYpgn9mcpTVXNCE6p7X5OBIU4ZM7irVIN76u5InmIFeBvad2lFGcW4Ld5roEkOfQv636EU04qZea+DFnEtRXUgMdz8AfngguGsmAXFfkLfr2aCoSF8VZX1gj9Ha+YgBY
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AJAADqqHdd/4kNJK1kGgEBAQEBAgEBAQEHAgEBAQGBUwUBAQEBCwGBFS9QA21WIAQLFhQKhBeDRwOEUoYpglyTFIRcgS6BJANUCQEBAQwBARgBCgoCAQGDekUCF4IyIzQJDgIDCQEBBAEBAQIBBgRthS4MhUoBAQEBAwEBEBEKEwEBLAsBDwIBCBEEAQEkBAMCAgIlCxQGAwgBAQQOBQgagwGBHU0DHQECDJt6AoE4iGFzgTKCfQEBBYUHGIIWAwaBNAGLdxiBQD+BV4JMPoJhAQGBSxgrCYJVMoImj0CFISSIdI5SCoIhlRKZCoM5ozQCBAIEBQIOAQEFgVI4gVhwFTuCbIJCOIM6hRSFP3OBKY1cAYEiAQE
X-IronPort-AV: E=Sophos;i="5.64,489,1559520000"; d="scan'208,217";a="328718064"
Received: from alln-core-4.cisco.com ([173.36.13.137]) by alln-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 10 Sep 2019 13:50:59 +0000
Received: from XCH-ALN-006.cisco.com (xch-aln-006.cisco.com [173.36.7.16]) by alln-core-4.cisco.com (8.15.2/8.15.2) with ESMTPS id x8ADoxk2005603 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL) for <netmod-ver-dt@ietf.org>; Tue, 10 Sep 2019 13:50:59 GMT
Received: from xhs-rtp-002.cisco.com (64.101.210.229) by XCH-ALN-006.cisco.com (173.36.7.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 10 Sep 2019 08:50:59 -0500
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by xhs-rtp-002.cisco.com (64.101.210.229) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 10 Sep 2019 09:50:58 -0400
Received: from NAM03-BY2-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 10 Sep 2019 09:50:57 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VuRmcXAFFNYw+pqK6e79D6v/ZTCQyoXln7egafulIno+ph5VcKJ9zUpHifSE4Rvcy34owbQnYQqetD77Q7Dj7ynCFvOZxvc/TOvj23s77gvVNU6H49XLursqquoH+3ajo0oDPcGi8+Phnq8JJdm7sUSg7LJ+ayXoF60yM9Mx10oDIWjBxyy5rZxCTR14NfrIUUxinl0YLoU++ZcGWO8vcXN0FFBtIeDfPL50+eKj3KHt/RHBJUNcgMJ5UqL5RkQbHqGLY/zJ8DZhuFiVg2En0bMgkdIxvXvrRbcE3rhVrz7DNfyuQB56vQgajwoZgzzwuSeIJhUKvA96xUcVCaMzdQ==
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=hXAPJWqt2NE1J22jK2ZCq1OqJ3BYt1r4piyD1USl3Nc=; b=PiZ5hPCNCFhl/S9GBMqBZ6haduOivTmJkErdazxY08WCnTeaiW7Fy7QleiQyBEtSuCyoXQd5V8rFWbp1mdwBfkr+7kMab0OwcMXRztm8rElS6mYOjDtTeKGjDdTwRuDMzjCPYIoBXnxRUdd+m8tkZUEn4+NFLi+BP+NeRvWeFakerQm3vSi2KkeoRx/V+jG1X4kzW7CffKc9tRu+VGOX+6Zfuqp0gJVhZyUbSL7zX59i/2iBHJ5hsUOMhObZhYK4dcgSatowrCFekFpQLcuUiyTpsWtMCHwbCsmDzAG8h5NVFe2KNd8Z03qF8uEemTpxRSk9wrzTW/qzQhZPGGttlg==
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=hXAPJWqt2NE1J22jK2ZCq1OqJ3BYt1r4piyD1USl3Nc=; b=fAN1TSc7B1bJTRSw/IsqIPXImni2TkTljyAIa0TCSWSJ0/zMSSpzQe+IeUjL9vLIDLW4FMaY2PSNlCPkg+/7DDP92kVHTiQbfRG0d78banQybh6cuSQzWIk+Ds8ZL5Hwwrks200vPUPowSMnt31r9ZJgUmNdJls2KZh5iPqRjzk=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (52.135.38.209) by MN2PR11MB4431.namprd11.prod.outlook.com (52.135.37.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.15; Tue, 10 Sep 2019 13:50:53 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::6db3:f4c:467b:30f6]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::6db3:f4c:467b:30f6%7]) with mapi id 15.20.2241.018; Tue, 10 Sep 2019 13:50:53 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: "Joe Clarke (jclarke)" <jclarke@cisco.com>
CC: "netmod-ver-dt@ietf.org" <netmod-ver-dt@ietf.org>
Thread-Topic: [Netmod-ver-dt] draft-verdt-netmod-yang-module-versioning: Name of the “label-string” typedef.
Thread-Index: AdVm+wE2Dmj3+ZtsQieKxleIiqFjQAAPDIoAACnNR1A=
Date: Tue, 10 Sep 2019 13:50:53 +0000
Message-ID: <MN2PR11MB43665DCCFB50A9AC7B4FB55DB5B60@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <MN2PR11MB436621235D4DA605303EC2F2B5B70@MN2PR11MB4366.namprd11.prod.outlook.com> <C886CD18-89DB-468C-891D-2C99EF78F779@cisco.com>
In-Reply-To: <C886CD18-89DB-468C-891D-2C99EF78F779@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rwilton@cisco.com;
x-originating-ip: [173.38.220.40]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 9f8a89bd-97e5-4f93-e80a-08d735f5e5c9
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:MN2PR11MB4431;
x-ms-traffictypediagnostic: MN2PR11MB4431:
x-ms-exchange-purlcount: 3
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <MN2PR11MB4431A51205BDD46BC6970944B5B60@MN2PR11MB4431.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 01565FED4C
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(396003)(366004)(39860400002)(376002)(346002)(189003)(199004)(51444003)(476003)(486006)(7736002)(33656002)(6636002)(74316002)(99286004)(86362001)(52536014)(14454004)(446003)(478600001)(229853002)(81156014)(81166006)(8936002)(6506007)(790700001)(6116002)(3846002)(53546011)(76176011)(66066001)(11346002)(2906002)(64756008)(966005)(7696005)(66446008)(606006)(6862004)(25786009)(66556008)(66946007)(66476007)(6436002)(5660300002)(186003)(6306002)(9686003)(54896002)(236005)(6246003)(55016002)(71200400001)(71190400001)(316002)(53936002)(26005)(256004)(76116006)(4326008)(102836004)(21314003); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB4431; H:MN2PR11MB4366.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: N+S63n5C61+03z3jNUWR8jc4NL4FYDQD4dGvZKWC6zPy6u9MUdTU0ujtsPbx6VMU3XCviAThUi4OCVry5mC2jZi1PLiXRoFzSpoxjRU1/53RR3jwihwR3m6qi4reFa4X6uOextRiHI+gjKKMANnLN/cxitwtQwnpJZ7tGdoOTbz6S0XDBN6hW4UltpnnlixCmBBvTUDMGvC/T78AHSAUmboKj049KZI5AGEPfCTQSEWuX5d5C0k3+0fHGUDPZkaAyJWx/pveAHYIyuZ7PubcttA4Fq5y9eipYQHm7vyMp0FJHnzA3WRj6VIQjiom4dl5zcfmbfBe9mtsaBWpt+YwxskU7n7c+vmTsBMsos6gx4MUfJf2CPJN1CjLw85pl83PXlX4rgwkWaGEHhn8nVjSqzfMR4Poq1QGqk7RPQavOVQ=
Content-Type: multipart/alternative; boundary="_000_MN2PR11MB43665DCCFB50A9AC7B4FB55DB5B60MN2PR11MB4366namp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 9f8a89bd-97e5-4f93-e80a-08d735f5e5c9
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Sep 2019 13:50:53.3719 (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: DiJm8mdXn1lDHB0RVE3/n1Hj0k14CS6eTgeH7pI+CS5uYUFOLcI4+wxUjJHMhF0zslJJK/JgEQtvV0JSJS1lZw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4431
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.16, xch-aln-006.cisco.com
X-Outbound-Node: alln-core-4.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod-ver-dt/QbCliOdAWjP0HPzQwM8FaqiqvZQ>
Subject: Re: [Netmod-ver-dt] draft-verdt-netmod-yang-module-versioning: Name of the “label-string” typedef.
X-BeenThere: netmod-ver-dt@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NetMod WG YANG Model Versioning Design Team <netmod-ver-dt.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod-ver-dt>, <mailto:netmod-ver-dt-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod-ver-dt/>
List-Post: <mailto:netmod-ver-dt@ietf.org>
List-Help: <mailto:netmod-ver-dt-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod-ver-dt>, <mailto:netmod-ver-dt-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Sep 2019 13:51:06 -0000


From: Joe Clarke (jclarke) <jclarke@cisco.com>
Sent: 09 September 2019 18:51
To: Rob Wilton (rwilton) <rwilton@cisco.com>
Cc: netmod-ver-dt@ietf.org
Subject: Re: [Netmod-ver-dt] draft-verdt-netmod-yang-module-versioning: Name of the “label-string” typedef.




On Sep 9, 2019, at 06:40, Rob Wilton (rwilton) <rwilton@cisco.com<mailto:rwilton@cisco.com>> wrote:

The type of “revision-label” is currently defined as:

  typedef label-string {
    type string {
      length "1..255";
      pattern '[^\s@]+';
      pattern '\d{4}-\d{2}-\d{2}' {
        modifier invert-match;
      }
    }
    description
      "A label associated with a YANG revision.

       Excludes spaces and '@'.  Cannot match revision-date.";
    reference
      "draft-verdt-netmod-yang-module-versioning: Revision label";
  }

  typedef revision-date-or-label {
    type union {
      type revision-identifier;
      type label-string;
    }
    description
      "Represents either a YANG revision date or a revision label";
  }

I think that it might be better to change the name of the typedef “label-string” to “revision-label-string”.

Is this OK?

It depends.  I think the prefix will be “rev:” right?  I opted to call the typedef in the server draft “version” simply because it will be always written server:version.
[RW]

Yes, in the packages draft I have the following leaf defined:
    leaf version {
      type rev:label-string;
      mandatory true;
      description
        "Uniquely identies a particular version of a YANG package.

         Follows the definition for revision labels defined in
         draft-verdt-nemod-yang-module-versioning, section XXX";
    }

Here, it looked like calling the type “rev:revision-label-string” might be cleaner.

This is a very minor issue though!

Thanks.
Rob



Joe



Thanks,
Rob


_______________________________________________
Netmod-ver-dt mailing list
Netmod-ver-dt@ietf.org<mailto:Netmod-ver-dt@ietf.org>
https://www.ietf.org/mailman/listinfo/netmod-ver-dt