Re: [YANG] Questions about submodule

Balazs Lengyel <balazs.lengyel@ericsson.com> Fri, 18 January 2008 10:15 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 1JFoG0-0001fB-9D; Fri, 18 Jan 2008 05:15:28 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JFoFz-0001f6-AU for yang-confirm+ok@megatron.ietf.org; Fri, 18 Jan 2008 05:15:27 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JFoFy-0001ey-Vc for yang@ietf.org; Fri, 18 Jan 2008 05:15:27 -0500
Received: from mailgw4.ericsson.se ([193.180.251.62]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JFoFy-0006t8-C6 for yang@ietf.org; Fri, 18 Jan 2008 05:15:26 -0500
Received: from mailgw4.ericsson.se (unknown [127.0.0.1]) by mailgw4.ericsson.se (Symantec Mail Security) with ESMTP id BE5A320472; Fri, 18 Jan 2008 11:15:25 +0100 (CET)
X-AuditID: c1b4fb3e-ad5edbb0000007e1-ee-47907c3d8588
Received: from esealmw126.eemea.ericsson.se (unknown [153.88.254.123]) by mailgw4.ericsson.se (Symantec Mail Security) with ESMTP id ACDFE203E6; Fri, 18 Jan 2008 11:15:25 +0100 (CET)
Received: from esealmw128.eemea.ericsson.se ([153.88.254.172]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Fri, 18 Jan 2008 11:15:25 +0100
Received: from [159.107.197.224] ([159.107.197.224]) by esealmw128.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Fri, 18 Jan 2008 11:15:25 +0100
Message-ID: <47907C3C.1000309@ericsson.com>
Date: Fri, 18 Jan 2008 11:15:24 +0100
From: Balazs Lengyel <balazs.lengyel@ericsson.com>
User-Agent: Thunderbird 2.0.0.4 (X11/20070604)
MIME-Version: 1.0
To: Li Yan <liyan_77@huawei.com>
Subject: Re: [YANG] Questions about submodule
References: <000001c859b6$b0626ee0$ec0c6f0a@china.huawei.com>
In-Reply-To: <000001c859b6$b0626ee0$ec0c6f0a@china.huawei.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
X-OriginalArrivalTime: 18 Jan 2008 10:15:25.0070 (UTC) FILETIME=[0A8B0AE0:01C859BB]
X-Brightmail-Tracker: AAAAAA==
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 769a46790fb42fbb0b0cc700c82f7081
Cc: 'yang' <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

Hello Yan,
See below!

Li Yan wrote:
> Hi,
> 
> o Sec 7.2.1 tells me that the "submodule" statement can contain the 
> “include” statement.
> 
> Does it imply that a submodule can be split further into multiple 
> submodules, and the separation is recursive?
[BALAZS]: Yes you can move parts of a sub-module into sub-sub-module. Currently there is no 
limit on the depth of such splitting. For big projects/module this is handy. I don't exactly 
understand what you mean by recursive.
> 
> I think splitting submodule would complicate the relationship between 
> submodules, and is not useful.
> 
>  
> 
> o A typo question
> 
> The following examples are from sec 7.1.10 and 7.2.3 respectively. I am 
> confused if the module/submodule name should be quoted.
> 
> module acme-system {
> 
>     include acme-types;  //no quotes
> 
> submodule acme-types {
> 
>     belongs-to "acme-system";  //in quotes
> 
[BALAZS]: Quoting is not needed here, but allowed. From the draft:
"If a string contains any whitespace characters, a semicolon (";"), curly braces ("{ }"), or 
comment sequences ("//", "/*", or "*/"), then it MUST be enclosed within double or single quotes."
regards Balazs

-- 
Balazs Lengyel                       Ericsson Hungary Ltd.
TSP System Manager
ECN: 831 7320                        Fax: +36 1 4377792
Tel: +36-1-437-7320     email: Balazs.Lengyel@ericsson.com


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