Re: [Rtg-yang-coord] issue :R03: assignment of interfaces to routing instances
Ladislav Lhotka <lhotka@nic.cz> Sat, 14 February 2015 11:49 UTC
Return-Path: <lhotka@nic.cz>
X-Original-To: rtg-yang-coord@ietfa.amsl.com
Delivered-To: rtg-yang-coord@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id E97D71A1BE7;
Sat, 14 Feb 2015 03:49:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5
tests=[BAYES_00=-1.9] autolearn=ham
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 Hi6HcTv2iQuC; Sat, 14 Feb 2015 03:49:13 -0800 (PST)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143])
by ietfa.amsl.com (Postfix) with ESMTP id CD4351A1BE0;
Sat, 14 Feb 2015 03:49:12 -0800 (PST)
Received: from localhost (unknown [172.29.2.202])
by trail.lhotka.name (Postfix) with ESMTPSA id 8EA901CC0475;
Sat, 14 Feb 2015 12:49:12 +0100 (CET)
From: Ladislav Lhotka <lhotka@nic.cz>
To: "Acee Lindem \(acee\)" <acee@cisco.com>,
"Acee Lindem \(acee\)" <acee@cisco.com>,
Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>,
Xufeng Liu <xufeng.liu@ericsson.com>
In-Reply-To: <D103A6D1.E624%acee@cisco.com>
References: <AAB1CC9C17CBA440BDFA169056B93B9EB10521@eusaamb107.ericsson.se>
<35023717-7EE8-4F45-B2F4-B24E0F86FA5A@nic.cz>
<20150113212732.GD1545@elstar.local>
<23976026-499F-4C9C-844A-DB53BE244992@nic.cz>
<AAB1CC9C17CBA440BDFA169056B93B9EB1128D@eusaamb107.ericsson.se>
<20150114155450.GA3625@elstar.local>
<AAB1CC9C17CBA440BDFA169056B93B9EB1139B@eusaamb107.ericsson.se>
<CABCOCHSiWG=x0vTYKKxqhMqd69yK+Nuo0k_Y_=Y_KHkQBDi3FA@mail.gmail.com>
<D0DBD855.889EB%jeff.tantsura@ericsson.com>
<AAB1CC9C17CBA440BDFA169056B93B9EB11472@eusaamb107.ericsson.se>
<20150114174655.GA3932@elstar.local> <D1029726.E4B5%acee@cisco.com>
<m2k2zm9kg9.fsf@birdie.labs.nic.cz> <D103A0D5.E60D%acee@cisco.com>
<D103A6D1.E624%acee@cisco.com>
User-Agent: Notmuch/0.19 (http://notmuchmail.org) Emacs/24.4.51.2
(x86_64-apple-darwin14.0.0)
Date: Sat, 14 Feb 2015 12:49:11 +0100
Message-ID: <m23868n26g.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtg-yang-coord/rsuQ5E9PWFX5MVh2-mS1X2TEhto>
Cc: "rtg-yang-coord@ietf.org" <rtg-yang-coord@ietf.org>,
Andy Bierman <andy@yumaworks.com>, Jeff Tantsura <jeff.tantsura@ericsson.com>,
Routing WG <rtgwg@ietf.org>
Subject: Re: [Rtg-yang-coord] issue :R03: assignment of interfaces to
routing instances
X-BeenThere: rtg-yang-coord@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "\"List to discuss coordination between the Routing related YANG
models\"" <rtg-yang-coord.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtg-yang-coord>,
<mailto:rtg-yang-coord-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtg-yang-coord/>
List-Post: <mailto:rtg-yang-coord@ietf.org>
List-Help: <mailto:rtg-yang-coord-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtg-yang-coord>,
<mailto:rtg-yang-coord-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 14 Feb 2015 11:49:17 -0000
"Acee Lindem (acee)" <acee@cisco.com> writes: > Independent of the hierarchy, I think an interface should be associated > with one and only routing-instance. I know of no implementation that We've been there, too. In revision -02, we had this definition ("router" later became "routing-instance"): list router { key "name"; unique "interfaces/interface/name"; ... } The role of the "unique" statement was to restrict the assignment of interfaces exactly as you write. But then we had a discussion in the NETMOD mailing list about whether such a unique statement is legal or not: http://www.ietf.org/mail-archive/web/netmod/current/msg06386.html While I still think there is nothing wrong with that unique statement, it was eventually removed for the "ietf-routing" module. > allows this (including the use case of separate instances for IPv4 and > IPv6). This is not necessarily true. In my data model for the BIRD routing daemon (https://gitlab.labs.nic.cz/labs/yang-tools/tree/master/data-models/bird) I am using special types of routing-instances "bird-ipv4" and "bird-ipv6", and the same interface can be in both instances. This is because BIRD has to be compiled separately with support for IPv4 and IPv6, and each routing-instance then corresponds to one BIRD process. Yes, such an implementation is somewhat peculiar and needn't serve as a model. On the other hand, I don't see any reason why overlapping interface assignments should be made illegal for *all* types of routing instances. I assume the data model for routing instances of the type "VRF" will state that assignments of interfaces to routing instances have to be disjoint, and the draft explicitly states such an additional constraint is allowed (last paragraph in sec. 5.1). Isn't this sufficient? Lada > > Thanks, > Acee > > On 2/13/15, 12:45 PM, "Acee Lindem (acee)" <acee@cisco.com> wrote: > >> >> >>On 2/13/15, 5:25 AM, "Ladislav Lhotka" <lhotka@nic.cz> wrote: >> >>>"Acee Lindem (acee)" <acee@cisco.com> writes: >>> >>>> I believe the fact that we are having trouble resolving this is that >>>>the >>>> model is wrong. I would propose the following: >>> >>>I don't agree the model is wrong. In fact, I belive in Junos CLI it is >>>done exactly the same way, e.g. >>> >>> set interface fe-0/0/2 unit 0 family inet address 6.6.6.5/24 >>> >>> set routing-instances blue-vr interface fe-0/0/2.0 >>> >>>(IP address is configured in the interface subtree, and an interface is >>>assigned to a VRF in the routing-instance subtree). >>> >>>I believe the troubles we are having are due to the different logic in >>>the CLIs of the two major routing platforms. >> >>Does it show up as a separate list in the JUNOS gated-like configuration >>hierarchy? If they do configure the IPv4/IPv6 addresses disjoint from the >>routing -instance instances imply the corresponding IPv4/IPv6 address >>space and the RIBs, I still don’t like the inconsistency. >> >>The previous product I worked on, IPOS, had the interfaces in >>routing-instance but the routing-instance interface included all the layer >>3 definition including the IP/IPv6 addresses (i.e., the RFC 7277 >>definitions). >> >>Thanks, >>Acee >> >> >> >> >> >> >>> >>>Lada >>> >>>> >>>> 1. Remove the interface list completely from rtf-cfg configuration. >>>> 2. Augment the RFC 7223 to include a reference to a >>>>routing-instance. >>>> An interface should be part of one and only one routing-instance. >>>> 3. Provide a list of interfaces in the operational state in the >>>>rtg-cfg >>>> model. >>>> >>>> One reason I'm proposing this change is that I believe a >>>>routing-instance >>>> implies an IPv4/IPv6 address space and the interfaces list MUST NOT be >>>> disjoint from the assigned addresses (refer to RFC 7277). If you want >>>>to >>>> have a list of interfaces in the routing-instance, you should deprecate >>>> RFC 7277 or, at least, say that it only applies to the default >>>>instance. >>>> >>>> In all fairness, Lada disagrees with me on this point and wants the >>>> flexibility of associating an interface with multiple >>>>routing-instances. >>>> Additionally, he feels that the list inside the routing-instance will >>>> facilitate better interface selection checking. I don¹t see the latter >>>>as >>>> an issue as the same checking could be applied when an attempt is made >>>>to >>>> augment the RFC 7223 interface. >>>> >>>> Thanks, >>>> Acee >>>> >>>> >>>> >>>> On 1/14/15, 12:46 PM, "Juergen Schoenwaelder" >>>> <j.schoenwaelder@jacobs-university.de> wrote: >>>> >>>>>On Wed, Jan 14, 2015 at 04:43:29PM +0000, Xufeng Liu wrote: >>>>>> Hi Andy, >>>>>> >>>>>> The concatenated string format is actually what we plan to do. >>>>>>However, >>>>>>to me, it is more like a hack than an engineered solution. The model >>>>>>fails to capture such a relationship properly. >>>>>> >>>>> >>>>>If your interface names are no unique, I would assume that you will >>>>>face other issues as well. For example, one may use an interface name >>>>>to disambiguate link-local addresses. I am not sure how that works if >>>>>your interface name is not unique. >>>>> >>>>>/js >>>>> >>>>>-- >>>>>Juergen Schoenwaelder Jacobs University Bremen gGmbH >>>>>Phone: +49 421 200 3587 Campus Ring 1, 28759 Bremen, Germany >>>>>Fax: +49 421 200 3103 <http://www.jacobs-university.de/> >>>> >>> >>>-- >>>Ladislav Lhotka, CZ.NIC Labs >>>PGP Key ID: E74E8C0C >> >>_______________________________________________ >>Rtg-yang-coord mailing list >>Rtg-yang-coord@ietf.org >>https://www.ietf.org/mailman/listinfo/rtg-yang-coord > -- Ladislav Lhotka, CZ.NIC Labs PGP Key ID: E74E8C0C
- [Rtg-yang-coord] issue :R03: assignment of interf… Ladislav Lhotka
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Acee Lindem (acee)
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Ladislav Lhotka
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Xufeng Liu
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Ladislav Lhotka
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Juergen Schoenwaelder
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Ladislav Lhotka
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Xufeng Liu
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Juergen Schoenwaelder
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Xufeng Liu
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Andy Bierman
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Ladislav Lhotka
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Jeff Tantsura
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Xufeng Liu
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Juergen Schoenwaelder
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Christian Hopps
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Ladislav Lhotka
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Russ White
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Russ White
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Ladislav Lhotka
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Acee Lindem (acee)
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Ladislav Lhotka
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Acee Lindem (acee)
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Acee Lindem (acee)
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Ladislav Lhotka
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Acee Lindem (acee)
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Ladislav Lhotka
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Jeffrey Haas
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Acee Lindem (acee)
- Re: [Rtg-yang-coord] issue :R03: assignment of in… Ladislav Lhotka