Re: [YANG] how to signal revision?

Martin Bjorklund <mbj@tail-f.com> Wed, 16 January 2008 11:34 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 1JF6Xh-0003Yh-C9; Wed, 16 Jan 2008 06:34:49 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JF6Xe-0003YE-Kr for yang-confirm+ok@megatron.ietf.org; Wed, 16 Jan 2008 06:34:46 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JF6Xe-0003Y3-7j for yang@ietf.org; Wed, 16 Jan 2008 06:34:46 -0500
Received: from [213.180.94.162] (helo=mail.tail-f.com) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1JF6Xc-0003Cq-Gh for yang@ietf.org; Wed, 16 Jan 2008 06:34:46 -0500
Received: from localhost (138.162.241.83.in-addr.dgcsystems.net [83.241.162.138]) by mail.tail-f.com (Postfix) with ESMTP id 33A781B80C3; Wed, 16 Jan 2008 12:34:43 +0100 (CET)
Date: Wed, 16 Jan 2008 12:35:49 +0100 (CET)
Message-Id: <20080116.123549.140000433.mbj@tail-f.com>
To: lhotka@cesnet.cz
Subject: Re: [YANG] how to signal revision?
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <1200478981.7029.27.camel@missotis>
References: <1200478981.7029.27.camel@missotis>
X-Mailer: Mew version 5.1.51 on Emacs 22.1 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 8abaac9e10c826e8252866cbe6766464
Cc: 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

Ladislav Lhotka <lhotka@cesnet.cz> wrote:
> Hi,
> 
> how can the server and client make sure they are both using the same
> revision of a given data model? Capabilities in NETCONF hello messages
> use URIs but YANG draft says in sec. 5.4 that different revisions of the
> same module should have the same namespace.

The idea is that we use the uri query argument to indicate the
revision number (see 7.1.3):

   <capability>http://acme.example.com/system?2007-06-09</capability>

(I realize that the text should be clarified; probably move the
discussion about the capability from 7.1.3 to 5.4).

> Hmm, what could be the compatible changes, apart from correcting typos
> in descriptions etc.? I guess even changing a single default value
> renders the data model incompatible.

Yes, changing defaults is incompatible.  If you do that, you have to
change the namespace.

But there are many common compatible changes you can do, the simplest
is to add new optional data.

Note that the text describing this is not yet written in the draft.



/martin



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