[YANG] Choice and uses statement

Li Yan <liyan_77@huawei.com> Fri, 18 January 2008 10:36 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 1JFoaN-0004bm-1w; Fri, 18 Jan 2008 05:36:31 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JFoaK-0004Zv-QE for yang-confirm+ok@megatron.ietf.org; Fri, 18 Jan 2008 05:36:28 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JFoaK-0004Zn-G7 for yang@ietf.org; Fri, 18 Jan 2008 05:36:28 -0500
Received: from szxga02-in.huawei.com ([61.144.161.54]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1JFoaH-0004NG-85 for yang@ietf.org; Fri, 18 Jan 2008 05:36:28 -0500
Received: from huawei.com (szxga02-in [172.24.2.6]) by szxga02-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0JUU00DTO56LJJ@szxga02-in.huawei.com> for yang@ietf.org; Fri, 18 Jan 2008 18:30:21 +0800 (CST)
Received: from huawei.com ([172.24.1.24]) by szxga02-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0JUU000HH56JOG@szxga02-in.huawei.com> for yang@ietf.org; Fri, 18 Jan 2008 18:30:21 +0800 (CST)
Received: from l48181 ([10.111.12.236]) by szxml04-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTPA id <0JUU009HI56IF5@szxml04-in.huawei.com> for yang@ietf.org; Fri, 18 Jan 2008 18:30:19 +0800 (CST)
Date: Fri, 18 Jan 2008 18:30:18 +0800
From: Li Yan <liyan_77@huawei.com>
To: 'yang' <yang@ietf.org>
Message-id: <000b01c859bd$1f4fe5c0$ec0c6f0a@china.huawei.com>
MIME-version: 1.0
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-Mailer: Microsoft Office Outlook 11
Thread-index: AchZvR8G6/OMzhQxR7KspjSzXEozHg==
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 962517628a679322096a16b4fad0d0cd
Subject: [YANG] Choice and uses statement
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>
Content-Type: multipart/mixed; boundary="===============1675020415=="
Errors-To: yang-bounces@ietf.org

Hi,

Why the "uses" statement is not able to reference the "choice" definition?
If it can, the "choice" definition would be allowed to be reused.

I noticed that the "choice" statement can be contained immediately in the
"module" and "submodule" statement. I wonder how to make use of this
"choice" definition?

 

Yan

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