Re: [netmod] 'status' statement needed on every node

Andy Bierman <andy@yumaworks.com> Tue, 05 September 2017 18:44 UTC

Return-Path: <andy@yumaworks.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 C06BA132E13 for <netmod@ietfa.amsl.com>; Tue, 5 Sep 2017 11:44:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.com
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 S-i4C45eUXFG for <netmod@ietfa.amsl.com>; Tue, 5 Sep 2017 11:44:32 -0700 (PDT)
Received: from mail-lf0-x233.google.com (mail-lf0-x233.google.com [IPv6:2a00:1450:4010:c07::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 304E8132E07 for <netmod@ietf.org>; Tue, 5 Sep 2017 11:44:32 -0700 (PDT)
Received: by mail-lf0-x233.google.com with SMTP id q132so12781837lfe.5 for <netmod@ietf.org>; Tue, 05 Sep 2017 11:44:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=u9GLvzHWUXBfQMWxEn4dQ280ik/zXVXXFyCCXI9yKck=; b=m+MxU2edyZfYrI51DvYd2WHN9bUkhHR0TvgIFy7z8tebC2Bm0ujlOVbZoENFPaCljy ehUOkaoLxIFc5LlODf5gacpuR50m2Pg9BF0/kU/KveyRHCOqIfsKi5zKWxn2xKIdh5ox 9Ugs+IkcCmzQfqRWiIkk/kX7AGAd8hOC0inbqJ5PKfxBQq/2kJioNm5K+CfP5F72VhVM D5pJhIZNOkH6kQ/RIxG9Nt7HHj8f6qFZGUbm3sssWLv6CAjv7RMzi5On46sYGBs9BH4M xku3YXfiQi+4VYH28lg4TaWiIrSlO14eqCc8cWk2Omi+ZC3i1QlrSgmfvPMwg2fKHLSB cRJg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=u9GLvzHWUXBfQMWxEn4dQ280ik/zXVXXFyCCXI9yKck=; b=o3q4h4PZBKxY/t6REj2VcgOFNBWG8sisylMI+Qikn7qXd/5lHm7EoET0Tx558wHM6Z 3Ewc/MR7CMu27fEAiFkrUMpw4ELoLzA+5U59vvJvYnP3ibrVFk9IVMdGE4kZA+RMIGxW vAw5Vk+EsgS0cjYWP5gD3iP19Huzc23fgTxgMXOi2n6/f5g0n2bxpn/9j6EX5MR96lI0 6y7F6nhPD+7DjgRsmbBXEkfp/ylzoTpYjGEsTnPc3Hm1k8uRe2R2WM9hPkYvNi3xa4Rn 1ce/aMzsd23PW3A1sfytjFyP2K23MU9QK29/YFPQ0KbhtbtLmXfxHteylCzD1Z0E1BU6 G31g==
X-Gm-Message-State: AHPjjUgyl6FiLP5cglq7BS+0h3kY9jlL7kTVjOSclZbS2/r8h/CLp9eq E7DgW19YER5t/AWYMmVA7i76CXMKhasy
X-Google-Smtp-Source: ADKCNb4miprSASOzC4w2i4STKYnjavtwXpGywNsBcsdLi2PThx0IZJ3s7A8OZWJ5rm6gJGenN8vtW/J4vyoWbcsjfW8=
X-Received: by 10.46.86.220 with SMTP id k89mr5002lje.65.1504637070439; Tue, 05 Sep 2017 11:44:30 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.46.68.216 with HTTP; Tue, 5 Sep 2017 11:44:29 -0700 (PDT)
In-Reply-To: <20170905181444.tdfliar5zk4hixsd@elstar.local>
References: <13F2175A-C913-4173-BE2A-50C668C08FF6@juniper.net> <20170905181444.tdfliar5zk4hixsd@elstar.local>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 05 Sep 2017 11:44:29 -0700
Message-ID: <CABCOCHS59CLdCHxZHvJr7LSRXH4m1iVpf6GctchYCZjVrLuvGw@mail.gmail.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Kent Watsen <kwatsen@juniper.net>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c1a1914198d8c0558759e23"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/0uNHAXsQumZzLU4jyPXEqgiVCMk>
Subject: Re: [netmod] 'status' statement needed on every node
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: Tue, 05 Sep 2017 18:44:35 -0000

On Tue, Sep 5, 2017 at 11:14 AM, Juergen Schoenwaelder <
j.schoenwaelder@jacobs-university.de> wrote:

> On Tue, Sep 05, 2017 at 05:40:23PM +0000, Kent Watsen wrote:
> >
> >
> > With all the deprecating of "-state" trees going on these days,
> > the 'status' statement is getting lots of use.
> >
> > I understand that some feel that the status statement needs to be
> > placed on every node, since it is not inherited.  This sentiment
> > likely stems from RFC 7950 stating "If no status is specified,
> > the default is current" and, of course, it not stating that status
> > is inherited.
> >
> > I appreciate that this is just following rules, but it seems
> > excessive and I don't understand how any other interpretation
> > makes sense.
>
> There is in my view no problem worth to be solved and today's YANG
> rules are clear.
>
> <outing>
>   I am a big fan of definitions that can be copied and moved around
>   without changing meaning just because they appear in a different
>   context. I would even prefer to have config true/false not inherited
>   down the schema tree but rather have no config statement default to
>   config true and everything config false needs an explicit
>   statement. Side effect free cut and paste is a feature that is for
>   me worth the price of a few more explicit statements. Even a human
>   reader can skip over these statements very quickly.
> </outing>
>
>

Blind cut-and-paste is not a good design goal.

I still don't know what it means to define hierarchical data and say the
parent is deprecated but not the descendant nodes.

This is rather non-intuitive, as is the idea that all descendant nodes need
to
be manually edited (status is not inherited).  It also means the objects
expanded from
groupings cannot ever be changed (clearly a bug in YANG).

We have not seen these issues yet because this is the first time 'status
deprecated'
is being used.



> > Also I question how it's supposed to work for a grouping that
> > is used once in a deprecated tree and again in a not deprecated
> > tree.  What if the grouping is defined in another RFC?  Would
> > we need to copy the grouping into the current module in order
> > to set status deprecated on all of its nodes?
>
> It would be nice to simply use refine but unfortunately section 7.13.2
> of RFC 7950 does not allow to refine the status (which in my view is
> an oversight but the RFC says what it says).
>
> /js
>
>
Andy


> --
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>