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

Ladislav Lhotka <lhotka@nic.cz> Thu, 16 November 2017 06:48 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 D31AD129541 for <netmod@ietfa.amsl.com>; Wed, 15 Nov 2017 22:48:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7
X-Spam-Level:
X-Spam-Status: No, score=-7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
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 gU_LAO8OY6nb for <netmod@ietfa.amsl.com>; Wed, 15 Nov 2017 22:48:27 -0800 (PST)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7F2BE1294E8 for <netmod@ietf.org>; Wed, 15 Nov 2017 22:48:27 -0800 (PST)
Received: from birdie (unknown [IPv6:2001:67c:1232:144:1a4f:a84b:2bfd:c611]) by mail.nic.cz (Postfix) with ESMTPSA id 3F2DC645BF for <netmod@ietf.org>; Thu, 16 Nov 2017 07:48:25 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1510814905; bh=N5jBDyJBUoIejsWCbYkA7ega9T/o1U8PJcFpkowbAl0=; h=From:To:Date; b=LyY9uYI8v3lIRKV0lTzN2SBopp9q/xOKy8cQkjCH2qnStFKvNzYNbPywMXhsr1BV+ C8KUZsOWUPM+Y5z/n4v4PPMCBJnTAiJZLqrtxBBLnAL/vEAoQR0O1p9sxKkClCmlBj gbbAN1eAtZmamJDq58LSqY7DcIvWd/EzZF7QReGk=
Message-ID: <1510814973.7785.14.camel@nic.cz>
From: Ladislav Lhotka <lhotka@nic.cz>
To: NETMOD WG <netmod@ietf.org>
Date: Thu, 16 Nov 2017 14:49:33 +0800
In-Reply-To: <c6db50dd-27ef-ac8f-a71d-3c134363cc9f@ericsson.com>
References: <55fcf67e-6e27-4bd9-cdd6-62f3fbe11bff@ericsson.com> <20171115.121716.454716475078719607.mbj@tail-f.com> <1510751195.21877.25.camel@nic.cz> <20171115.142017.1071562845381546650.mbj@tail-f.com> <7f716912-3dcb-93cd-ed8e-9a2a168e91a7@ericsson.com> <8760ab9dyb.fsf@nic.cz> <c6db50dd-27ef-ac8f-a71d-3c134363cc9f@ericsson.com>
Organization: CZ.NIC
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.26.2
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.99.2 at mail
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/IIBIPcO1gryBqH-Kjx2JebDGPYM>
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 06:48:30 -0000

On Thu, 2017-11-16 at 12:59 +0800, Balazs Lengyel wrote:
> Hello Lada,
> Yes it is necessary. Just have a look at how Java uses it.  It is formulated: 
> XXX deprecated, use YYY instead.

But the data, at the end of the day, have to correspond to what is implemented
in the device. So even if an IETF WG decides to roll out a shiny new version of
module X, a vendor may still want to keep the old version, possibly forever, and
then the deprecated status information from the old version of X may be false
alarm. It would seem more appropriate for the vendor to do this kind of
signalling before a new release is coming.

On the other hand, it would IMO be too much to require that a node can be
removed only after being deprecated.

Lada

> We want to give client OSS implementers an advance warning that XXX will be
> removed, they better start planing to use YYY instead. This revision is still
> compatible, it still supports XXX, but the next one won't. This way for OSS
> the migration from XXX to YYY is less painful.
> regards Balazs
> 
> On 2017-11-16 10:04, Ladislav Lhotka wrote:
> > > 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
> > 
> 
>  
-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67