[YANG] import statement

Ladislav Lhotka <lhotka@cesnet.cz> Sat, 03 May 2008 11:07 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 11CAF3A6ADD; Sat, 3 May 2008 04:07:16 -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 B746C3A69FF for <yang@core3.amsl.com>; Sat, 3 May 2008 04:07:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.126
X-Spam-Level:
X-Spam-Status: No, score=-1.126 tagged_above=-999 required=5 tests=[AWL=0.124, BAYES_00=-2.599, HELO_EQ_CZ=0.445, HOST_EQ_CZ=0.904]
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 NMw1KJo9oMu6 for <yang@core3.amsl.com>; Sat, 3 May 2008 04:07:14 -0700 (PDT)
Received: from office2.cesnet.cz (office2.cesnet.cz [195.113.144.244]) by core3.amsl.com (Postfix) with ESMTP id E148F3A67F5 for <yang@ietf.org>; Sat, 3 May 2008 04:07:13 -0700 (PDT)
Received: from [172.29.2.201] (asus-gx.lhotka.cesnet.cz [195.113.161.161]) by office2.cesnet.cz (Postfix) with ESMTP id 18C41D800C0 for <yang@ietf.org>; Sat, 3 May 2008 13:07:14 +0200 (CEST)
From: Ladislav Lhotka <lhotka@cesnet.cz>
To: yang <yang@ietf.org>
Organization: CESNET
Date: Sat, 03 May 2008 13:07:13 +0200
Message-Id: <1209812833.14759.12.camel@missotis>
Mime-Version: 1.0
X-Mailer: Evolution 2.12.1
Subject: [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

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