Re: [mpls] Use of leaf-lists in draft-ietf-mpls-static-yang
"Tarek Saad (tsaad)" <tsaad@cisco.com> Fri, 31 March 2017 13:53 UTC
Return-Path: <tsaad@cisco.com>
X-Original-To: mpls@ietfa.amsl.com
Delivered-To: mpls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0CF66120326; Fri, 31 Mar 2017 06:53:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.521
X-Spam-Level:
X-Spam-Status: No, score=-14.521 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-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
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 ue0MqryQ3Xnf; Fri, 31 Mar 2017 06:53:53 -0700 (PDT)
Received: from rcdn-iport-6.cisco.com (rcdn-iport-6.cisco.com [173.37.86.77]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D1F4C1296B3; Fri, 31 Mar 2017 06:53:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=7976; q=dns/txt; s=iport; t=1490968432; x=1492178032; h=from:to:subject:date:message-id:references:in-reply-to: mime-version; bh=LpAB46OBpVXkabxc+H6WTFnG0d+PQ2KNxjuC4WBmNuU=; b=TYvavURAVoL0clSqofYpODmW7zlMkwKwGFuu+HHLv0+sXBbZz1tr1w5O vg64h6HYiPcS9tY8hCeA4QThleH2/ZHvqxn4v9lIw5KyAKXn+jgrKjRI9 FoRv7nczgpTnsK+kZxq9QfnbEcnVk6ogEXaAnTCjbDFv2s769uKeIb3ue 0=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0DKAgA0Xt5Y/4sNJK1dGwEBAQMBAQEJAQEBgm5mYYELB4NbihKhdIUxgg6GIgIagyw/GAECAQEBAQEBAWsohRYGI2YCAQg/AwICAjAUEQEBBAESG4lyrgaCJiuKMAEBAQEBAQEBAQEBAQEBAQEBAQEBAR2GToIFgWGBCYRrgm8ugjEFlhiGUgGST4F9jz2IXIsUAR84gQVbFUERAYZHdYhOgQ0BAQE
X-IronPort-AV: E=Sophos;i="5.36,252,1486425600"; d="scan'208,217";a="227162176"
Received: from alln-core-6.cisco.com ([173.36.13.139]) by rcdn-iport-6.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 31 Mar 2017 13:53:52 +0000
Received: from XCH-RTP-003.cisco.com (xch-rtp-003.cisco.com [64.101.220.143]) by alln-core-6.cisco.com (8.14.5/8.14.5) with ESMTP id v2VDrp6t022684 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 31 Mar 2017 13:53:51 GMT
Received: from xch-rtp-001.cisco.com (64.101.220.141) by XCH-RTP-003.cisco.com (64.101.220.143) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 31 Mar 2017 09:53:50 -0400
Received: from xch-rtp-001.cisco.com ([64.101.220.141]) by XCH-RTP-001.cisco.com ([64.101.220.141]) with mapi id 15.00.1210.000; Fri, 31 Mar 2017 09:53:50 -0400
From: "Tarek Saad (tsaad)" <tsaad@cisco.com>
To: Aidan Copeland <aidan.copeland@metaswitch.com>, "draft-ietf-mpls-static-yang@ietf.org" <draft-ietf-mpls-static-yang@ietf.org>, "mpls@ietf.org" <mpls@ietf.org>
Thread-Topic: Use of leaf-lists in draft-ietf-mpls-static-yang
Thread-Index: AdKol+KJ/4b/UbzHSOirBqv9oxg+hgBhe9kA
Date: Fri, 31 Mar 2017 13:53:50 +0000
Message-ID: <6B5BFBDF-39BE-4EEA-AE11-4FB035907920@cisco.com>
References: <BL2PR02MB20660E93F80140BFF1FDA2E0E9350@BL2PR02MB2066.namprd02.prod.outlook.com>
In-Reply-To: <BL2PR02MB20660E93F80140BFF1FDA2E0E9350@BL2PR02MB2066.namprd02.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.20.0.170309
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.82.240.109]
Content-Type: multipart/alternative; boundary="_000_6B5BFBDF39BE4EEAAE114FB035907920ciscocom_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/mpls/5qLSYS6yMZhbYoMygonGeLWwqXg>
Subject: Re: [mpls] Use of leaf-lists in draft-ietf-mpls-static-yang
X-BeenThere: mpls@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Multi-Protocol Label Switching WG <mpls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mpls>, <mailto:mpls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mpls/>
List-Post: <mailto:mpls@ietf.org>
List-Help: <mailto:mpls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mpls>, <mailto:mpls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 31 Mar 2017 13:53:55 -0000
Hi Aidan, You are right. Indeed, it is permissible the same labels values can repeat in the label stack and thus the leaf-list is not suitable. I’ll look into this and we’ll update it the model. Thanks for reporting it. Regards, Tarek On 2017-03-29, 10:30 AM, "Aidan Copeland" <aidan.copeland@metaswitch.com<mailto:aidan.copeland@metaswitch.com>> wrote: Hi Tarek, all, I think that there is an error in the use of a leaf-list to represent the set of outgoing MPLS labels to impose for an outgoing path. RFC7950, section 7.7, states In configuration data, the values in a leaf-list MUST be unique. This means that a leaf-list is not suitable to represent a label stack, where the same label value may be used more than once. I think the best solution is instead to specify the set of outgoing labels as a list of outgoing label containers, keyed by label index and containing the outgoing label value. Do you agree with this, or do you think a different mechanism would be better? Regards Aidan
- [mpls] Use of leaf-lists in draft-ietf-mpls-stati… Aidan Copeland
- Re: [mpls] Use of leaf-lists in draft-ietf-mpls-s… Tarek Saad (tsaad)
- Re: [mpls] Use of leaf-lists in draft-ietf-mpls-s… t.petch