Re: [netmod] Use feature to advertise pre-nmda-support {was: WG Last Call: draft-ietf-netmod-rfc7223bis-00 ]

Andy Bierman <andy@yumaworks.com> Fri, 01 December 2017 17:49 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 9BFA9127876 for <netmod@ietfa.amsl.com>; Fri, 1 Dec 2017 09:49:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 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] autolearn=unavailable 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 SAwwvIWjJRGO for <netmod@ietfa.amsl.com>; Fri, 1 Dec 2017 09:49:36 -0800 (PST)
Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com [IPv6:2a00:1450:4010:c07::22f]) (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 01D97127369 for <netmod@ietf.org>; Fri, 1 Dec 2017 09:49:35 -0800 (PST)
Received: by mail-lf0-x22f.google.com with SMTP id j124so12600303lfg.2 for <netmod@ietf.org>; Fri, 01 Dec 2017 09:49:35 -0800 (PST)
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 :cc; bh=1Apk/ZTgvU9QYKb4eTEuWsl56QAxIXxYAv2q2KW74tc=; b=t0faKzyPFXJiZ8aSTQl0WgwSzGJ9pZLbH3JVZcm4+BIpMTvLFrBkOmRVMmWeaBXawc COGsbF7a74oGB18HPiAQ6ZfBmtAqCV7a5Vd9nqXRokHVZpJ8lYZy88+CIWrnSZcSnVGk fzAfiHusPsS5AoOrAFJdZwAADOxtzF72OohyVnEz8A9aSVDZNLS8qGiYL5hgEVXRbK6R mcNSqoKeKMzv5mCVfI1mDpvqjz1776q27LkCwAu/rAhzTVwsnm5388USzdgITBV3VNkM wykjEae82RTOY7zKEC4253oycBBKT09FfaOoHri+KY+0qCFEF2ZkPlcWIlSUdwawNLW7 AX7g==
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:cc; bh=1Apk/ZTgvU9QYKb4eTEuWsl56QAxIXxYAv2q2KW74tc=; b=KBouwHVvII1N/Y0clx9g5bexj7a8C3dB/cik2DF7J0OY69TVNWM5g1HBtMQu359Par Jvc9yLM+H69i4J/YGkmPsi5HJNesImlLTJg7eQ9dP2ISW3j6/pMorwz2gvBuqVn7LG5O uz8cpMYRLoZvlGuzAE/nLuHnkbClNBj8vRnckt2WzGsCskuwc1DsWnRcklsUC5b0Mb46 jE5m0zL0mIEtZHETABTghcuAOUFCL/jLpbxjy+flLKwztFv3h+1WRVvOZvnPnjqUGy9+ JVSYNmk2LQvYRrd4rsHdhCUdWtJzgI9O6ewp9AirjO2Qo87XxYgheD93eIYkdkabQeLK DTIQ==
X-Gm-Message-State: AJaThX6RFFzOQwpohkHzewvTJnhBLlpxlQZ4Ydc7YGxOXFxTDcisidFo un+zl26MM/Xb4LbzwjkfoAVqvxGmtkNr5OQiay2h7g==
X-Google-Smtp-Source: AGs4zMYqp5AePHdOgI/71ZgZv5wmRsue8mTwztJA7QoEajKkrKRvdlzpa8Bqy1FI8fDdCrwmL3kLbnPEKMmYmcsX+eg=
X-Received: by 10.46.57.10 with SMTP id g10mr5090910lja.77.1512150574211; Fri, 01 Dec 2017 09:49:34 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.33.81 with HTTP; Fri, 1 Dec 2017 09:49:33 -0800 (PST)
In-Reply-To: <926aa462-7e5a-350f-bc56-46b9ea2ac6b3@ericsson.com>
References: <10B5698A-BC7B-432E-A931-9069FA7BB03C@juniper.net> <926aa462-7e5a-350f-bc56-46b9ea2ac6b3@ericsson.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Fri, 01 Dec 2017 09:49:33 -0800
Message-ID: <CABCOCHR-HnawFuTwZ2wo2GNUQOfc=EL4E8NFoOzdrj7niqN5xA@mail.gmail.com>
To: Balazs Lengyel <balazs.lengyel@ericsson.com>
Cc: Kent Watsen <kwatsen@juniper.net>, "netmod@ietf.org" <netmod@ietf.org>, "netmod-chairs@ietf.org" <netmod-chairs@ietf.org>
Content-Type: multipart/alternative; boundary="089e082f5ce4d2b8ed055f4afdcc"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/fE0sc3zdtzvRg51Xs0fF1YJS6z8>
Subject: Re: [netmod] Use feature to advertise pre-nmda-support {was: WG Last Call: draft-ietf-netmod-rfc7223bis-00 ]
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: Fri, 01 Dec 2017 17:49:40 -0000

On Fri, Dec 1, 2017 at 3:37 AM, Balazs Lengyel <balazs.lengyel@ericsson.com>
wrote:

> Hello,
>
> https://tools.ietf.org/html/rfc7950#section-7.21.2
>
>    o  "deprecated" indicates an obsolete definition, but it permits
>       new/continued implementation in order to foster interoperability
>       with older/existing implementations.
>
> This means that a node that is deprecated MAY or MAY NOT be implemented.
> YANG is considered an interface contract,  however "maybe implemented" is
> unusable in a contract.
>

I agree that the status-stmt is mostly worthless the way it is defined in
RFC 7950.
The good news is that the text in RFC 2578 (which it is based on) is much
worse,
so we are getting better over time.

The word "permits", rather than "requires" indicates this is a MAY, not
even a SHOULD,
and certain not a MUST.

YANG already has a statement defined for indicating such optional support:
> the feature statement.
> Deprecated works as if there would be an if-feature statement on each
> deprecated schema node
> where the server does not advertise whether the feature is supported of
> not. Why is it not advertised?
>
> I would like to propose to use a feature here. This would allow the
> client to understand if the container interfaces-state is implemented or
> not.
>
> module ietf-interfaces {
>    feature pre-nmda-support {
>        description "The feature indicates that
>           schema parts representing state information
>           are deprecated but are still implemented."
>    }
>
>    container interfaces {...}
>
>    container interfaces-state {
>       if-feature pre-nmda-support ;
>       status deprecated;
>       ...
>  }
> }
>
>

This proposal seems useful. Maybe it could be generalized,
because the issue is status=deprecated, not NMDA.



>  regards Balazs
>
>

Andy



> On 2017-11-28 20:29, Kent Watsen wrote:
>
> All,
>
> This starts a two-week working group last call on
> draft-ietf-netmod-rfc7223bis-00.
>
> Please recall that this update's intention is to
> modify the YANG module to be in line with the NMDA
> guidelines [1].  Reviewing the diff between the two
> drafts [2] should reveal just this.
>
> The working group last call ends on December 12.
> Please send your comments to the netmod mailing list.
>
> Positive comments, e.g., "I've reviewed this document
> and believe it is ready for publication", are welcome!
> This is useful and important, even from authors.
>
> [1] https://tools.ietf.org/html/draft-dsdt-nmda-guidelines-01
> [2] https://tools.ietf.org/rfcdiff?url2=draft-ietf-netmod-rfc7223bis-00.txt
>
> Thank you,
> Netmod Chairs
>
>
> _______________________________________________
> netmod mailing listnetmod@ietf.orghttps://www.ietf.org/mailman/listinfo/netmod
>
>
> --
> Balazs Lengyel                       Ericsson Hungary Ltd.
> Senior Specialist
> Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>
>