Re: [yang-doctors] IANA full-registry definition

"Acee Lindem (acee)" <acee@cisco.com> Mon, 01 April 2019 11:15 UTC

Return-Path: <acee@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 575721200FA for <yang-doctors@ietfa.amsl.com>; Mon, 1 Apr 2019 04:15:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.502
X-Spam-Level:
X-Spam-Status: No, score=-14.502 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIMWL_WL_MED=-0.001, 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=hpni5j8O; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=ANdhiH+y
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 1Q09SLrXNn-U for <yang-doctors@ietfa.amsl.com>; Mon, 1 Apr 2019 04:15:44 -0700 (PDT)
Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 93C2F1200F9 for <yang-doctors@ietf.org>; Mon, 1 Apr 2019 04:15:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5768; q=dns/txt; s=iport; t=1554117344; x=1555326944; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=6tvTdmJd6nr62SJWUaVtVrmWy5gYRNP1LPBvrovX+dA=; b=hpni5j8OmXhUoFuZYW2ppTLuKwoRkljZQMIHdluRjDiH2hHtZODYLknL uSeup++x9UT4h+/mZfIF1Oep0a+5WCD6Wve0SGdw3P9pwn5858b6hcaCI CukQVPjuPyz6HbLbmgA2Wz+S+EckJQUbh+EIhg/XWYoYZvMl6weKsAaoQ w=;
IronPort-PHdr: 9a23:BwEhthJy8qNv0pWD5dmcpTVXNCE6p7X5OBIU4ZM7irVIN76u5InmIFeCuKd2lFGcW4Ld5roEkOfQv636EU04qZea+DFKa5lQT1kAgMQSkRYnBZuMAkD2BPXrdCc9Ws9FUQwt8g==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AHAAB98aFc/4wNJK1aBgMZAQEBAQEBAQEBAQEBBwEBAQEBAYFTAgEBAQEBCwGBPVADaHQECyeEDoNHA48ygleXD4EugSQDVA4BARgLCYRAAheFLCI2Bw0BAQMBAQkBAwJtHAyFSgEBAQECAQEBIREMAQEsCwENAgIBCBAIAgImAgICGQwLFRACBAENBQmDGQGBXQMNCAEOnj8CihRxgS+CeQEBBYR5GIIMCAWBBiQBizIXgX+BEScfgkw+gmEBAYE3KhcKJoJDMYIEIo0Dl2pgCQKTXhqULIs/k04CBAIEBQIOAQEFgVQDLoFWcBU7KgGCQQmCAYNuM4RhhT9ygSiPMwEB
X-IronPort-AV: E=Sophos;i="5.60,296,1549929600"; d="scan'208";a="541985469"
Received: from alln-core-7.cisco.com ([173.36.13.140]) by rcdn-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 01 Apr 2019 11:15:43 +0000
Received: from XCH-ALN-003.cisco.com (xch-aln-003.cisco.com [173.36.7.13]) by alln-core-7.cisco.com (8.15.2/8.15.2) with ESMTPS id x31BFhTq032019 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 1 Apr 2019 11:15:43 GMT
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by XCH-ALN-003.cisco.com (173.36.7.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 1 Apr 2019 06:15:42 -0500
Received: from xhs-aln-002.cisco.com (173.37.135.119) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 1 Apr 2019 07:15:41 -0400
Received: from NAM02-SN1-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-002.cisco.com (173.37.135.119) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 1 Apr 2019 06:15:41 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector1-cisco-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6tvTdmJd6nr62SJWUaVtVrmWy5gYRNP1LPBvrovX+dA=; b=ANdhiH+y7AR/FeVdE30tlucrUtSf7PTVXiP5D4IYyE14R+Vi6qIejZAIaG5E2tWdMZl8Uz7tek0JvTgaqIaTxkiix6EarJZk7Ganaqtu8imuokIIczhJAfIcjmJ8D6U87YtyW9PHnR8j4ejM/f6iNPK9fK4f63FRpD54ZjhUtnM=
Received: from BN6PR1101MB2226.namprd11.prod.outlook.com (10.174.112.11) by BN6PR1101MB2257.namprd11.prod.outlook.com (10.174.117.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.15; Mon, 1 Apr 2019 11:15:39 +0000
Received: from BN6PR1101MB2226.namprd11.prod.outlook.com ([fe80::9c05:e282:840b:51a1]) by BN6PR1101MB2226.namprd11.prod.outlook.com ([fe80::9c05:e282:840b:51a1%8]) with mapi id 15.20.1750.017; Mon, 1 Apr 2019 11:15:39 +0000
From: "Acee Lindem (acee)" <acee@cisco.com>
To: Ladislav Lhotka <lhotka@nic.cz>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, "Benoit Claise (bclaise)" <bclaise@cisco.com>
CC: YANG Doctors <yang-doctors@ietf.org>, "Ruediger Volk, Deutsche Telekom Technik - FMED-41.." <rv@NIC.DTAG.DE>
Thread-Topic: [yang-doctors] IANA full-registry definition
Thread-Index: AQHU5v6uzQ2cXJYSckK8g656I7DOlKYkPAiAgAK56oD///F5gA==
Date: Mon, 01 Apr 2019 11:15:38 +0000
Message-ID: <5B876091-2B4A-45D9-91D9-D46716FECB87@cisco.com>
References: <b7a2f097-649b-ffca-6e80-921754fd85eb@cisco.com> <20190330142941.mx55xkis6g3do3cj@anna.jacobs.jacobs-university.de> <87lg0uywqe.fsf@nic.cz>
In-Reply-To: <87lg0uywqe.fsf@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=acee@cisco.com;
x-originating-ip: [2606:a000:111b:8070:f9e7:fc27:8c02:90db]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 3e1f9203-2bfd-498f-d638-08d6b6935f2d
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:BN6PR1101MB2257;
x-ms-traffictypediagnostic: BN6PR1101MB2257:
x-ms-exchange-purlcount: 3
x-ld-processed: 5ae1af62-9505-4097-a69a-c1553ef7840e,ExtAddr
x-microsoft-antispam-prvs: <BN6PR1101MB2257F4654D990E5CED085E31C2550@BN6PR1101MB2257.namprd11.prod.outlook.com>
x-forefront-prvs: 0994F5E0C5
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(346002)(39860400002)(136003)(376002)(396003)(199004)(189003)(33656002)(6486002)(54906003)(110136005)(6306002)(316002)(229853002)(105586002)(76176011)(97736004)(11346002)(7736002)(6512007)(6116002)(4326008)(6246003)(305945005)(8936002)(71190400001)(68736007)(82746002)(256004)(86362001)(6436002)(53936002)(486006)(966005)(102836004)(8676002)(6506007)(478600001)(71200400001)(99286004)(81166006)(114624004)(83716004)(2906002)(186003)(25786009)(81156014)(14454004)(106356001)(2616005)(46003)(446003)(6636002)(476003)(36756003)(5660300002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1101MB2257; H:BN6PR1101MB2226.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: 3yjQw9o92aXprabb6O4lgC+NyY4ntEpL819jYNinSNFnW/JEcMtbruOexdfTdihVNHVbu8HMXwfU3PNLl5j6oZoPfyvL0D4H7NYjxYgRB26YyBRKm4KIuckT0P3XXKfbEHZG48G986rd/1hJUZrHYQOIej1m7/ml6w2Tk844uhCfd+8MvpXVQxkiiZ/mAMQb85j61ykibfdjoXq3JgBbmP/VNwY/PV4cLrIOkBePuyC2SZaQ5mcmrnnNOOPklmtf69zkoIqLSjNY2liuQFxJM9xxxSzZYYprnqLC17RHTRWcGSdKRcfgE/A2z7js9JlbJBu4U2nqrBjXWbciVIjLLhoBj2WLXkcAXXqmWujZD6DchxNXg9rkAdpqC2m2q3NMAd4lPiA9FmvbC5O2vio0RPUJA9au++77o75c5fiGdLA=
Content-Type: text/plain; charset="utf-8"
Content-ID: <AA8CC71103B1A4448F81BDE6B1E7FB11@namprd11.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 3e1f9203-2bfd-498f-d638-08d6b6935f2d
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Apr 2019 11:15:39.0299 (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-Transport-CrossTenantHeadersStamped: BN6PR1101MB2257
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.13, xch-aln-003.cisco.com
X-Outbound-Node: alln-core-7.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/t-Q7siMe6XoB0jadYyaEnZZmSfU>
Subject: Re: [yang-doctors] IANA full-registry definition
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: Mon, 01 Apr 2019 11:15:47 -0000

We want back and forth with identities vs enums for iana-routing-types. We ended up with enums. 

http://www.netconfcentral.org/modules/iana-routing-types 

Correct me if I'm wrong - an enum cannot be augmented but adding a new value in a subsequent version is backward compatible. If the latter is not true, we should relax this in YANG-NEXT. 

Thanks,
Acee

On 4/1/19, 4:08 AM, "yang-doctors on behalf of Ladislav Lhotka" <yang-doctors-bounces@ietf.org on behalf of lhotka@nic.cz> wrote:

    Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> writes:
    
    > Benoit,
    >
    > I think Ruediger's problem is a BGP module where they modeled BGP
    > capabilities as identities and they wanted to report the negotiated
    > capabilities as config false data. This is problematic since not all
    > capability numbers have an identity defined and the set of known
    > identities may differ from implementation to implementation.  It would
    > be much easier and more robust to simply report the capability
    > numbers. Yes, this is less readable for a human, but much more robust
    > for automation since clients know they always get a number.
    >
    > An alternative would be to create a union of an identity and a uint8
    > but this does not address the problem that the set of identities known
    > by different implementations can differ. One could fix this problem by
    > moving from identities to enums since an enum fixes the set of known
    > enums. Whether it is worth to have a union of enums and numbers needs
    
    FWIW, in draft-lhotka-dnsop-iana-class-type-yang-01 we used a union of
    enum and uint16 for IANA registries "DNS CLASSes" and "Resource Record
    (RR) TYPEs".
    
    I would say that this approach may be preferable for centrally
    controlled resources such as IANA registries. Identities are better
    suited for distributed extensibility where different parties add entries
    on their own.
    
    Lada
    
    
    > to be decided by BGP people. I would suggest to simply define (in
    > ietf-bgp-types) a
    >
    > typedef capability {
    >   type uint8;
    >   description
    >     "BGP capability as maintained by IANA in the BGP capability
    >      code registry";
    >   reference
    >     "RFC 5492: Capabilities Advertisement with BGP-4";
    > }
    >
    > and then use bt:capability that instead of the much more complicated
    > identityref { base bt:BGP_CAPABILITY; } to report the BGP capabilities.
    >
    > /js
    >
    > On Sat, Mar 30, 2019 at 02:44:06PM +0100, Benoit Claise wrote:
    >> Hi Doctors,
    >> 
    >> I was approached by Ruediger with this problem statement. I'll let Ruediger
    >> extend the problem description if necessary.
    >> 
    >> When we model an IANA registry with YANG, we model the entries one by one as
    >> new values are assigned by IANA.
    >> There are some IANA registries with clear ranges. For example, fields with a
    >> couple of bits.
    >> Would it be possible to have a generic way (YANG
    >> typedef/identities:whatever) that would report all entries, even the ones
    >> not yet assigned. The latter would report the observed values.
    >> 
    >> Regards, Benoit
    >> 
    >> 
    >> 
    >> _______________________________________________
    >> yang-doctors mailing list
    >> yang-doctors@ietf.org
    >> https://www.ietf.org/mailman/listinfo/yang-doctors
    >
    > -- 
    > 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/>
    >
    > _______________________________________________
    > 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