Re: [netmod] Deviations and augmentations
Martin Bjorklund <mbj@tail-f.com> Mon, 12 November 2018 16:33 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 A9290130DF2 for <netmod@ietfa.amsl.com>; Mon, 12 Nov 2018 08:33:54 -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 hvWSUbaX6puL for <netmod@ietfa.amsl.com>; Mon, 12 Nov 2018 08:33:53 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 213E112F1AC for <netmod@ietf.org>; Mon, 12 Nov 2018 08:33:53 -0800 (PST)
Received: from localhost (unknown [173.38.220.61]) by mail.tail-f.com (Postfix) with ESMTPSA id 454511AE0290; Mon, 12 Nov 2018 17:33:52 +0100 (CET)
Date: Mon, 12 Nov 2018 17:33:51 +0100
Message-Id: <20181112.173351.1984161388756642220.mbj@tail-f.com>
To: rwilton@cisco.com
Cc: netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <a8c912c8-a7a5-1852-d053-10f0f11076e8@cisco.com>
References: <a8c912c8-a7a5-1852-d053-10f0f11076e8@cisco.com>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/0nzRWPIZ0L3PEVMGu2PY6AEd6Og>
Subject: Re: [netmod] Deviations and augmentations
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: Mon, 12 Nov 2018 16:33:55 -0000
Robert Wilton <rwilton@cisco.com> wrote: > In the Thursday Netmod meeting, it was interesting to hear Rob Shakir > describe how deviations and augmentations are used in OpenConfig to > add functionality into an older YANG model where the semver rules > prevent the version number from being incremented. > > Further, I think that someone (Martin?) stated on the audio bridge > that this was an intended/allowed behavior for deviations. I said that using augmentations (not deviations) was one idea we originally had for solving the "branching problem". I think that this works for OC b/c they don't branch their modules. Hence I think it is important that we decide if branching is a requirement or not. /martin > This surprised me, because I thought that RFC 7950 was quite explicit > that this is not what deviations are intended for. My reading of RFC > 7950 is that the deviation statement represents the case where the > server *implementation* does not match the *specification*. However, > the versioning issue that we are discussing are bug fixes/changes in > the specification rather than the bug fixes in the implementation. > > Personally, I'm really not keen on using deviations to represent bug > fixes to older YANG models for three reasons: > > (i) It is changing the meaning of deviation. It is much cleaner to > keep the meaning of deviation statements as they are defined today, > and not conflate their semantics. > (ii) A different mechanism is used to put a bug fix into an older > branch rather than in the head of the development. > (iii) For clients to track the lifecycle of modules they would not > only need to know the module version number but would also need to > find and track all associated deviation modules. This seems > significantly more complex for clients than the modified semver that > was proposed. > > --- > > I think that has also been some suggestion that augmentations (or > duplicate YANG modules with their major version number changed) can be > used to make bug fixes in a completely backwards compatible way. > However, I still don't understand a robust scheme of how this works. > > --- > > Finally, there were some comments about using augmentation modules for > enhancements. This is fine, where appropriate (e.g. a non trivial > number of data nodes are being added as an enhancement) then a > separate module may be the right way to go. But here, I presume that > the new functionality will always be tracked by that separate module. > If that functionality folds back into the original module at some > point in the future, then obviously a non backwards compatible version > change is being forced on to the client, along with additional work on > the server as well. > > I think that there are also many cases where the number of data nodes > being added via an enhancement is small compared to the size of the > module being updated. In this case I believe that it better to add > these data nodes into the module itself, perhaps predicated under > if-feature if appropriate. > > Thanks, > Rob > > > _______________________________________________ > netmod mailing list > netmod@ietf.org > https://www.ietf.org/mailman/listinfo/netmod
- [netmod] Deviations and augmentations Robert Wilton
- Re: [netmod] Deviations and augmentations Martin Bjorklund
- Re: [netmod] Deviations and augmentations Andy Bierman
- Re: [netmod] Deviations and augmentations Robert Wilton
- Re: [netmod] Deviations and augmentations Ebben Aries
- Re: [netmod] Deviations and augmentations Balázs Lengyel
- Re: [netmod] Deviations and augmentations Robert Wilton
- Re: [netmod] Deviations and augmentations Andy Bierman
- Re: [netmod] Deviations and augmentations Robert Wilton
- Re: [netmod] Deviations and augmentations Andy Bierman
- Re: [netmod] Deviations and augmentations Robert Wilton
- Re: [netmod] Deviations and augmentations Andy Bierman
- Re: [netmod] Deviations and augmentations Juergen Schoenwaelder
- Re: [netmod] Deviations and augmentations Robert Wilton
- Re: [netmod] Deviations and augmentations Juergen Schoenwaelder
- Re: [netmod] Deviations and augmentations Andy Bierman
- Re: [netmod] Deviations and augmentations Robert Wilton