Re: [yang-doctors] Identities vs enums

"Rob Wilton (rwilton)" <rwilton@cisco.com> Fri, 30 August 2019 09:22 UTC

Return-Path: <rwilton@cisco.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A3079120C80 for <yang-doctors@ietfa.amsl.com>; Fri, 30 Aug 2019 02:22:04 -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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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=JRV6D5bo; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=sS8GEZ9j
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 ok1V4uZ6VgqG for <yang-doctors@ietfa.amsl.com>; Fri, 30 Aug 2019 02:22:01 -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 072C9120C74 for <yang-doctors@ietf.org>; Fri, 30 Aug 2019 02:22:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3232; q=dns/txt; s=iport; t=1567156921; x=1568366521; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=atiOjlvnwgBvqgfh+bYXjrbOGw5oA9xXMoZ7rqRMgYg=; b=JRV6D5boHWDHh+Z1mwPBe5j+wNJA6752g/HFOkLVzRIiI0gULahg2AI5 vzST8dgs0h28TYwC4t3tbjddF/8Uqd+MTTx8zDlfQ0BujMJDlKTeBCpBc xFrmrcOwa7kVEtUAHwyM7GUsytkkO4nuHZwgn4Y+6vkNg6B8jhJYRoN4/ 0=;
IronPort-PHdr: 9a23:xaZFDxAaujC9CZSoAR7lUyQJPHJ1sqjoPgMT9pssgq5PdaLm5Zn5IUjD/qs13kTRU9Dd7PRJw6rNvqbsVHZIwK7JsWtKMfkuHwQAld1QmgUhBMCfDkiuNuHrazA9GuxJVURu+DewNk0GUMs=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CAAAAZ6mhd/5ldJa1dCRkBAQEBAQEBAQEBAQEHAQEBAQEBgWeBRVADbVYgBAsqCoQXg0cDinOCXJdrglIDVAkBAQEMAQEYCwoCAQGEPwIXgkcjOBMCAwgBAQQBAQECAQYEbYUuDIVKAQEBAwEBARAREQwBASwLAQsEAgEIEQQBAQECAiYCAgIlCxUICAEBBAENBQgagwGBagMODwECDKEXAoE4iGFzgTKCfAEBBYUQGIIWAwaBDCiLdxiBQD+BEUaCTD6CYQEBgTcsgwkyggQijyacZwkCgh+GcI4BmF+NcYdwkEkCBAIEBQIOAQEFgWchgVhwFTuCbIJCg3KFFIU/coEpjGYBgSIBAQ
X-IronPort-AV: E=Sophos;i="5.64,446,1559520000"; d="scan'208";a="321573956"
Received: from rcdn-core-2.cisco.com ([173.37.93.153]) by alln-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 30 Aug 2019 09:22:00 +0000
Received: from XCH-ALN-017.cisco.com (xch-aln-017.cisco.com [173.36.7.27]) by rcdn-core-2.cisco.com (8.15.2/8.15.2) with ESMTPS id x7U9Lxfd028881 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 30 Aug 2019 09:21:59 GMT
Received: from xhs-rcd-001.cisco.com (173.37.227.246) by XCH-ALN-017.cisco.com (173.36.7.27) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 30 Aug 2019 04:21:58 -0500
Received: from xhs-rtp-002.cisco.com (64.101.210.229) by xhs-rcd-001.cisco.com (173.37.227.246) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 30 Aug 2019 04:21:58 -0500
Received: from NAM05-DM3-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-002.cisco.com (64.101.210.229) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 30 Aug 2019 05:21:58 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EDvLUzQm7/ZJLWF5SHZ0/eLsHgUIEUws8sPMny+S8GpN6ycsKlyF64uNm/TuD796mTv3Q//3+woWZTMEJ/hzIZG0Hgd/w+OznMntUew5mHBOdEsHzMmNvRY+hcCmZHeepTbjfcBEVK7TcETE2LWw/ad8pJsi0y7ejj0N6gr5o2xfQfOacdLBe4aVZiakl5xpbhK8fBcRaB1YJ45MhX/GtY3K3+HU7zJsCPaAweLrMo5oi0bOzVNxc9h/ALaxRZoy6Yn97Gzum4Tm9bm6m9iVhiODEF6q+xZvH9k+yCjQ33id4/08I52sc3Nf5UpIKAAzyQROIEa13vP7PLjZEj0Akw==
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=atiOjlvnwgBvqgfh+bYXjrbOGw5oA9xXMoZ7rqRMgYg=; b=HzVwG5crhdlq+IfZGsrnHeoTFHMkF3MmFcObqzppnsWDDoQEDFN00ai4KRHjYssCL47OA98uZXZD0+A//WQ9p+U+7elmflXkLqjLcSkkeFOSMrjk9BbbvtmJOZnGpcVZoOx3FIjCe8XkH1EvjQWDRffh3jXYkqGDCTlDHo79GRtwFHOABC6VDxlQO8BCNLhfhhDsk3SBw9AygtF4YNqVDg0kle8Ms/qIgCv4Egz+hJYr8rb5aZ4FeUUgkOoV8Gj3c3GzhCEuFnCH+agF2V7EdoPuHnvPlqVjlUnyhvqhLRVnmGjhlRuSqJ9uaYyuMoyDq30aCfFmBah2/Gq7N7isUg==
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=atiOjlvnwgBvqgfh+bYXjrbOGw5oA9xXMoZ7rqRMgYg=; b=sS8GEZ9jzokrEOOtwfvHN83XXM03P7aTmVVtsvw3BbbL1gUuAi+a9oLny8ys4lKoFxL91unZ1NImRgyJa9SH0aG+yfUdhjGS2C1tyTYrcyouEGVzIKr8CUw+QK1H5VaIQYv9inI8cM3cqYBL3RwU+sNLjjVyyGsIO9d4/sCTF64=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (52.135.38.209) by MN2PR11MB4351.namprd11.prod.outlook.com (52.135.39.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.19; Fri, 30 Aug 2019 09:21:57 +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.2220.013; Fri, 30 Aug 2019 09:21:57 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: Ladislav Lhotka <lhotka@nic.cz>, Martin Bjorklund <mbj@tail-f.com>
CC: "yang-doctors@ietf.org" <yang-doctors@ietf.org>
Thread-Topic: [yang-doctors] Identities vs enums
Thread-Index: AdVeUoj6Gm62w2r9QP2N1RJZSFrmWQAB+7+AAAItTYAAALKEgAArhmjg
Date: Fri, 30 Aug 2019 09:21:57 +0000
Message-ID: <MN2PR11MB43661519C7905147413B9C9EB5BD0@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <MN2PR11MB4366B7D24FF907FE8E0802E9B5A20@MN2PR11MB4366.namprd11.prod.outlook.com> <c0c6bb8f1fe8ebe910c09ff764f43a2d84907d42.camel@nic.cz> <20190829.141333.409220577655745011.mbj@tail-f.com> <312cc059c38fe87727fda70f4f1c88ba0a165f23.camel@nic.cz>
In-Reply-To: <312cc059c38fe87727fda70f4f1c88ba0a165f23.camel@nic.cz>
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.45]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 217c1c8a-df55-4309-5c7b-08d72d2b8183
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:MN2PR11MB4351;
x-ms-traffictypediagnostic: MN2PR11MB4351:
x-ms-exchange-purlcount: 2
x-microsoft-antispam-prvs: <MN2PR11MB4351A2CB5EE51F1EBF336F7EB5BD0@MN2PR11MB4351.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0145758B1D
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(376002)(136003)(396003)(346002)(366004)(13464003)(199004)(189003)(316002)(14444005)(110136005)(256004)(6436002)(55016002)(229853002)(8936002)(8676002)(81166006)(81156014)(6246003)(3846002)(6116002)(9686003)(6306002)(25786009)(53936002)(33656002)(4326008)(305945005)(74316002)(7736002)(66066001)(476003)(53546011)(86362001)(446003)(486006)(11346002)(52536014)(966005)(2906002)(64756008)(478600001)(14454004)(76116006)(66946007)(102836004)(66556008)(66476007)(66446008)(26005)(76176011)(7696005)(99286004)(6506007)(186003)(71190400001)(71200400001)(5660300002); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB4351; H:MN2PR11MB4366.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: N7Vdy0IypRz8J8ezErY6/6vfiGtK8G+ZHBd4Oc1dPYvVifXusuqm4jht4nv+HIisGBp64AGO1MK6b/LLqTKZzi24AHIvaJSqLmYGItaiMzjxJ+l1hpQpItmgcmIR+Qs5Ok/SzssKC8fbaQJrmMpWp8Av3k6g00tp6IpHcEkoZ33k4rA51WeUbqHC/wYmYRCBz1ncKxNiVHiWUrZ9zj0K3rZMKULnNrKx/tPBuEOeOfrfqboieoREZfed+WHfaK6xbFofHt7JhAxhJeV93FOPA1uyHmiom3kcuBgfE+QrH9qKKyzXhUB/4GPzmLLPWWtlGENqaN8W8ercSihAvA02ucxYQYtoy8silAXf1ePufusaYqUOA48Yn5F57lctrAylS9FBQPUA5GME+kpA2FktukHggZhB5zKIz2lL3l6Vi3o=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 217c1c8a-df55-4309-5c7b-08d72d2b8183
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2019 09:21:57.4438 (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: ZMj4puWIlpdRkH62sKZHp9qmCwhh7PmFaVOmSXgiFETTeFLRV0aeQh9vsokORZCgBnBkOdbzDt/vkOhl/qIyVg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4351
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.27, xch-aln-017.cisco.com
X-Outbound-Node: rcdn-core-2.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/BLOOZCYpKu5m5EEBELw4pawYFD8>
Subject: Re: [yang-doctors] Identities vs enums
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 30 Aug 2019 09:22:05 -0000


> -----Original Message-----
> From: yang-doctors <yang-doctors-bounces@ietf.org> On Behalf Of Ladislav
> Lhotka
> Sent: 29 August 2019 13:34
> To: Martin Bjorklund <mbj@tail-f.com>
> Cc: yang-doctors@ietf.org
> Subject: Re: [yang-doctors] Identities vs enums
> 
> On Thu, 2019-08-29 at 14:13 +0200, Martin Bjorklund wrote:
> > Ladislav Lhotka <lhotka@nic.cz> wrote:
> > > On Thu, 2019-08-29 at 10:24 +0000, Rob Wilton (rwilton) wrote:
> >
> > +1  (provided you really need the flexibility!)
> >
> > > In fact, the namespace for identity names probably needn't be
> > > module-wide, I
> >
> > > think it would be perfectly fine to require unique names only for
> > > identities
> >
> > > derived from the same base.
> >
> >
> > Yes that would have worked as well.  But it would have a big impact on
> > implementations that use the fact that they are unique...
> 
> Yes, although I think the required changes shouldn't be too big. On the
> other
> hand, it would be backward compatible in terms of existing modules.
[RW] 
FWIW, I raised:

https://github.com/netmod-wg/yang-next/issues/91

Even if we decide to just close it, I thought that it might be worth a discussion.

Thanks,
Rob


> 
> Lada
> 
> >
> >
> > /martin
> >
> >
> >
> > >
> >
> > > Lada
> >
> > >
> >
> > > >
> >
> > > > Personally, I’m toying with changing to 4 or perhaps 2.  I’m not
> > > > keen on
> > 3.
> >
> > > >
> >
> > > > Any thoughts or opinions from the YANG doctors?
> >
> > > >
> >
> > > > Thanks,
> >
> > > > Rob
> >
> > > >
> >
> > > > _______________________________________________
> >
> > > > yang-doctors mailing list
> >
> > > > yang-doctors@ietf.org
> >
> > > > https://www.ietf.org/mailman/listinfo/yang-doctors
> >
> > > --
> >
> > > Ladislav Lhotka
> >
> > > Head, CZ.NIC Labs
> >
> > > PGP Key ID: 0xB8F92B08A9F76C67
> >
> > >
> >
> > > _______________________________________________
> >
> > > yang-doctors mailing list
> >
> > > yang-doctors@ietf.org
> >
> > > https://www.ietf.org/mailman/listinfo/yang-doctors
> >
> --
> Ladislav Lhotka
> Head, CZ.NIC Labs
> PGP Key ID: 0xB8F92B08A9F76C67
> 
> _______________________________________________
> yang-doctors mailing list
> yang-doctors@ietf.org
> https://www.ietf.org/mailman/listinfo/yang-doctors