Re: [Rtg-yang-coord] issue :R03: assignment of interfaces to routing instances

Ladislav Lhotka <lhotka@nic.cz> Mon, 19 January 2015 08:22 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 976921AD248 for <rtg-yang-coord@ietfa.amsl.com>; Mon, 19 Jan 2015 00:22:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.8
X-Spam-Level:
X-Spam-Status: No, score=0.8 tagged_above=-999 required=5 tests=[BAYES_50=0.8] 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 BpkCYjj3A-Jp for <rtg-yang-coord@ietfa.amsl.com>; Mon, 19 Jan 2015 00:21:58 -0800 (PST)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id BEDCC1ACEBD for <rtg-yang-coord@ietf.org>; Mon, 19 Jan 2015 00:21:58 -0800 (PST)
Received: from localhost (unknown [195.113.220.110]) by trail.lhotka.name (Postfix) with ESMTPSA id E65E91CC077D; Mon, 19 Jan 2015 09:21:56 +0100 (CET)
From: Ladislav Lhotka <lhotka@nic.cz>
To: Russ White <russw@riw.us>, 'Juergen Schoenwaelder' <j.schoenwaelder@jacobs-university.de>
In-Reply-To: <00a201d03323$042993d0$0c7cbb70$@riw.us>
References: <m2wq6j5skf.fsf@nic.cz> <D0D9CB3F.B6C0%acee@cisco.com> <8022061D-AB8F-4A97-84E7-A6E4F898F57F@nic.cz> <AAB1CC9C17CBA440BDFA169056B93B9EB10521@eusaamb107.ericsson.se> <35023717-7EE8-4F45-B2F4-B24E0F86FA5A@nic.cz> <20150113212732.GD1545@elstar.local> <00a201d03323$042993d0$0c7cbb70$@riw.us>
User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.51.2 (x86_64-apple-darwin14.0.0)
Date: Mon, 19 Jan 2015 09:21:57 +0100
Message-ID: <m2d26b9o4a.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtg-yang-coord/wi3a5EGMXkGC683JWfYNeNjkxYo>
Cc: rtg-yang-coord@ietf.org, "'Acee Lindem \(acee\)'" <acee@cisco.com>, 'Xufeng Liu' <xufeng.liu@ericsson.com>
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: Mon, 19 Jan 2015 08:22:01 -0000

Russ White <russw@riw.us> writes:

>> > > 2. Add an attribute routing-instance-ref (type leafref) in interface to point
>> to the name attribute (key) of routing-instance.
>> >
>> > This is IMO a good idea, we would then have links in both directions.
>
> How often would we traverse the link from the interface to the routing
> instance? I'm trying to think of a use case where you'd be looking at
> an interface configuration or state, and need to find out which

The link from an interface to routing instance(s) would be only in state data.

> routing instance it's being "included" in, and -- given a single
> interface can be included in multiple routing instances, how would I
> know which one I'm actually looking for?

It will be a leaf-list so you will be able to see all routing instances
in which the interface is included, and hopefully find the one you are
looking for.

>
> What specific question would I be asking that would cause me to look
> at this list -- in other words, when would I ask, "what routing
> instances is this interface included in?"

For example: Which VPN is this interface part of?

Lada

>
> :-)
>
> Russ
>
>

-- 
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C