Re: [YANG] keyref
Andy Bierman <ietf@andybierman.com> Wed, 23 January 2008 00:14 UTC
Return-path: <yang-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
by megatron.ietf.org with esmtp (Exim 4.43)
id 1JHTFo-0002aA-Hc; Tue, 22 Jan 2008 19:14:08 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43)
id 1JHTFn-0002Y4-FS
for yang-confirm+ok@megatron.ietf.org; Tue, 22 Jan 2008 19:14:07 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
by megatron.ietf.org with esmtp (Exim 4.43) id 1JHTFn-0002Xw-34
for yang@ietf.org; Tue, 22 Jan 2008 19:14:07 -0500
Received: from smtp116.sbc.mail.sp1.yahoo.com ([69.147.64.89])
by ietf-mx.ietf.org with smtp (Exim 4.43) id 1JHTFm-0004Ef-Ly
for yang@ietf.org; Tue, 22 Jan 2008 19:14:07 -0500
Received: (qmail 37284 invoked from network); 23 Jan 2008 00:14:05 -0000
Received: from unknown (HELO ?192.168.0.10?)
(andybierman@att.net@67.126.240.103 with plain)
by smtp116.sbc.mail.sp1.yahoo.com with SMTP; 23 Jan 2008 00:14:05 -0000
X-YMail-OSG: jQwyADQVM1l4GvMC4n_GLXiJAX5VPTfZeUJvpKqqaCArZ6_e
X-Yahoo-Newman-Property: ymail-3
Message-ID: <47968652.1010600@andybierman.com>
Date: Tue, 22 Jan 2008 16:12:02 -0800
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: Martin Bjorklund <mbj@tail-f.com>
Subject: Re: [YANG] keyref
References: <4795FECC.4090803@andybierman.com> <47960C6E.5060804@ericsson.com> <4796213F.5050703@andybierman.com>
<20080122.222318.78771144.mbj@tail-f.com>
In-Reply-To: <20080122.222318.78771144.mbj@tail-f.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 0ddefe323dd869ab027dbfff7eff0465
Cc: yang@ietf.org
X-BeenThere: yang@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: YANG modeling Language for NETCONF <yang.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/yang>,
<mailto:yang-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/yang>
List-Post: <mailto:yang@ietf.org>
List-Help: <mailto:yang-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/yang>,
<mailto:yang-request@ietf.org?subject=subscribe>
Errors-To: yang-bounces@ietf.org
Martin Bjorklund wrote: > Andy Bierman <ietf@andybierman.com> wrote: >> Ex 2) data type for 'address' is in the leaf clause >> >> leaf address { >> type yang:ip-address; >> leafref "../../interface[name = $this/../ifname]/address/ip"; >> } >> >> Win-win scenario: works for humans, and works for tools. > > Do you want this new 'leafref' statement to have the same semantics as > the keyref type? > > I'm not 100% sure what the semantics are. I do not agree that the set of instances needs to be limited to the current values in use in the leafref target. There are 2 important corner-cases (2 sides of the same one): 1) pre-provisioning creating an entry that points to an instance that represents HW that has not been installed yet. The config sits harmlessly, waiting until the hardware is installed to become active. 2) hot-swap cards As Juergen pointed out with the old SNMP "interface to Chicago" problem, the DM writer does not know if the config for a board that was just removed should be saved or deleted -- only the operator knows that. I want the 'real' type to be used in the type field and the optional leafref-stmt is available to describe whatever relationship the DM writer wants. The description clause SHOULD identify this relationship in plain text as well. >> One reason I was confused -- a bug in the example on p. 94-95: > > Ok, fixed. > > > /martin > > Andy _______________________________________________ YANG mailing list YANG@ietf.org https://www1.ietf.org/mailman/listinfo/yang
- [YANG] keyref Andy Bierman
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Andy Bierman
- Re: [YANG] keyref Juergen Schoenwaelder
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Juergen Schoenwaelder
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Juergen Schoenwaelder
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Juergen Schoenwaelder
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Balazs Lengyel
- Re: [YANG] keyref Balazs Lengyel
- RE: [YANG] keyref Bert Wijnen
- Re: [YANG] keyref Andy Bierman
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Andy Bierman
- Re: [YANG] keyref Balazs Lengyel
- Re: [YANG] keyref Andy Bierman
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Juergen Schoenwaelder
- Re: [YANG] keyref Juergen Schoenwaelder
- Re: [YANG] keyref Andy Bierman
- Re: [YANG] keyref Phil Shafer
- Re: [YANG] keyref Andy Bierman
- Re: [YANG] keyref Randy Presuhn
- Re: [YANG] keyref Randy Presuhn
- Re: [YANG] keyref Phil Shafer
- Re: [YANG] keyref Andy Bierman
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Balazs Lengyel
- Re: [YANG] keyref Andy Bierman