Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?
Martin Bjorklund <mbj@tail-f.com> Tue, 20 November 2018 07:34 UTC
Return-Path: <mbj@tail-f.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 49A8712870E for <netmod@ietfa.amsl.com>; Mon, 19 Nov 2018 23:34:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 kQs6FteWa0-B for <netmod@ietfa.amsl.com>; Mon, 19 Nov 2018 23:34:02 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 6BE57124408 for <netmod@ietf.org>; Mon, 19 Nov 2018 23:34:02 -0800 (PST)
Received: from localhost (h-39-108.A165.priv.bahnhof.se [213.136.39.108]) by mail.tail-f.com (Postfix) with ESMTPSA id 736F61AE0187; Tue, 20 Nov 2018 08:33:59 +0100 (CET)
Date: Tue, 20 Nov 2018 08:33:59 +0100
Message-Id: <20181120.083359.615984508747950128.mbj@tail-f.com>
To: jason.sterne@nokia.com
Cc: netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <20181119.214622.418972213170057209.mbj@tail-f.com>
References: <VI1PR07MB3981A171F18213B030D289A79BD80@VI1PR07MB3981.eurprd07.prod.outlook.com> <20181119.214622.418972213170057209.mbj@tail-f.com>
X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/RwFxM-hJaWbbJ_67OEyUejPkHFg>
Subject: Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 20 Nov 2018 07:34:04 -0000
Martin Bjorklund <mbj@tail-f.com> wrote: > Hi, > > "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> wrote: > > Hi all, > > > > If we have a YANG model with a leaf: > > > > MODEL VERSION 1: > > container my-model { > > leaf a { type string; } > > } > > > > And then later we produce another version of the model where that leaf > > is placed into a choice construct: > > > > MODEL VERSION 2: > > container my-model { > > choice some-choice { > > case x { > > leaf a { type string; } > > } > > } > > } > > > > Is that considered a non-backwards-compatible change? > > Not accordning to current RFC 7950 rules, since it changes the schema ^^^^^^^^^^^^^^^^^ I meant, "Yes, accordning to current RFC 7950 rules this is not allowed". But I think you got that. /martin > node path (suppose the leaf was a container, and someone had augment > /my-model/a). > > > Does the answer depend on whether the choice contains other cases (or > > other cases that are the default case)? > > No. > > > MODEL VERSION 3: > > container my-model { > > choice some-choice { > > case x { > > leaf a { type string; } > > } > > case y { > > leaf b { type string; } > > } > > } > > } > > > > A client 'foo' using VERSION 1 would still be able to set & read back > > leaf a in the same way as it always did. > > > > But if another client 'bar' (using VERSION 3) sets leaf 'b', then leaf > > 'a' would disappear. That could be surprising to client 'foo' although > > perhaps no more surprising than if another client simply deletes leaf > > 'a' (using VERSION 1). > > > > /martin > > _______________________________________________ > netmod mailing list > netmod@ietf.org > https://www.ietf.org/mailman/listinfo/netmod > >
- Re: [netmod] Adding a pre-existing leaf into a ne… Martin Bjorklund
- [netmod] Adding a pre-existing leaf into a new 'c… Sterne, Jason (Nokia - CA/Ottawa)
- Re: [netmod] Adding a pre-existing leaf into a ne… Sterne, Jason (Nokia - CA/Ottawa)
- Re: [netmod] Adding a pre-existing leaf into a ne… Andy Bierman
- Re: [netmod] Adding a pre-existing leaf into a ne… Martin Bjorklund
- Re: [netmod] Adding a pre-existing leaf into a ne… Sterne, Jason (Nokia - CA/Ottawa)
- Re: [netmod] Adding a pre-existing leaf into a ne… Ladislav Lhotka
- Re: [netmod] Adding a pre-existing leaf into a ne… Martin Bjorklund
- Re: [netmod] Adding a pre-existing leaf into a ne… Martin Bjorklund
- Re: [netmod] Adding a pre-existing leaf into a ne… Andy Bierman
- Re: [netmod] Adding a pre-existing leaf into a ne… Ladislav Lhotka
- Re: [netmod] Adding a pre-existing leaf into a ne… Martin Bjorklund
- Re: [netmod] Adding a pre-existing leaf into a ne… Ladislav Lhotka
- Re: [netmod] Adding a pre-existing leaf into a ne… Ladislav Lhotka
- Re: [netmod] Adding a pre-existing leaf into a ne… Martin Bjorklund
- Re: [netmod] Adding a pre-existing leaf into a ne… Ladislav Lhotka
- Re: [netmod] Adding a pre-existing leaf into a ne… Sterne, Jason (Nokia - CA/Ottawa)
- Re: [netmod] Adding a pre-existing leaf into a ne… Ladislav Lhotka
- Re: [netmod] Adding a pre-existing leaf into a ne… Per Hedeland
- Re: [netmod] Adding a pre-existing leaf into a ne… Andy Bierman
- Re: [netmod] Adding a pre-existing leaf into a ne… Juergen Schoenwaelder
- Re: [netmod] Adding a pre-existing leaf into a ne… Ladislav Lhotka
- Re: [netmod] Adding a pre-existing leaf into a ne… Juergen Schoenwaelder
- Re: [netmod] Adding a pre-existing leaf into a ne… Ladislav Lhotka
- Re: [netmod] Adding a pre-existing leaf into a ne… Martin Bjorklund
- Re: [netmod] Adding a pre-existing leaf into a ne… Ladislav Lhotka
- Re: [netmod] Adding a pre-existing leaf into a ne… Juergen Schoenwaelder
- Re: [netmod] Adding a pre-existing leaf into a ne… Ladislav Lhotka
- Re: [netmod] Adding a pre-existing leaf into a ne… Juergen Schoenwaelder
- Re: [netmod] Adding a pre-existing leaf into a ne… Ladislav Lhotka
- Re: [netmod] Adding a pre-existing leaf into a ne… Robert Wilton
- Re: [netmod] Adding a pre-existing leaf into a ne… Martin Bjorklund
- Re: [netmod] Adding a pre-existing leaf into a ne… Ladislav Lhotka
- Re: [netmod] Adding a pre-existing leaf into a ne… Juergen Schoenwaelder
- Re: [netmod] Adding a pre-existing leaf into a ne… Andy Bierman
- Re: [netmod] Adding a pre-existing leaf into a ne… Juergen Schoenwaelder
- Re: [netmod] Adding a pre-existing leaf into a ne… Andy Bierman
- Re: [netmod] Adding a pre-existing leaf into a ne… Ladislav Lhotka