Re: [netmod] Does the YANG "status" statement inherit from its parent node?

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Tue, 20 December 2016 20:15 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
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 3919E129A28 for <netmod@ietfa.amsl.com>; Tue, 20 Dec 2016 12:15:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.3
X-Spam-Level:
X-Spam-Status: No, score=-7.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-3.1] 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 Mb3xEDRs-cIJ for <netmod@ietfa.amsl.com>; Tue, 20 Dec 2016 12:15:30 -0800 (PST)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de [212.201.44.18]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0AA6D1295E1 for <netmod@ietf.org>; Tue, 20 Dec 2016 12:15:30 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id 3B9837EF; Tue, 20 Dec 2016 21:15:28 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.205]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id 9y1a7YDBd4Bp; Tue, 20 Dec 2016 21:15:26 +0100 (CET)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas3.jacobs-university.de (Postfix) with ESMTPS; Tue, 20 Dec 2016 21:15:27 +0100 (CET)
Received: from localhost (demetrius3.jacobs-university.de [212.201.44.48]) by hermes.jacobs-university.de (Postfix) with ESMTP id E55DC20079; Tue, 20 Dec 2016 21:15:27 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius3.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id HPQ7bf2VJaKm; Tue, 20 Dec 2016 21:15:27 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 7A02B20074; Tue, 20 Dec 2016 21:15:27 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 1B2D53DD8028; Tue, 20 Dec 2016 21:15:27 +0100 (CET)
Date: Tue, 20 Dec 2016 21:15:27 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Martin Bjorklund <mbj@tail-f.com>
Message-ID: <20161220201527.GA3897@elstar.local>
Mail-Followup-To: Martin Bjorklund <mbj@tail-f.com>, rwilton@cisco.com, netmod@ietf.org
References: <1db67b1d-36ef-5cc6-425f-7e22de7e80ae@cisco.com> <20161220.210335.1870203216124697421.mbj@tail-f.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <20161220.210335.1870203216124697421.mbj@tail-f.com>
User-Agent: Mutt/1.6.0 (2016-04-01)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/DR-ZXFDksIDArx1YLi36EMdxDBg>
Cc: netmod@ietf.org
Subject: Re: [netmod] Does the YANG "status" statement inherit from its parent node?
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
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 Dec 2016 20:15:32 -0000

On Tue, Dec 20, 2016 at 09:03:35PM +0100, Martin Bjorklund wrote:
> 
> However, we could have said that a current node under a deprecated
> node (etc) in the same module is an error, in order to force people
> (through the useage of YANG validators) to detect and fix this.
>

Is it an error or just something that deserves a warning and the
author's attention? I am asking since we also have augmentations and
if I mark a container as deprecated, this will not immediately cause
an module augmenting the containter to get updated, hence I end up
with definitions marked current in a deprecated container. And there
are other situations where definitions may not be of the same status,
i.e., a module (without import by revision) uses a type or grouping
that in later revisions got marked deprecated. I think all of these
status mismatches are things tools should warn about but I am not sure
these are hard errors, in particular for 'deprecated'. Things may lead
to stronger warnings for definitions marked 'obsolete'.

/js

-- 
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/>