[YANG] config-stmt missing for choice construct

Andy Bierman <ietf@andybierman.com> Sat, 02 February 2008 18:09 UTC

Return-Path: <yang-bounces@ietf.org>
X-Original-To: ietfarch-yang-archive@core3.amsl.com
Delivered-To: ietfarch-yang-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 1D4203A6A6A; Sat, 2 Feb 2008 10:09:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.196
X-Spam-Level:
X-Spam-Status: No, score=0.196 tagged_above=-999 required=5 tests=[AWL=0.046, BAYES_40=-0.185, IP_NOT_FRIENDLY=0.334]
Received: from core3.amsl.com ([127.0.0.1]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3KsZ-Zz0qFxo; Sat, 2 Feb 2008 10:09:11 -0800 (PST)
Received: from core3.amsl.com (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 21A013A6A70; Sat, 2 Feb 2008 10:04:56 -0800 (PST)
X-Original-To: yang@core3.amsl.com
Delivered-To: yang@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 176923A6AB2 for <yang@core3.amsl.com>; Sat, 2 Feb 2008 10:04:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
Received: from core3.amsl.com ([127.0.0.1]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jSQ+J5aQkJsN for <yang@core3.amsl.com>; Sat, 2 Feb 2008 10:04:54 -0800 (PST)
Received: from smtp117.sbc.mail.sp1.yahoo.com (smtp117.sbc.mail.sp1.yahoo.com [69.147.64.90]) by core3.amsl.com (Postfix) with SMTP id B9E493A6A70 for <yang@ietf.org>; Sat, 2 Feb 2008 10:00:06 -0800 (PST)
Received: (qmail 65203 invoked from network); 2 Feb 2008 18:00:44 -0000
Received: from unknown (HELO ?192.168.0.10?) (andybierman@att.net@68.120.83.0 with plain) by smtp117.sbc.mail.sp1.yahoo.com with SMTP; 2 Feb 2008 18:00:44 -0000
X-YMail-OSG: 2RBV4kEVM1mrAZz0wHcPRc6mcfhFT3cxlIO8dWP.79jwLz31
X-Yahoo-Newman-Property: ymail-3
Message-ID: <47A4AFE0.5030002@andybierman.com>
Date: Sat, 02 Feb 2008 10:01:04 -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>
Subject: [YANG] config-stmt missing for choice construct
X-BeenThere: yang@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: YANG modeling Language for NETCONF <yang.ietf.org>
List-Unsubscribe: <http://www.ietf.org/mailman/listinfo/yang>, <mailto:yang-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/pipermail/yang>
List-Post: <mailto:yang@ietf.org>
List-Help: <mailto:yang-request@ietf.org?subject=help>
List-Subscribe: <http://www.ietf.org/mailman/listinfo/yang>, <mailto:yang-request@ietf.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: yang-bounces@ietf.org
Errors-To: yang-bounces@ietf.org

Hi,

It seems the 'config true/false' clause is missing from
the choice-stmt data definition statement.

Without it, there is no way to declare a top-level non-config
choice.  It should be legal to declare a non-config choice nested
within a config node.

Also, 7.17.1, para 2 (config statement) needs to add text that
the 'config' property for the following nodes is hardwired into
the NETCONF architecture:

    rpc/input   --  config true;
                    non-config nodes MUST NOT appear under rpc/input

    rpc/output  --  config false;
                    config nodes MUST NOT appear under rpc/output

    notification -- config false;
                    config nodes MUST NOT appear within a notification

All other nodes follow the rules already defined in this section.

<side-issue>
A top-level RPC method node cannot have config true/false
set, but what about an optional classification field like
(config, exec, monitor, debug, other)?  IMO, this is useful
for operators and access control.
</side-issue>


Andy

_______________________________________________
YANG mailing list
YANG@ietf.org
http://www.ietf.org/mailman/listinfo/yang