Re: [Rtg-yang-coord] templates for protocol parameters

"Acee Lindem (acee)" <acee@cisco.com> Fri, 30 January 2015 12:35 UTC

Return-Path: <acee@cisco.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 8E8191A026A for <rtg-yang-coord@ietfa.amsl.com>; Fri, 30 Jan 2015 04:35:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.511
X-Spam-Level:
X-Spam-Status: No, score=-14.511 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_DKIM_WL=-7.5] 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 TwGBYQZ8iaqH for <rtg-yang-coord@ietfa.amsl.com>; Fri, 30 Jan 2015 04:35:07 -0800 (PST)
Received: from rcdn-iport-6.cisco.com (rcdn-iport-6.cisco.com [173.37.86.77]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 615811A01FA for <rtg-yang-coord@ietf.org>; Fri, 30 Jan 2015 04:35:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5270; q=dns/txt; s=iport; t=1422621308; x=1423830908; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=C3ocAoacivbeFsWaGIMCnoOejrvV+N/mk3jjdfIjXSo=; b=gx7KdiqteGQHJfw+IVUr+XdgCLOq8iXr2c5Q7Ycqx6VLsyOu6cOXsour z/lT719uDgxegBmZac4OUuCYiEvsg3NYvWQ2BiRQ/aOLsDoRapwlZ45Z3 c1JQ5lYLs6uzktdMAlE5azQzlLJnMLd+I0DjZd0kmq/a22g4oIvVuP38F o=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AkIFAMl5y1StJA2L/2dsb2JhbABQAQmDBlJZBMReCoVxAoEdQwEBAQEBfYQMAQEBAwEBAQE3NAsMBAIBCBEEAQEBHgkHJwsUCQgCBA4DAogkCA3WRwEBAQEBAQEBAQEBAQEBAQEBAQEBARMEjxYGAQoBUAcGhCMFjnyERIRegReDAY45IoNuQi2BCzl+AQEB
X-IronPort-AV: E=Sophos;i="5.09,491,1418083200"; d="scan'208";a="392080896"
Received: from alln-core-6.cisco.com ([173.36.13.139]) by rcdn-iport-6.cisco.com with ESMTP; 30 Jan 2015 12:35:07 +0000
Received: from xhc-aln-x10.cisco.com (xhc-aln-x10.cisco.com [173.36.12.84]) by alln-core-6.cisco.com (8.14.5/8.14.5) with ESMTP id t0UCZ65c025774 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 30 Jan 2015 12:35:06 GMT
Received: from xmb-aln-x06.cisco.com ([169.254.1.144]) by xhc-aln-x10.cisco.com ([173.36.12.84]) with mapi id 14.03.0195.001; Fri, 30 Jan 2015 06:35:06 -0600
From: "Acee Lindem (acee)" <acee@cisco.com>
To: Ladislav Lhotka <lhotka@nic.cz>
Thread-Topic: [Rtg-yang-coord] templates for protocol parameters
Thread-Index: AQHQOhhqKuXWACXPnUyW5U/A75skaJzY6UmA///CjgCAAFYAAP//rRMA
Date: Fri, 30 Jan 2015 12:35:05 +0000
Message-ID: <D0F0E437.C9ED%acee@cisco.com>
References: <m2mw54k0cj.fsf@birdie.labs.nic.cz> <24813_1422615840_54CB6520_24813_3029_1_9E32478DFA9976438E7A22F69B08FF920C7983B3@OPEXCLILM34.corporate.adroot.infra.ftgroup> <D0F0E161.C9E2%acee@cisco.com> <93FCC189-8062-4233-B18B-F069646802F9@nic.cz>
In-Reply-To: <93FCC189-8062-4233-B18B-F069646802F9@nic.cz>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.116.152.196]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <D460F698D0E64E4AB7A8CCB606F72176@emea.cisco.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtg-yang-coord/bY8Y2IxX9NfY94cX4Ao3Y87auWI>
Cc: "rtg-yang-coord@ietf.org" <rtg-yang-coord@ietf.org>, "stephane.litkowski@orange.com" <stephane.litkowski@orange.com>
Subject: Re: [Rtg-yang-coord] templates for protocol parameters
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: Fri, 30 Jan 2015 12:35:09 -0000

On 1/30/15, 7:31 AM, "Ladislav Lhotka" <lhotka@nic.cz> wrote:

>
>> On 30 Jan 2015, at 13:24, Acee Lindem (acee) <acee@cisco.com> wrote:
>> 
>> Hi Stephane, Lada,
>> 
>> Would it be possible to define a general rule where the a value
>>specified
>> for a data node in the template would only be used if that data node is
>> not explicitly specified?
>
>Yes, such an overriding would be useful. We also have to think about what
>to do with (leaf-)lists: if the same list appears in both the template
>and real instance, we could
>
>1. use only the list from the real instance, or
>
>2. merge both lists.

While #2 would be useful at times, I think keeping consistent semantics
(#1) would be preferred.

Thanks,
Acee 



>
>Lada
>
>> 
>> Thanks,
>> Acee 
>> 
>> On 1/30/15, 6:03 AM, "stephane.litkowski@orange.com"
>> <stephane.litkowski@orange.com> wrote:
>> 
>>> Hi Lada,
>>> 
>>> The idea sounds good to me. In term of details, we must think about
>>> creating "intelligent" templates.
>>> What I mean is that applying some parameters to some items only.
>>> 
>>> For example, being able to apply a routing-protocol template to only
>>>bgp
>>> instances which name matches a regexp ...
>>> 
>>> Here is what I see :
>>> - being able to apply the template at multiple level (routing-instance
>>> level, or routing-protocol level)
>>> - if the template is applied at routing-instance level, the
>>> routing-protocol part of the template routing-instance will apply to
>>>all
>>> routing-protocols that will match the container of the template (if
>>>type
>>> is OSPF within the template, it will apply only to OSPF routing
>>>protocols)
>>> - the name leaves in the template could be used to store a regular
>>> expression, or maybe we need to use another leaf. The regexp will
>>>permit
>>> to identify which container are eligible for inheritance.
>>> 
>>> The main concern I have is if we develop such template for routing,
>>>would
>>> it be interesting to extend it to all configurations ? (routing,
>>> interfaces ...)
>>> 
>>> -----Original Message-----
>>> From: Rtg-yang-coord [mailto:rtg-yang-coord-bounces@ietf.org] On Behalf
>>> Of Ladislav Lhotka
>>> Sent: Tuesday, January 27, 2015 11:03
>>> To: rtg-yang-coord@ietf.org
>>> Subject: [Rtg-yang-coord] templates for protocol parameters
>>> 
>>> Hi,
>>> 
>>> the templates that would allow for sharing/inheriting some protocol
>>> parameters may be implemented in the current "ietf-routing" module as
>>> follows:
>>> 
>>> 1. Define a new identity for the template routing instances:
>>> 
>>>   identity template-routing-instance {
>>>       base routing-instance;
>>>   }
>>> 
>>> 2. Define a new leaf under "routing-protocol" for referring to a
>>>  template protocol instance:
>>> 
>>>   leaf template-ref {
>>>       type leafref {
>>>           path "/rt:routing/rt:routing-instance/rt:routing-protocols"
>>>              + "/rt:routing-protocol/rt:name";
>>>   }
>>> 
>>> With this, a routing instance of the type "template-routing-instance"
>>> can be configured, and inside it any number of protocol instances (with
>>> appropriate types) containing template parameters.
>>> 
>>> A "real" protocol instance would then use the "template-ref" leaf for
>>> pointing to a template protocol instance and share/inherit its
>>>parameters.
>>> 
>>> I think it would then be easy to map inherited parameters in the
>>> protocol-centric design to such a template, and vice versa.
>>> 
>>> Could this work?
>>> 
>>> Lada
>>> 
>>> --
>>> 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
>>> 
>>> 
>>>________________________________________________________________________
>>>__
>>> _______________________________________________
>>> 
>>> Ce message et ses pieces jointes peuvent contenir des informations
>>> confidentielles ou privilegiees et ne doivent donc
>>> pas etre diffuses, exploites ou copies sans autorisation. Si vous avez
>>> recu ce message par erreur, veuillez le signaler
>>> a l'expediteur et le detruire ainsi que les pieces jointes. Les
>>>messages
>>> electroniques etant susceptibles d'alteration,
>>> Orange decline toute responsabilite si ce message a ete altere, deforme
>>> ou falsifie. Merci.
>>> 
>>> This message and its attachments may contain confidential or privileged
>>> information that may be protected by law;
>>> they should not be distributed, used or copied without authorisation.
>>> If you have received this email in error, please notify the sender and
>>> delete this message and its attachments.
>>> As emails may be altered, Orange is not liable for messages that have
>>> been modified, changed or falsified.
>>> Thank you.
>>> 
>>> _______________________________________________
>>> 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
>
>
>
>