Re: [yang-doctors] Changing entries in IANA registries that modify enumerations (rfc5575bis)

"Rob Wilton (rwilton)" <rwilton@cisco.com> Tue, 19 May 2020 15:51 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 933FF3A09A8 for <yang-doctors@ietfa.amsl.com>; Tue, 19 May 2020 08:51:54 -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=kMnIEeGu; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=D1nOldyX
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 waQX_lS2tnX1 for <yang-doctors@ietfa.amsl.com>; Tue, 19 May 2020 08:51:52 -0700 (PDT)
Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 838E83A09E4 for <yang-doctors@ietf.org>; Tue, 19 May 2020 08:51:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4258; q=dns/txt; s=iport; t=1589903512; x=1591113112; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=i9uo20x3lNJViy4nnIW2Qkq2FOzQZVJFOJj3sMusP28=; b=kMnIEeGuBPMNIEeH3dy/RUcCLLWboqGUHAE3exSACB7NYjy+u+Jmi8H4 HjuhpEsd0kq/kgl2lL4iXmCXgcYBU8VMzzLmJ6CIkIK4eNsxahpiS2SI3 NYHSvLwCZY/6wQdCwL8q6WdJf+Bgh2iW2yGSNIxccG3PM0bkagM287/tB 4=;
IronPort-PHdr: 9a23:6T3PzxeM1PAIvueEptYEfH5JlGMj4e+mNxMJ6pchl7NFe7ii+JKnJkHE+PFxlwaRDdfd6vkCgPiF+6zjWGlV55GHvThCdZFXTBYKhI0QmBBoG8+KD0D3bZuIJyw3FchPThlpqne8N0UGHsf1IVbA8TW+6DcIEUD5Mgx4bu3+Bo/ViZGx0Oa/s53eaglFnnyze7R3eR63tg7W8MIRhNhv
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0BwAAD//8Ne/5tdJa1mGwEBAQEBAQEBBQEBARIBAQEDAwEBAUCBNgMBAQELAYFTUQdvWC8sCodgA41EiXuOQIJSA1QLAQEBDAEBGA0IAgQBAYREAoINJDcGDgIDAQELAQEFAQEBAgEFBG2FVgyFcQEBAQECAQEBEBUTBgEBLAsBBAcEAgEIEQQBAR8QIQYLHQgBAQQBDQUIGoMFgksDDiABAwunZgKBOYhhdIEBM4MBAQEFhRUNC4IOAwaBOAGCYolfGoFBP4ERQ4IfLj6CHkkBAQKBZYNFggsikSKHBJokSgqCUJNxhHOCXZp5kEOBXIpZjQiEFgIEAgQFAg4BAQWBaCOBVnAVO4JpUBgNkEAREhWDOoUUhUJ0AjUCBggBAQMJfI0LAYEPAQE
X-IronPort-AV: E=Sophos;i="5.73,410,1583193600"; d="scan'208";a="481472465"
Received: from rcdn-core-4.cisco.com ([173.37.93.155]) by alln-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 19 May 2020 15:51:51 +0000
Received: from XCH-ALN-005.cisco.com (xch-aln-005.cisco.com [173.36.7.15]) by rcdn-core-4.cisco.com (8.15.2/8.15.2) with ESMTPS id 04JFppfw020942 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 19 May 2020 15:51:51 GMT
Received: from xhs-aln-002.cisco.com (173.37.135.119) by XCH-ALN-005.cisco.com (173.36.7.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 19 May 2020 10:51:51 -0500
Received: from xhs-rcd-002.cisco.com (173.37.227.247) by xhs-aln-002.cisco.com (173.37.135.119) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 19 May 2020 10:51:50 -0500
Received: from NAM10-DM6-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; Tue, 19 May 2020 10:51:50 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JL8Xeqo7l52S9yufxBWxbyczpGYMmS5Hvmvu9FNjXc81YfjviI58T+MTyaQpYRD8wGyZI+e8oUuPGiL/FiNWX5LUSQImiDA/9Q7t3afjJMtVRTX96cg2VQI8onIAfbAJ644QPcHapTHngygYjAnK60LvlA8W6WH/gGiqVCz6HkM7IiB52pkDy2Z/zN6NUbCH3ezffY5atWuByeyxuw3+TcHTsDJR9E3fhgpSPie4c0PnWeruMKaPRHkBR9FEcdHW8Cdu5BP/M62NaDIRryOMbMYepr/c7ZQCZO5DKpiKjhcCgYXBB2Di6q8qaAJbycTvko6oIVzlef5Aw+Evj1GStg==
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=SC5N5BrZgrJrS3QN/y8mpk/OuPwSNJ95zLWmAXz7REE=; b=UW7APWsFDo2oklk1UGUxrYO3P4HCSIhlCSPzd4cJmNgQ5+pCRve7OhAZDHDl1IrmwviF8pgpb8HrvPhAO46Es5uMxMHZlYlARGFTyjFSUHz2pdjHDy3x+CnYlbcTJB8ZqCx98lVrurxM/M9t5gGp2R+ToXFL9ofV8KjBP2w+W6z0pbbYFbadAzOquSJiUzFl/q1OfEFojt6YRnltJFHd1tZQsSmqxqdV9KgXIuzCDFBcSQUh3imqR4qTpB2yiu2RC6bk5/QDsPlmWa7cMsY3WxkxIQdYDu9tQVE0D26Z7WKvyRf0YP5vyEl4tCkG68kV8w80c+Oy/WEuk26wGNoyGQ==
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=SC5N5BrZgrJrS3QN/y8mpk/OuPwSNJ95zLWmAXz7REE=; b=D1nOldyX9YbP7DHDiiflLuufKZwIWEF1jKleMreTMtHCV9KLOdUktIE5E8lLiQvULQ0vmCGJaVY7wbX+43MMjxaNKC815OfeD72eRDlf/JToyXyd+AkF+lTQGM4b77rNFJR0mO0c7rrm7mEGhtycmpM1hWI+UYCpsmpkmQgDyO8=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (2603:10b6:208:190::17) by MN2PR11MB4221.namprd11.prod.outlook.com (2603:10b6:208:18d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Tue, 19 May 2020 15:51:50 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::e9d4:79b5:aef1:be18]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::e9d4:79b5:aef1:be18%5]) with mapi id 15.20.3000.034; Tue, 19 May 2020 15:51:49 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: Ladislav Lhotka <ladislav.lhotka@nic.cz>, YANG Doctors <yang-doctors@ietf.org>
CC: Alvaro Retana <aretana.ietf@gmail.com>
Thread-Topic: [yang-doctors] Changing entries in IANA registries that modify enumerations (rfc5575bis)
Thread-Index: AdYqpZrpTILcGQ1rTVmgfiOgjbxoEwAGdPgAAM1vHOA=
Date: Tue, 19 May 2020 15:51:49 +0000
Message-ID: <MN2PR11MB4366C4E3F6B53AFF8FD7C854B5B90@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <MN2PR11MB43667D407C3F4020D4FAAB77B5BD0@MN2PR11MB4366.namprd11.prod.outlook.com> <87ftc1s41h.fsf@nic.cz>
In-Reply-To: <87ftc1s41h.fsf@nic.cz>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: nic.cz; dkim=none (message not signed) header.d=none;nic.cz; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [82.15.79.32]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 6763facf-a8ae-46ca-92ca-08d7fc0c8b1a
x-ms-traffictypediagnostic: MN2PR11MB4221:
x-microsoft-antispam-prvs: <MN2PR11MB42216C0AC1739CBCE19922EEB5B90@MN2PR11MB4221.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 040866B734
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: h7KdHAt/0r6svvppxnNYu1/Bd/cltO9FE0T6JRYjc2OWV1N46ZTYFEzJTANxlgdPKFqShxCadacPG/39dPIMMVO++8rkzMwEVJ/UxmIHJJmKN2SLev6FnF7PsGlDSY/BUVdEGTv5CWMYwWFopSsjzjveWNHAW/9ofaWr1oemMA0+5sde+pO3UUN008Cr8ZXX5O8Oyw3sKyaw9ociZwhYZWZ4EDA/sPlmaByX0qPRyRH598IVL889/PNEDG9pwi47hclilHnDbal2VI8KoHnW3jBoQTMvZ/ctVOKkJvIz+3FfSGNvDaOAAgZdpEwPvgHJsrsFHOtTnJpYfLI4BQRfSiD/PiPYM7y9nINIICeE2+B7iVU/GO2MUTInyg95vWWsyzI48LdNm4IlHdTYMwCCUA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4366.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(366004)(136003)(396003)(376002)(39860400002)(4326008)(52536014)(76116006)(66476007)(66556008)(64756008)(66446008)(66946007)(110136005)(5660300002)(316002)(6506007)(53546011)(186003)(86362001)(7696005)(26005)(2906002)(71200400001)(8676002)(55016002)(8936002)(9686003)(478600001)(966005)(33656002); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: wYiFjZ8gw7NjyJMG25BGpmlfofKGkDhb90SUaV3RTDyYjq6SA/nHeYKJ8R4bN+eX05HKsr3saQKn5kTbgSOnE0SD5FWpmgxLqjydw4v+J66NdHTJ9C6SFAvxztuLDZcpXrxtuPCuNNg82hVUy2cRoi00nSNO83z9nPbGd9eSgl8ccu87ua0fLV8UnuWmu5q5OR4OT3H4RtdobKZzbsDmxC0ggWc3JU7J6Q8Q1Hq2s6ukhiWJIBxG6mmlBNSIRrAp1on3HNFKV8wJuyz4+RMhck2S9OIjsNC/IgB30op3sQNgy/33D+cJ6lK4t2kc7dpX56C2URTKHQpZP2a82LPhWOW7LV658clMdwC1tv/8myPOiPDtDO7ewURBexZEAo90kzGB9YFBPEaqojTQK60WWk3m4Dnq8QPsYsReknXPQPFBGzRiOW4zkSh1Y9CVBpzkLz9YmqRQW9N+uzNFKo1YzTdHwgj3RqybT8q/wWCtUaE=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 6763facf-a8ae-46ca-92ca-08d7fc0c8b1a
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 May 2020 15:51:49.8137 (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: L/nmv6lN9zZjSEIvZN/+QQGun1Jg1keG9tCcszvoKPM+8DVuXP2mpeRrOWFogpjiBIkwK1p46MQj+I5wnrb9Mw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4221
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.15, xch-aln-005.cisco.com
X-Outbound-Node: rcdn-core-4.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/VAAkjDpUFgQeQTAPYtVLLkgsNso>
Subject: Re: [yang-doctors] Changing entries in IANA registries that modify enumerations (rfc5575bis)
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: Tue, 19 May 2020 15:51:55 -0000

Lada, Benoit,

Thank you for your comments.  I've not seen any objections to the suggested approach of fixing the IANA module so we will move forward with that approach.

Regards,
Rob


-----Original Message-----
From: Ladislav Lhotka <ladislav.lhotka@nic.cz> 
Sent: 15 May 2020 14:48
To: Rob Wilton (rwilton) <rwilton@cisco.com>; YANG Doctors <yang-doctors@ietf.org>
Cc: Alvaro Retana <aretana.ietf@gmail.com>
Subject: Re: [yang-doctors] Changing entries in IANA registries that modify enumerations (rfc5575bis)

Hi Rob,

RFC 8294 also states this in the IANA Considerations section:

   The name of the "enum" is the same as the corresponding Address
   Family or SAFI, except that it will be a valid YANG identifier in
   all lowercase and with hyphens separating individual words in
   compound identifiers.

It seems that this naming rule is not followed already in iana-routing-types@2020-05-12. I think it is better if the registry->YANG mapping is strict and unambiguous, because otherwise it may be difficult for IANA to maintain the module on their own.  

Regarding module update rules, I have been arguing for ages that these rules should not be part of the YANG language spec, and also that they should be applied only as recommendations.

Lada 

"Rob Wilton \(rwilton\)" <rwilton=40cisco.com@dmarc.ietf.org> writes:

> Hi,
>
> draft-ietf-idr-rfc5575bis.txt is changing the IANA definitions of two SAFIs:
>
>> rfc5575bis is only generalizing the description of the SAFIs:
>> 
>> OLD>
>> 133   IPv4 dissemination of flow specification rules
>> 134 	VPNv4 dissemination of flow specification rules
>> 
>> NEW>
>> 133   Dissemination of Flow Specification rules
>> 134   L3VPN Dissemination of Flow Specification rules
>
> I.e. they were originally defined as being IPv4 specific but are been generalized to cover IPv6 as well (which I understand is how they are already used/deployed).
>
>
> However, there is also an IANA YANG model defined using these entries (https://www.iana.org/assignments/iana-routing-types/iana-routing-types.xhtml), from RFC 8924.
>
> Currently in iana-routing-types@2020-05-12.yang, they are defined as:
>
>       enum ipv4-flow-spec-safi {
>         value 133;
>         description
>           "IPv4 Flow Specification SAFI.";
>       }
>
>       enum vpnv4-flow-spec-safi {
>         value 134;
>         description
>           "IPv4 VPN Flow Specification SAFI.";
>       }
>
>
> The proposal was to update these descriptions (which seems to do no harm):
>
>>       enum ipv4-flow-spec-safi {
>>              value 133;
>>              description
>>                "Dissemination of Flow Specification rules SAFI.";
>>            }
>>       enum vpnv4-flow-spec-safi {
>>              value 134;
>>              description
>>                "L3VPN Dissemination of Flow Specification rules SAFI";
>>            }
>
>
> But that leaves the enumerations with dubious names, and ideally the names would be fixed as well, e.g. to something like:
>
>>       enum ip-flow-spec-safi {
>>              value 133;
>>              description
>>                "Dissemination of Flow Specification rules SAFI.";
>>            }
>>       enum vpn-flow-spec-safi {
>>              value 134;
>>              description
>>                "L3VPN Dissemination of Flow Specification rules SAFI";
>>            }
>
> Clearly this is a violation of the RFC 7950 YANG update rules.
>
> The "deprecate the old and add a new entry" approach doesn't seem to work (given that the enum value is bound to the IANA SAFI defined value).
>
> However, it still feels to me that the right thing here is to allow the non-backwards-compatible change to fix the enumeration names (with an appropriate warning in the revision history).
>
> I would appreciate hearing the input/views of the YANG doctors on this.
>
> Regards,
> 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