Re: [netmod] Y60 - coexistence with YANG 1.0

Martin Bjorklund <mbj@tail-f.com> Mon, 14 September 2015 13:19 UTC

Return-Path: <mbj@tail-f.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 42AEA1B3EC8 for <netmod@ietfa.amsl.com>; Mon, 14 Sep 2015 06:19:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level:
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GEeeNwPi4-b6 for <netmod@ietfa.amsl.com>; Mon, 14 Sep 2015 06:19:10 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id E0DC51B4121 for <netmod@ietf.org>; Mon, 14 Sep 2015 06:19:09 -0700 (PDT)
Received: from localhost (unknown [213.136.39.104]) by mail.tail-f.com (Postfix) with ESMTPSA id C43101AE0492 for <netmod@ietf.org>; Mon, 14 Sep 2015 15:19:07 +0200 (CEST)
Date: Mon, 14 Sep 2015 15:19:14 +0200
Message-Id: <20150914.151914.2175290465760083078.mbj@tail-f.com>
To: netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <20150910.125522.373110083925215588.mbj@tail-f.com>
References: <20150910.125522.373110083925215588.mbj@tail-f.com>
X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/aYGd5U5hX4FiUVqWkyTN0XgQZFo>
Subject: Re: [netmod] Y60 - coexistence with YANG 1.0
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 14 Sep 2015 13:19:11 -0000

Hi,

Martin Bjorklund <mbj@tail-f.com> wrote:
> Hi,
> 
> I think we agreed that is ok for a YANG 1.1 module to import a YANG
> 1.0 module.
> 
> But should it also be ok for a 1.0 module to import a 1.1 module?
> 
> If we make this illegal, we might run into problems.  For example,
> ietf-ip imports ietf-interfaces.  Suppose we update ietf-interfaces
> and the new version use YANG 1.1.  Is it ok for a server to implement
> the 1.0 version of ietf-ip and 1.1 version of ietf-interfaces?  If the
> answer is no, it means that we either have to update all modules to
> 1.1 more or less at the same time (including vendor models!), or we
> keep existing modules on 1.0 "forever".

I suggest we add this text:

-------------------

* Coexistence with YANG version 1

A YANG version 1.1 module MUST NOT include a YANG version 1 submodule,
and vice versa.

A YANG version 1 module or submodule MUST NOT import a YANG version
1.1 module by revision.

A YANG version 1.1 module or submodule MAY import a YANG version
1 module by revision.

A YANG version 1.1 module or submodule MAY import a YANG version 1
module without revision, and vice versa.  This rule exists in order to
allow implementations of existing YANG version 1 modules together with
YANG version 1.1 modules.  Without this rule, updating a single module
to YANG version 1.1 would have a cascading effect on modules that
import it, requiring all of them to also be updated to YANG version
1.1, and so on.


/martin