[YANG] insert and key attributes

Andy Bierman <ietf@andybierman.com> Fri, 11 January 2008 15:53 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 1JDMCN-000570-HR; Fri, 11 Jan 2008 10:53:35 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JDMCM-00056u-Ef for yang-confirm+ok@megatron.ietf.org; Fri, 11 Jan 2008 10:53:34 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JDMCF-000556-GG for yang@ietf.org; Fri, 11 Jan 2008 10:53:27 -0500
Received: from smtp121.sbc.mail.sp1.yahoo.com ([69.147.64.94]) by chiedprmail1.ietf.org with smtp (Exim 4.43) id 1JDMCF-0001tD-1Y for yang@ietf.org; Fri, 11 Jan 2008 10:53:27 -0500
Received: (qmail 88270 invoked from network); 11 Jan 2008 15:53:25 -0000
Received: from unknown (HELO ?192.168.0.10?) (andybierman@att.net@67.126.240.103 with plain) by smtp121.sbc.mail.sp1.yahoo.com with SMTP; 11 Jan 2008 15:53:25 -0000
X-YMail-OSG: Tw3JjosVM1mc5yiZOQvtsDzJ4Ne3Rl23K8UnB74pqs1P4xOF
Message-ID: <478790F4.1050807@andybierman.com>
Date: Fri, 11 Jan 2008 07:53:24 -0800
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: yang <yang@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 9466e0365fc95844abaf7c3f15a05c7d
Subject: [YANG] insert and key attributes
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

Hi,

1) sec. 7.8.6 mentions the 'key' attribute (great, another
    overloaded term ;-) but this is not formally defined anywhere.
    The terse definition of the 'insert' attribute is not a formal
    definition either.  In general, all the new requirements
    that YANG places on NETCONF agents is scattered throughout
    the document, and not entirely obvious.

2) para 4 in 7.8.6 says if insert is missing, then it defaults
    to last.  Even in a list indexed by an integer.  This seems
    strange to me, to use an integral key and then ignore the actual
    base type, but I guess 'ordered-by-user' implies that the base type
    of the key has no meaning to the agent.

3) The last example in 7.8.7 is confusing.
    (There is a typo "to move a the new user 'barney'".)
    If 'barney' was already inserted after 'fred' (previous page)
    then the merge of 'barney' before 'fred' will fail in NETCONF.
    There is no move operation in NETCONF.  You cannot edit the
    value of a key.  The example would actually have no affect
    in NETCONF, since the <name> field was already set to 'barney'.


Andy






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