Re: [netmod] Comment on draft-clacla-netmod-yang-model-update-02

Ladislav Lhotka <lhotka@nic.cz> Thu, 16 November 2017 02:06 UTC

Return-Path: <lhotka@nic.cz>
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 38BC6120227 for <netmod@ietfa.amsl.com>; Wed, 15 Nov 2017 18:06:57 -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] 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 XNDaYsRfSFdL for <netmod@ietfa.amsl.com>; Wed, 15 Nov 2017 18:06:55 -0800 (PST)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 07E85127867 for <netmod@ietf.org>; Wed, 15 Nov 2017 18:06:55 -0800 (PST)
Received: by trail.lhotka.name (Postfix, from userid 109) id E337018215DC; Thu, 16 Nov 2017 03:05:30 +0100 (CET)
Received: from localhost (dhcp-9083.meeting.ietf.org [31.133.144.131]) by trail.lhotka.name (Postfix) with ESMTPSA id B952C1820F76 for <netmod@ietf.org>; Thu, 16 Nov 2017 03:05:28 +0100 (CET)
From: Ladislav Lhotka <lhotka@nic.cz>
To: netmod@ietf.org
Mail-Followup-To: netmod@ietf.org
Date: Thu, 16 Nov 2017 10:07:56 +0800
Message-ID: <87375f9ds3.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/THgST3QkijIoQklzXdpeQ6Zva30>
Subject: Re: [netmod] Comment on draft-clacla-netmod-yang-model-update-02
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 16 Nov 2017 02:06:57 -0000

Balazs Lengyel <balazs.lengyel@ericsson.com> writes:

> On 2017-11-15 21:20, Martin Bjorklund wrote:
>
>  Ladislav Lhotka <lhotka@nic.cz> wrote:
>
>  On Wed, 2017-11-15 at 12:17 +0100, Martin Bjorklund wrote:
>
>  Balazs Lengyel <balazs.lengyel@ericsson.com> wrote:
>
>  The server MAY implement obsoleted nodes or MAY NOT. This may
>  or may
> not  is not good enough as a contract for the management client.  My
> problem is that the current solution is just not good enough. IMHO we
> need to change it.
>
>
> Note that if a server implements version 1 of a module, and then the
> module doesn't change, but the server in the next sw version drops
> support for the module, the client will also be unhappy.  We (the
> IETF) can't have rules for these kinds of things.
>
>
> If the server drops support for a module, then that module has to disappear from
> YANG library, so it is a priori known that it happened. With deprecated/obsolete
> nodes, a server may drop their support without any notice, within the same
> module&revision. 
>
>
> I agree that *that* is a problem, but that's not what Balazs asked about.
>
>
> /martin
>
> BALAZS: Actually this exactly one of my problems. See other letter for
> my 3 problems. This is one cause of 2)

Thank you, Balazs, I was getting confused. ;-)

>
>  
>
>  new stuff with a new name, although that might not be the common
> practice.  Which is a good thing, as I believe it is sometimes better
> to correct existing definitions then to replace them.
>
>
> But you still want to require servers to implement even obsolete
> nodes?
>
>
> I think with semver support there will be no need for the "status" statement -
> the nodes just get removed and version number bumped.
>
> Lada
>
> BALAZS: You still need at leaast deprecated: my proposal
> o  "deprecated" schema nodes MUST still work as defined by the YANG module. 
>        The deprecated status serves only as a a warning that the schema node 
>        will be removed or obsoleted in the future."

But is this really necessary? As long as the new (incompatible) version
doesn't get pulled in automatically, implementors needn't care too
much. And if they decide to upgrade to the new version, they have to
check the differences anyway - as you said, they may not be in the
schema.

Lada

> -- 
> Balazs Lengyel                       Ericsson Hungary Ltd.
> Senior Specialist
> Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com 

-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67
-------------------- End of forwarded message --------------------

-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67