Re: [YANG] import statement

Martin Bjorklund <mbj@tail-f.com> Sun, 04 May 2008 12:51 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 E26B828C1AE; Sun, 4 May 2008 05:51:18 -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 B53B028C1AE for <yang@core3.amsl.com>; Sun, 4 May 2008 05:51:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.431
X-Spam-Level:
X-Spam-Status: No, score=-0.431 tagged_above=-999 required=5 tests=[AWL=0.064, BAYES_00=-2.599, FH_RELAY_NODNS=1.451, HELO_MISMATCH_COM=0.553, RDNS_NONE=0.1]
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 0zhb9C-fQKCw for <yang@core3.amsl.com>; Sun, 4 May 2008 05:51:16 -0700 (PDT)
Received: from mail.tail-f.com (unknown [213.180.94.162]) by core3.amsl.com (Postfix) with ESMTP id BE5C028C17F for <yang@ietf.org>; Sun, 4 May 2008 05:51:16 -0700 (PDT)
Received: from localhost (c213-100-166-13.swipnet.se [213.100.166.13]) by mail.tail-f.com (Postfix) with ESMTP id E6C741B80C7; Sun, 4 May 2008 14:51:16 +0200 (CEST)
Date: Sun, 04 May 2008 14:51:09 +0200
Message-Id: <20080504.145109.235507432.mbj@tail-f.com>
To: lhotka@cesnet.cz
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <1209884706.15926.15.camel@missotis>
References: <1209849048.14759.97.camel@missotis> <20080503.232124.70324721.mbj@tail-f.com> <1209884706.15926.15.camel@missotis>
X-Mailer: Mew version 5.2.52 on Emacs 22.1 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Cc: 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="utf-8"
Content-Transfer-Encoding: base64
Sender: yang-bounces@ietf.org
Errors-To: yang-bounces@ietf.org

Ladislav Lhotka <lhotka@cesnet.cz> wrote:
> 
> Martin Bjorklund píše v So 03. 05. 2008 v 23:21 +0200:
> 
> > 
> > This is more an effect of how uses work than how augment works.
> 
> Yes and no - in this case augment makes very little sense without the
> corresponding use statement. Effectively, the semantics of the two cases
> are:
> 
> 1. Reuse a foreign grouping in the local module, with optional 
>    modifications.
> 
> 2. Modify a schema tree (non-grouping) node in the foreign model.
> 
> Is it right that with 1 the device normally wouldn't advertise the
> imported URI along with the local URI in hello?

Yes.

> In case 2 it has to
> since the absolute form of augment has otherwise no effect.

Yes.


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