Re: [YANG] keyref

Martin Bjorklund <mbj@tail-f.com> Tue, 22 January 2008 21:24 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 1JHQc2-00086G-6C; Tue, 22 Jan 2008 16:24:54 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JHQc0-00086A-Km for yang-confirm+ok@megatron.ietf.org; Tue, 22 Jan 2008 16:24:52 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JHQc0-000862-3Y for yang@ietf.org; Tue, 22 Jan 2008 16:24:52 -0500
Received: from [213.180.94.162] (helo=mail.tail-f.com) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JHQbz-0003R5-NI for yang@ietf.org; Tue, 22 Jan 2008 16:24:51 -0500
Received: from localhost (c213-100-166-13.swipnet.se [213.100.166.13]) by mail.tail-f.com (Postfix) with ESMTP id 65B001B80C5; Tue, 22 Jan 2008 22:24:49 +0100 (CET)
Date: Tue, 22 Jan 2008 22:23:18 +0100 (CET)
Message-Id: <20080122.222318.78771144.mbj@tail-f.com>
To: ietf@andybierman.com
Subject: Re: [YANG] keyref
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <4796213F.5050703@andybierman.com>
References: <4795FECC.4090803@andybierman.com> <47960C6E.5060804@ericsson.com> <4796213F.5050703@andybierman.com>
X-Mailer: Mew version 5.1.51 on Emacs 22.1 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 79899194edc4f33a41f49410777972f8
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

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?


> One reason I was confused -- a bug in the example on p. 94-95:

Ok, fixed.


/martin


_______________________________________________
YANG mailing list
YANG@ietf.org
https://www1.ietf.org/mailman/listinfo/yang