Re: [YANG] import statement

"Romascanu, Dan (Dan)" <dromasca@avaya.com> Sun, 04 May 2008 10:42 UTC

Return-Path: <yang-bounces@ietf.org>
X-Original-To: yang-archive@optimus.ietf.org
Delivered-To: ietfarch-yang-archive@core3.amsl.com
Received: from core3.amsl.com (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B2D9B3A6997; Sun, 4 May 2008 03:42:57 -0700 (PDT)
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 C21493A6CDE for <yang@core3.amsl.com>; Sun, 4 May 2008 03:42:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.424
X-Spam-Level:
X-Spam-Status: No, score=-2.424 tagged_above=-999 required=5 tests=[AWL=0.175, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YOAaDnKTGvyl for <yang@core3.amsl.com>; Sun, 4 May 2008 03:42:51 -0700 (PDT)
Received: from de307622-de-outbound.net.avaya.com (de307622-de-outbound.net.avaya.com [198.152.71.100]) by core3.amsl.com (Postfix) with ESMTP id EDC8F3A6997 for <yang@ietf.org>; Sun, 4 May 2008 03:42:50 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.27,433,1204520400"; d="scan'208";a="105821434"
Received: from unknown (HELO co300216-co-erhwest.avaya.com) ([198.152.7.5]) by de307622-de-outbound.net.avaya.com with ESMTP; 04 May 2008 06:42:49 -0400
X-IronPort-AV: E=Sophos;i="4.27,433,1204520400"; d="scan'208";a="196827229"
Received: from unknown (HELO 307622ANEX5.global.avaya.com) ([135.64.140.10]) by co300216-co-erhwest-out.avaya.com with ESMTP; 04 May 2008 06:42:48 -0400
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Date: Sun, 04 May 2008 12:42:47 +0200
Message-ID: <EDC652A26FB23C4EB6384A4584434A04BBBD10@307622ANEX5.global.avaya.com>
In-reply-to: <1209812833.14759.12.camel@missotis>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [YANG] import statement
Thread-Index: AcitDdu+r4+DbMCnTra2alZLAaGuCgAxXUuw
References: <1209812833.14759.12.camel@missotis>
From: "Romascanu, Dan (Dan)" <dromasca@avaya.com>
To: Ladislav Lhotka <lhotka@cesnet.cz>, yang <yang@ietf.org>
Subject: Re: [YANG] import statement
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: <https://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: <https://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

Can we please start using netmod@ietf.org when initiating new threads?
This list (yang@ietf.org) will stay open for a few more days to make
sure that all existing threads were exhausted and will be shut down soon
after. 

Thanks and Regards,

Dan


> -----Original Message-----
> From: yang-bounces@ietf.org [mailto:yang-bounces@ietf.org] On 
> Behalf Of Ladislav Lhotka
> Sent: Saturday, May 03, 2008 2:07 PM
> To: yang
> Subject: [YANG] import statement
> 
> Hi,
> 
> I have difficulties in understanding what happens when a 
> module imports another and the latter contains "real" data 
> tree, not just groupings and typedefs. For example:
> 
> module foo {
>   namespace "urn:foo";
>   prefix foo;
>   container foo-cont {
>     leaf foo-leaf {
>       ...
>     }
>   }
> }
> 
> module bar {
>   namespace "urn:bar";
>   prefix bar;
>   import foo {
>     prefix foo;
>   }
>   container bar-cont {
>     leaf bar-leaf {
>       ...
>     }
>   }
> }  
> 
> Is now the data model expressed by bar affected in any way by 
> the fact that it imports foo?
> 
> Thanks, Lada
> 
> --
> Ladislav Lhotka, CESNET
> PGP Key ID: E74E8C0C
> 
> _______________________________________________
> YANG mailing list
> YANG@ietf.org
> https://www.ietf.org/mailman/listinfo/yang
> 
_______________________________________________
YANG mailing list
YANG@ietf.org
https://www.ietf.org/mailman/listinfo/yang