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

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Tue, 13 January 2015 21:27 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
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 EECFD1AD37C for <rtg-yang-coord@ietfa.amsl.com>; Tue, 13 Jan 2015 13:27:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.96
X-Spam-Level:
X-Spam-Status: No, score=-0.96 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, J_CHICKENPOX_29=0.6, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] 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 Tu8OwhUMpCCH for <rtg-yang-coord@ietfa.amsl.com>; Tue, 13 Jan 2015 13:27:36 -0800 (PST)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de [212.201.44.18]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C3B011ACDE0 for <rtg-yang-coord@ietf.org>; Tue, 13 Jan 2015 13:27:35 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id 49FB3FCB; Tue, 13 Jan 2015 22:27:34 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.220]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id yxqpvkCc3bv6; Tue, 13 Jan 2015 22:27:32 +0100 (CET)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas3.jacobs-university.de (Postfix) with ESMTPS; Tue, 13 Jan 2015 22:27:33 +0100 (CET)
Received: from localhost (demetrius4.jacobs-university.de [212.201.44.49]) by hermes.jacobs-university.de (Postfix) with ESMTP id 9834D2002C; Tue, 13 Jan 2015 22:27:33 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius4.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id npH-vknNSExI; Tue, 13 Jan 2015 22:27:33 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 92B8B20017; Tue, 13 Jan 2015 22:27:32 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id F3E0D30BB077; Tue, 13 Jan 2015 22:27:32 +0100 (CET)
Date: Tue, 13 Jan 2015 22:27:32 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Ladislav Lhotka <lhotka@nic.cz>
Message-ID: <20150113212732.GD1545@elstar.local>
Mail-Followup-To: Ladislav Lhotka <lhotka@nic.cz>, Xufeng Liu <xufeng.liu@ericsson.com>, "rtg-yang-coord@ietf.org" <rtg-yang-coord@ietf.org>, "Acee Lindem (acee)" <acee@cisco.com>
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>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <35023717-7EE8-4F45-B2F4-B24E0F86FA5A@nic.cz>
User-Agent: Mutt/1.4.2.3i
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtg-yang-coord/qpqfee1UP5EQq59NQOaXQ-2zJQo>
Cc: "rtg-yang-coord@ietf.org" <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
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
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: Tue, 13 Jan 2015 21:27:38 -0000

On Tue, Jan 13, 2015 at 05:42:38PM +0100, Ladislav Lhotka wrote:
> 
> > 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.
>

I assume this would be config false state data, otherwise we only add
configuration complexity for no real value. And this likely would have
to be a leaf-list.

> > 3. Make the new routing-instance-ref added above to be part of the key, i.e. create a composite key <name, routing-instance-ref> for interface.
> 
> This is not possible because:
> 
> - the key of the if:interface list cannot be extended by additional components;
>  
> - if:interface is a flat list that contains interfaces of all layers, but an assignment to a routing-instance makes sense only for L3 interfaces;
> 
> - YANG module ietf-interfaces is intended for all kinds of devices, including those that don’t implement ietf-routing.
>

+1

/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/>