Re: [YANG] keyref

Andy Bierman <ietf@andybierman.com> Wed, 23 January 2008 04:29 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 1JHXEV-0007qe-Go; Tue, 22 Jan 2008 23:29:03 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JHXET-0007jm-O2 for yang-confirm+ok@megatron.ietf.org; Tue, 22 Jan 2008 23:29:01 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JHXET-0007je-D0 for yang@ietf.org; Tue, 22 Jan 2008 23:29:01 -0500
Received: from smtp120.sbc.mail.sp1.yahoo.com ([69.147.64.93]) by ietf-mx.ietf.org with smtp (Exim 4.43) id 1JHXES-0001T1-Un for yang@ietf.org; Tue, 22 Jan 2008 23:29:01 -0500
Received: (qmail 12930 invoked from network); 23 Jan 2008 04:29:00 -0000
Received: from unknown (HELO ?192.168.0.10?) (andybierman@att.net@67.126.240.103 with plain) by smtp120.sbc.mail.sp1.yahoo.com with SMTP; 23 Jan 2008 04:29:00 -0000
X-YMail-OSG: fzq66FgVM1lZZ77Rn5EcXKONveMdtvrzHikYyepdcgVTeVqR
X-Yahoo-Newman-Property: ymail-3
Message-ID: <4796C299.7010706@andybierman.com>
Date: Tue, 22 Jan 2008 20:29:13 -0800
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: Phil Shafer <phil@juniper.net>
Subject: Re: [YANG] keyref
References: <200801230358.m0N3wsub017849@idle.juniper.net>
In-Reply-To: <200801230358.m0N3wsub017849@idle.juniper.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: e1e48a527f609d1be2bc8d8a70eb76cb
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 wrote:
> Andy Bierman writes:
>> IMO, leafref as a documentation clause does the same thing
>> but way simpler.  The DM reader should not have to be an expert
>> in Xpath, and need to hunt down the relevant documentation,
>> just to find out a leaf's data type.
> 
> Are you saying you prefer this relationship to be defined in English
> words instead of a formal language?  The "description" statement
> for the leaf can provide the words, but we hope to provide something
> that a generic manager implementation can use to process module
> contents.
> 

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.

As a separate matter, it is also good practice to document
the leafref in the description clause.


>> IMO, the whole issue of relationships between config database nodes is larger
>> than this keyref clause.  The requirements for machine readable
>> object constraint languages and object/entity relationships needs to
>> be documented in detail and agreed upon.
> 
> So you want this issue pushed onto the Requirements Team?  Or do
> you want a distinct requirements effort for this?
> 

I expect the requirements team to write the initial draft.
I don't know what the RFC will look like yet.


> Thanks,
>  Phil
> 
> 

Andy


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