[Rtg-yang-coord] templates for protocol parameters
Ladislav Lhotka <lhotka@nic.cz> Tue, 27 January 2015 10:02 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 89B701A874F
for <rtg-yang-coord@ietfa.amsl.com>; Tue, 27 Jan 2015 02:02:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5
tests=[BAYES_00=-1.9] 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 CTTTm47As5mm for <rtg-yang-coord@ietfa.amsl.com>;
Tue, 27 Jan 2015 02:02:39 -0800 (PST)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143])
by ietfa.amsl.com (Postfix) with ESMTP id 6908D1A8737
for <rtg-yang-coord@ietf.org>; Tue, 27 Jan 2015 02:02:38 -0800 (PST)
Received: from localhost (unknown [195.113.220.110])
by trail.lhotka.name (Postfix) with ESMTPSA id 42DEF1CC03BB
for <rtg-yang-coord@ietf.org>; Tue, 27 Jan 2015 11:02:42 +0100 (CET)
From: Ladislav Lhotka <lhotka@nic.cz>
To: rtg-yang-coord@ietf.org
User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.51.2
(x86_64-apple-darwin14.0.0)
Date: Tue, 27 Jan 2015 11:02:36 +0100
Message-ID: <m2mw54k0cj.fsf@birdie.labs.nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtg-yang-coord/p4OWchtIzZFCAwiipVnDar54HXg>
Subject: [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: Tue, 27 Jan 2015 10:02:45 -0000
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] templates for protocol parameters Ladislav Lhotka
- Re: [Rtg-yang-coord] templates for protocol param… stephane.litkowski
- Re: [Rtg-yang-coord] templates for protocol param… Ladislav Lhotka
- Re: [Rtg-yang-coord] templates for protocol param… Acee Lindem (acee)
- Re: [Rtg-yang-coord] templates for protocol param… Ladislav Lhotka
- Re: [Rtg-yang-coord] templates for protocol param… Acee Lindem (acee)
- Re: [Rtg-yang-coord] templates for protocol param… stephane.litkowski