Re: [YANG] import statement
Ladislav Lhotka <lhotka@cesnet.cz> Sat, 03 May 2008 18:04 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 6744A3A6CF8; Sat, 3 May 2008 11:04:40 -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 38CAC3A685D for <yang@core3.amsl.com>; Sat, 3 May 2008 11:04:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.085
X-Spam-Level:
X-Spam-Status: No, score=-1.085 tagged_above=-999 required=5 tests=[AWL=0.165, 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 HQYEs0inu0+p for <yang@core3.amsl.com>; Sat, 3 May 2008 11:04:32 -0700 (PDT)
Received: from office2.cesnet.cz (office2.cesnet.cz [195.113.144.244]) by core3.amsl.com (Postfix) with ESMTP id 459A628C2A4 for <yang@ietf.org>; Sat, 3 May 2008 11:03:37 -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 388E2D800CA for <yang@ietf.org>; Sat, 3 May 2008 20:03:39 +0200 (CEST)
From: Ladislav Lhotka <lhotka@cesnet.cz>
To: yang@ietf.org
In-Reply-To: <20080503165826.GA25223@elstar.local>
References: <1209812833.14759.12.camel@missotis> <20080503120217.GA24899@elstar.local> <1209823237.14759.24.camel@missotis> <20080503143205.GA24972@elstar.local> <1209828663.14759.40.camel@missotis> <20080503165826.GA25223@elstar.local>
Organization: CESNET
Date: Sat, 03 May 2008 20:03:39 +0200
Message-Id: <1209837819.14759.48.camel@missotis>
Mime-Version: 1.0
X-Mailer: Evolution 2.12.1
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="utf-8"
Content-Transfer-Encoding: base64
Sender: yang-bounces@ietf.org
Errors-To: yang-bounces@ietf.org
Juergen Schoenwaelder píše v So 03. 05. 2008 v 18:58 +0200: > On Sat, May 03, 2008 at 05:31:03PM +0200, Ladislav Lhotka wrote: > > > > Juergen Schoenwaelder p????e v So 03. 05. 2008 v 16:32 +0200: > > > > > There are also examples. An augment of foo-cont simply sticks nodes > > > into the foo-cont container; there is no new instantiation of > > > foo-cont. > > > > > > > Example on pages 82 and 83 contradicts what you are saying: the augment > > statement in namespace http://example.com/schema/ds0 takes the schema > > subtree defined by "container interfaces" in namespace > > http://example.com/schema/interfaces, augments it and effectively places > > the result at the spot of the augment statement in the > > http://example.com/schema/ds0 namespace. > > I don't see the contradiction. > > augment "/if:interfaces/if:ifEntry" { > when "if:ifType='ds0'"; > leaf ds0ChannelNumber { > type ChannelNumber; > } > } > > This augment introduces a leaf ds0:ds0ChannelNumber that appears under > /if:interfaces/if:ifEntry and this is what the example shows. There > is no new instantiation of /if:interfaces/if:ifEntry. Assume a device that supports the data model as in the XML snippet on page 83. Which of the two namespace URIs will it advertise in the hello message? I assume it is http://example.com/schema/ds0. Where is the <interfaces> block then instantiated if the import statement just makes the identifiers from http://example.com/schema/interfaces accessible and the augment statement doesn't do it? Lada > > /js > -- Ladislav Lhotka, CESNET PGP Key ID: E74E8C0C _______________________________________________ YANG mailing list YANG@ietf.org https://www.ietf.org/mailman/listinfo/yang
- [YANG] import statement Ladislav Lhotka
- Re: [YANG] import statement Juergen Schoenwaelder
- Re: [YANG] import statement Ladislav Lhotka
- Re: [YANG] import statement Juergen Schoenwaelder
- Re: [YANG] import statement Andy Bierman
- Re: [YANG] import statement Ladislav Lhotka
- Re: [YANG] import statement Juergen Schoenwaelder
- Re: [YANG] import statement Andy Bierman
- Re: [YANG] import statement Ladislav Lhotka
- Re: [YANG] import statement Ladislav Lhotka
- Re: [YANG] import statement Martin Bjorklund
- Re: [YANG] import statement Martin Bjorklund
- Re: [YANG] import statement Andy Bierman
- Re: [YANG] import statement Ladislav Lhotka
- Re: [YANG] import statement Andy Bierman
- Re: [YANG] import statement Martin Bjorklund
- Re: [YANG] import statement Ladislav Lhotka
- Re: [YANG] import statement Ladislav Lhotka
- Re: [YANG] import statement Martin Bjorklund
- Re: [YANG] import statement Andy Bierman
- Re: [YANG] import statement Ladislav Lhotka
- Re: [YANG] import statement Romascanu, Dan (Dan)
- Re: [YANG] import statement Martin Bjorklund
- Re: [YANG] import statement David Harrington
- Re: [YANG] import statement Ladislav Lhotka