Re: [YANG] keyref
Martin Bjorklund <mbj@tail-f.com> Wed, 23 January 2008 09:03 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 1JHbWJ-0003WB-9P; Wed, 23 Jan 2008 04:03:43 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43)
id 1JHbWI-0003O9-0b
for yang-confirm+ok@megatron.ietf.org; Wed, 23 Jan 2008 04:03:42 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org)
by megatron.ietf.org with esmtp (Exim 4.43) id 1JHbWH-0003Kd-HW
for yang@ietf.org; Wed, 23 Jan 2008 04:03:41 -0500
Received: from [213.180.94.162] (helo=mail.tail-f.com)
by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JHbWH-0006b6-22
for yang@ietf.org; Wed, 23 Jan 2008 04:03:41 -0500
Received: from localhost (138.162.241.83.in-addr.dgcsystems.net
[83.241.162.138])
by mail.tail-f.com (Postfix) with ESMTP id 60F2B1B80C6;
Wed, 23 Jan 2008 10:03:39 +0100 (CET)
Date: Wed, 23 Jan 2008 10:05:01 +0100 (CET)
Message-Id: <20080123.100501.15118771.mbj@tail-f.com>
To: phil@juniper.net
Subject: Re: [YANG] keyref
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <200801230521.m0N5LFGR019757@idle.juniper.net>
References: <4796C299.7010706@andybierman.com>
<200801230521.m0N5LFGR019757@idle.juniper.net>
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: 856eb5f76e7a34990d1d457d8e8e5b7f
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
Phil Shafer <phil@juniper.net> wrote: > >I already made a proposal -- instead of a builtin type called keyref > >there would be an optional clause for a leaf of leaf-list called > >leafref that has the path-stmt from the keyref as its argument. > > Your proposal called this a "documentation clause", which implies > something targeted to humans and not usable by software. This > would be bad, but I would live with a distinct statement for the > ref target that is a formal target. Why is formal redundancy good? If you're using a leafref, the type is well known; it is the type if the target node. But you still have to specify it again. I assume that it would be an error to say that the leaf is of type int32, but the leafref points to a string leaf. This also brings up the question when two types are considered to be equal. /martin _______________________________________________ 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