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

Ladislav Lhotka <lhotka@nic.cz> Thu, 26 February 2015 08:43 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 357061A1B4A; Thu, 26 Feb 2015 00:43:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.3
X-Spam-Level:
X-Spam-Status: No, score=-1.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, J_CHICKENPOX_74=0.6] autolearn=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 hrMp4juXEcr7; Thu, 26 Feb 2015 00:43:42 -0800 (PST)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 52CF51A1B17; Thu, 26 Feb 2015 00:43:41 -0800 (PST)
Received: from localhost (unknown [195.113.220.110]) by trail.lhotka.name (Postfix) with ESMTPSA id 5A4931CC006E; Thu, 26 Feb 2015 09:43:48 +0100 (CET)
From: Ladislav Lhotka <lhotka@nic.cz>
To: "Acee Lindem \(acee\)" <acee@cisco.com>, Jeffrey Haas <jhaas@pfrc.org>
In-Reply-To: <D113E560.F484%acee@cisco.com>
References: <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> <20150224182859.GB13211@pfrc> <D113E560.F484%acee@cisco.com>
User-Agent: Notmuch/0.19 (http://notmuchmail.org) Emacs/24.4.51.2 (x86_64-apple-darwin14.0.0)
Date: Thu, 26 Feb 2015 09:43:37 +0100
Message-ID: <m2twy912rq.fsf@birdie.labs.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/y96ro3QxeMNmrM0k-8CBfeaCmBo>
Cc: "rtg-yang-coord@ietf.org" <rtg-yang-coord@ietf.org>, Routing WG <rtgwg@ietf.org>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Andy Bierman <andy@yumaworks.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: Thu, 26 Feb 2015 08:43:44 -0000

"Acee Lindem (acee)" <acee@cisco.com> writes:

> On 2/24/15, 1:28 PM, "Jeffrey Haas" <jhaas@pfrc.org> wrote:
>
>>[I'm behind as usual and this may have been discussed already.]
>>
>>On Fri, Feb 13, 2015 at 06:07:11PM +0000, Acee Lindem (acee) wrote:
>>> Independent of the hierarchy, I think an interface should be associated
>>> with one and only routing-instance. I know of no implementation that
>>> allows this (including the use case of separate instances for IPv4 and
>>> IPv6). 
>>
>>While junos does have the interface as part of the routing instance
>>interface hierarchy, you're also correct in that junos enforces that the
>>interface is only associated with one instance.
>>
>>The question is with regard to generic modeling: Should a single unified
>>interface model with the ability to associate the interface with the
>>instance?  Should the instance refer to interfaces?
>>
>>My concern with making the interface model point to associated instances
>>is
>>how we handle versioning for unknown things that we may want to associate
>>that interface with.  The interface model is something we want to be rock
>>solid stable, not something that needs to be revised each time some new
>>instancing mechanism is created.
>
> Since what I¹m suggesting is having rtg-cfg augment the interface model, I
> don¹t understand your concern. Why is the new model having a separate list
> of interfaces any more ³rock solid² than the existing interface to
> reference the associated routing instance?

Acee is right - it is an augment and its data belong to a different
namespace, so it really doesn't affect the interface model. Actually, I
think it would be done the same way (via an augment from another module)
even if we envisioned from the start that the assignment of interfaces
to routing instances will be done inside the interface hierarchy..

My concern regarding the change that Acee proposes is that this schema
extension cannot be made specific so that only a subset of interfaces
(L3) can be assigned to routing instances - at least I don't know how to
do it formally in the data model. The problem has to do with the fact
that interfaces of all layers and types are kept in the same flat list.

>
> My concern is much easier to understand - with existing configuration
> information augmenting the RFC 7223 model and some new subset of
> configuration information augmenting the interface list, we have a
> bifurcated extension model. Independent of which way we decide to

If it is the other way around, one could then argue that the
routing-instance configuration is bifurcated. I think both ways are
possible in principle, and are just a matter of taste, or perhaps legacy
CLI considerations.

> proceed,this issue needs to be addressed lest we have confusion every
> time a new model needs to augment interface configuration.

I agree, we have to make a choice.

Lada

>
> Acee 
>
>
>
>
>>
>>-- Jeff
>

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