Re: [mpls] MPLS label and LSE data models

Jeffrey Haas <jhaas@pfrc.org> Thu, 13 July 2017 16:42 UTC

Return-Path: <jhaas@slice.pfrc.org>
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 25D5512F3D6; Thu, 13 Jul 2017 09:42:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.903
X-Spam-Level:
X-Spam-Status: No, score=-1.903 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 Gti48smVZvCv; Thu, 13 Jul 2017 09:42:12 -0700 (PDT)
Received: from slice.pfrc.org (slice.pfrc.org [67.207.130.108]) by ietfa.amsl.com (Postfix) with ESMTP id 58A45126C3D; Thu, 13 Jul 2017 09:42:12 -0700 (PDT)
Received: by slice.pfrc.org (Postfix, from userid 1001) id 76AD41E37F; Thu, 13 Jul 2017 12:51:40 -0400 (EDT)
Date: Thu, 13 Jul 2017 12:51:40 -0400
From: Jeffrey Haas <jhaas@pfrc.org>
To: Xufeng Liu <Xufeng_Liu@jabil.com>
Cc: Greg Mirsky <gregimirsky@gmail.com>, "draft-ietf-mpls-static-yang@ietf.org" <draft-ietf-mpls-static-yang@ietf.org>, "mpls@ietf.org" <mpls@ietf.org>, "draft-ietf-rtgwg-routing-types@ietf.org" <draft-ietf-rtgwg-routing-types@ietf.org>, "rtgwg@ietf.org" <rtgwg@ietf.org>
Message-ID: <20170713165140.GI7180@pfrc.org>
References: <CA+RyBmVH=KCi3T8u2dB_WaKBOLheYwT4q0d+tpYdT-Z2iTZ+og@mail.gmail.com> <D55B6659.B21B8%acee@cisco.com> <CA+RyBmVyHKGhxitGgQ6RRMmHKwvs=b_GkKMq80rE=Ys8WetGaQ@mail.gmail.com> <BN3PR0201MB08676A90584EC7E8414244B3F1CB0@BN3PR0201MB0867.namprd02.prod.outlook.com> <CA+RyBmWHvfXt_Vdhc5w70ugQTSS5qffTWbQ+Lb9D_6PpfP10QQ@mail.gmail.com> <BN3PR0201MB0867AA3D4476A1DD25B3FC88F1CB0@BN3PR0201MB0867.namprd02.prod.outlook.com> <20170620205021.GG2289@pfrc.org> <BN3PR0201MB0867B31271FFD40ED11B2B6EF1DB0@BN3PR0201MB0867.namprd02.prod.outlook.com> <20170710202101.GC12373@pfrc.org> <BN3PR0201MB08670C450E7800A07F116716F1AC0@BN3PR0201MB0867.namprd02.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <BN3PR0201MB08670C450E7800A07F116716F1AC0@BN3PR0201MB0867.namprd02.prod.outlook.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: <https://mailarchive.ietf.org/arch/msg/mpls/MT9DCsfT_k7KFdJXeeEYrgG6UIY>
Subject: Re: [mpls] MPLS label and LSE data models
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: Thu, 13 Jul 2017 16:42:13 -0000

Xufeng,

On Thu, Jul 13, 2017 at 04:14:18PM +0000, Xufeng Liu wrote:
> Thanks for looking at this. You are right, but we are still discussing various approaches for the static MPLS and the conclusion has not been reached yet. 
> We'd like to hear what you think and appreciate your comments.

To offer a suggestion, order the stack from bottom (lowest number) to top
(highest).  Require that bottom of stack be element index zero.

My yang constraints are a bit weak but I believe you can construct an XPath
that requires that a node of index 0 must be present.

The above two suggestions don't help with the issues of needing to sort the
list by index in order to generate the stack, but it does at least remove
any possible ambiguity about the critical bottom of stack semantic.

-- Jeff