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

Xufeng Liu <xufeng.liu@ericsson.com> Tue, 13 January 2015 15:11 UTC

Return-Path: <xufeng.liu@ericsson.com>
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 027E01A8AA6 for <rtg-yang-coord@ietfa.amsl.com>; Tue, 13 Jan 2015 07:11:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.601
X-Spam-Level:
X-Spam-Status: No, score=-3.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, J_CHICKENPOX_29=0.6, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] 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 nY4HM28pJk6t for <rtg-yang-coord@ietfa.amsl.com>; Tue, 13 Jan 2015 07:11:18 -0800 (PST)
Received: from usevmg20.ericsson.net (usevmg20.ericsson.net [198.24.6.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E0C261A1B80 for <rtg-yang-coord@ietf.org>; Tue, 13 Jan 2015 07:11:17 -0800 (PST)
X-AuditID: c618062d-f79376d000000ceb-d0-54b4e371db2d
Received: from EUSAAHC005.ericsson.se (Unknown_Domain [147.117.188.87]) by usevmg20.ericsson.net (Symantec Mail Security) with SMTP id BE.0D.03307.173E4B45; Tue, 13 Jan 2015 10:20:50 +0100 (CET)
Received: from EUSAAMB107.ericsson.se ([147.117.188.124]) by EUSAAHC005.ericsson.se ([147.117.188.87]) with mapi id 14.03.0195.001; Tue, 13 Jan 2015 10:11:15 -0500
From: Xufeng Liu <xufeng.liu@ericsson.com>
To: Ladislav Lhotka <lhotka@nic.cz>, "Acee Lindem (acee)" <acee@cisco.com>
Thread-Topic: [Rtg-yang-coord] issue :R03: assignment of interfaces to routing instances
Thread-Index: AQHQLs3lKpNtcgDGLkW279NVg125yJy+HaWA///2Y7A=
Date: Tue, 13 Jan 2015 15:11:14 +0000
Message-ID: <AAB1CC9C17CBA440BDFA169056B93B9EB10521@eusaamb107.ericsson.se>
References: <m2wq6j5skf.fsf@nic.cz> <D0D9CB3F.B6C0%acee@cisco.com> <8022061D-AB8F-4A97-84E7-A6E4F898F57F@nic.cz>
In-Reply-To: <8022061D-AB8F-4A97-84E7-A6E4F898F57F@nic.cz>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [147.117.188.10]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOLMWRmVeSWpSXmKPExsUyuXRPuG7R4y0hBttms1tMfjuP2eLCqrls Fr+f32Z2YPaY8nsjq8eSJT+ZPDZdvsMYwBzFZZOSmpNZllqkb5fAlbHnzm62gj/yFbfn/WBr YNwp0cXIySEhYCJxpXs1G4QtJnHh3nogm4tDSOAIo8T79ltQznJGid49vUAOBwebgJbE5aeO IA0iAl4Sl7qfMoPYzALmEnc7uxlBbGGBSInOrnXMIOUiAlESbz/oQJRbSayYeBdsCouAqsTR JaYgYV4Bb4nzB36ygthCAkUSp0/2MoGUcAKV77lrCBJmBLrs+6k1TBCLxCVuPZnPBHGxgMSS PeeZIWxRiZeP/7FC2EoSk5aeY4Wo15FYsPsTG4StLbFs4WtmiLWCEidnPmGZwCg2C8nYWUha ZiFpmYWkZQEjyypGjtLi1LLcdCODTYzAmDkmwaa7g3HPS8tDjAIcjEo8vBskt4QIsSaWFVfm HmKU5mBREudtebc+REggPbEkNTs1tSC1KL6oNCe1+BAjEwenVAPjHK5qUxmJ705NYklvLHo3 bYxK5YvqK4t1svk9y3Fv2Jz+xvvffcNmNrRNmncy4sXrObueh6Wsa7qnFHd/g2WH5cp3bUqC BxpyFz3cs8fDkmlrnMpvi3Tmk5PEz7h280oZt+4w4P219htf95bNKU4+zMIFDnev7Wxd07Bs g+GUZcYTp/ftDuhVYinOSDTUYi4qTgQAqPQa6XoCAAA=
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtg-yang-coord/RZdJiIFQKhDPFB-CC1wYdIZ4Eyk>
Cc: "rtg-yang-coord@ietf.org" <rtg-yang-coord@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: Tue, 13 Jan 2015 15:11:27 -0000

For the routing-instance to interface relationship, I support the aggregation (or containment) relationship, which means:
1. We can easily navigate to interfaces from a routing-instance.
2. The key attributes in interfaces are unique within the scope of a routing-instance.

The current leafref in routing-instance is not sufficient for the above requirements. The uniqueness of interface name within the scope of a routing-instance is not supported.

My proposal is:
1. Keep the current leafref in routing-instance.
2. Add an attribute routing-instance-ref (type leafref) in interface to point to the name attribute (key) of routing-instance.
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.

Thanks,

- Xufeng

> -----Original Message-----
> From: Rtg-yang-coord [mailto:rtg-yang-coord-bounces@ietf.org] On Behalf Of
> Ladislav Lhotka
> Sent: Tuesday, January 13, 2015 4:32 AM
> To: Acee Lindem (acee)
> Cc: rtg-yang-coord@ietf.org
> Subject: Re: [Rtg-yang-coord] issue :R03: assignment of interfaces to routing
> instances
> 
> 
> > On 13 Jan 2015, at 02:11, Acee Lindem (acee) <acee@cisco.com> wrote:
> >
> > Hi,
> >
> > Lada and I have been discussing this issue for some time and were
> > hoping for some comments from the routing community. The question is
> > basically whether to have a list of interfaces in routing-instance
> > that reference the RFC 7223 interfaces:
> >
> >        container interfaces {
> >           description
> >             "Configuration of the routing instance's interfaces.";
> >           list interface {
> >             key "name";
> >             description
> >               "List of network layer interfaces assigned to the routing
> >                instance.";
> >             leaf name {
> >               type if:interface-ref;
> >               description
> >                 "A reference to the name of a configured network layer
> >                  interface.";
> >             }
> >           }
> >         }
> >
> >
> >
> > Or to augment the RFC 7223 interfaces to point to the routing-instance.
> 
> Please see also my earlier mail:
> 
> http://www.ietf.org/mail-archive/web/rtg-yang-coord/current/msg00131.html
> 
> Thanks, Lada
> 
> >
> >
> > Thanks,
> > Acee
> >
> > On 11/25/14, 8:16 AM, "Ladislav Lhotka" <lhotka@nic.cz> wrote:
> >
> >> Hi,
> >>
> >> this issue refers the YANG module "ietf-routing" contained in
> >>
> >> http://tools.ietf.org/html/draft-ietf-netmod-routing-cfg-16
> >>
> >> Please indicate your preference or add comments.
> >>
> >> ***** :R03: assignment of interfaces to routing instances
> >>     In -16 it is done by including a network-layer interface in the
> >>     list rt:interface under rt:routing-instance. An advantage of
> >>     this organization is that the rt:interface list should contain
> >>     only network layer interfaces for which the assignment makes
> >>     sense. A drawback is that the assignment is detached from the
> >>     specification of IP addresses in if:interface.
> >>
> >> ****** Solution R03-1
> >>      No change.
> >>
> >> ****** Solution R03-2
> >>      Do the assignment of an interface to a routing instance inside
> >>      the if:interface entry.
> >>
> >> --
> >> 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
> >
> > _______________________________________________
> > 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 mailing list
> Rtg-yang-coord@ietf.org
> https://www.ietf.org/mailman/listinfo/rtg-yang-coord