Re: [yang-doctors] Normative Language in YANG descriptions

Andy Bierman <andy@yumaworks.com> Thu, 17 September 2020 16:00 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 24EE03A0C20 for <yang-doctors@ietfa.amsl.com>; Thu, 17 Sep 2020 09:00:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.887
X-Spam-Level:
X-Spam-Status: No, score=-1.887 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01, 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 BI9wjpm58ach for <yang-doctors@ietfa.amsl.com>; Thu, 17 Sep 2020 09:00:17 -0700 (PDT)
Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (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 63F143A0A7D for <yang-doctors@ietf.org>; Thu, 17 Sep 2020 09:00:17 -0700 (PDT)
Received: by mail-lf1-x132.google.com with SMTP id u8so2764123lff.1 for <yang-doctors@ietf.org>; Thu, 17 Sep 2020 09:00:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I7gzhCNXgrFy4djhTFWHGJ4FKeqC1g61Sh8ixJCAvJ8=; b=dC7Ph38xe2w9oQT3rNMsyreJBGsuaGd3w91vY6fVjZlyVPNtzLwg/LvC23u8WJ9f9q lVikiVj/+JW3Kccc+HwkUGFU/50zwQDLbyOVL80EGelW6sd+8HO7aqsH9eLrpGweclWS /bmpJLzyIAg+NGpRwRSXKJWquAbkE/Dt2n7FGB4hjX/v8WQVIhRm7wAphGtLYLQuuUeY /YRW+BfwIdstSoveYMwGeBMeSWTNWU0YYazZOFdmnqhoqVrXC8gr0ScOPmZQnSOtjuW5 lySekH+W3Mh8JE6xltRTNhhzdZbtu8bQvQLlmHoR0AgOtiDeo8ybxCSdAPj5YUHN7tCC 0qPQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=I7gzhCNXgrFy4djhTFWHGJ4FKeqC1g61Sh8ixJCAvJ8=; b=c+hIDB5/hvQY21rAMSFf01k2BawhURMESKp1ksswFDVxk7Cq2waKvS23SA+YOhIhP4 OnRTbwxyASbVlM6m5y/EgvJjrAN0tzg5JkD+who+TBkuWPpKl/wU7la7phlk0b16a+aC 5VclO8mtewrtkV0n2OSYczHRPAuqFjDQ+oOkN9l5bPI6EPpZ61trWKVLALp2gRsi4DNR JO9Go94TvHPsYtUXCSw69omW+RD1jQ8+wh2JqwLA/dDKTEJJvufKPjEO6uVgeydhriRO Hi6Yv829sMOYIFqsDj4yKkh0Api4lJGGpBrcSSE37Exeh+k/h4aMr67aPBBEpJkND/oY ViQA==
X-Gm-Message-State: AOAM532CjtK93w40B05sDsdRuk2Hpa+pdGtmtAfwfT2oCJfGCAzMF7p+ 9prduX17nasTXS3dw1wt9ekyQ6ZzhPImBJD/tukxwQ==
X-Google-Smtp-Source: ABdhPJzMJyr6/9INEtO/esUb75VGwauV9cDFUf15XszQmaMDHgl3SExH+/cLu2hLWS7x5HTCN6osbkInNxT1tdb6H/s=
X-Received: by 2002:a19:cb96:: with SMTP id b144mr10755891lfg.143.1600358415313; Thu, 17 Sep 2020 09:00:15 -0700 (PDT)
MIME-Version: 1.0
References: <AE8C544D-75B1-44C5-878F-A6B809B8CC2D@cisco.com> <A139C0F3-A398-4F22-8658-822312AFF043@gmail.com> <010001749cbfefbe-a6d2a8e1-b79f-4c4b-8d40-a12a1e14bd48-000000@email.amazonses.com>
In-Reply-To: <010001749cbfefbe-a6d2a8e1-b79f-4c4b-8d40-a12a1e14bd48-000000@email.amazonses.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 17 Sep 2020 09:00:04 -0700
Message-ID: <CABCOCHTjaV_q_V2XAuZtm58_LNg15Cdf1aNcE3v844eWJ8Ktgw@mail.gmail.com>
To: Kent Watsen <kent@watsen.net>
Cc: Mahesh Jethanandani <mjethanandani@gmail.com>, YANG Doctors <yang-doctors@ietf.org>, "Acee Lindem (acee)" <acee=40cisco.com@dmarc.ietf.org>
Content-Type: multipart/alternative; boundary="000000000000dbc35f05af847a3a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/nkHhZGXtRuuaJColb7erJZDcOmw>
Subject: Re: [yang-doctors] Normative Language in YANG descriptions
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 17 Sep 2020 16:00:19 -0000

Hi,

I think all YANG module text is normative, unless it is a special example
module.
This has been an issue forever (starting with MIBs). How much normative
text to put
in the text sections vs. the module itself?  The worst outcome is the
"partial rewrite"
where there is normative text in multiple places and it doesn't quite align.


Andy


On Thu, Sep 17, 2020 at 8:47 AM Kent Watsen <kent@watsen.net> wrote:

> I use 2119 language in *all* my YANG modules because I want the YANG
> module to be the most-normative part of the draft (the single source of
> truth), with the other normative sections in the draft containing little to
> no duplicative text.  Thus most, if not all, of the semantics are captured
> in the YANG description statements.
>
> To do this, I put the 2119 boiler template into the YANG module’s
> top-level description statement, so the module is understandable even in a
> standalone context, after being stripped from the final RFC.  For instance,
> see https://tools.ietf.org/html/rfc8572#section-6.3.
>
> Personally, I think all RFCs used to publish YANG modules should be
> written using 2119 language this way.
>
> Kent
>
>
>
> On Sep 17, 2020, at 1:05 AM, Mahesh Jethanandani <mjethanandani@gmail.com>
> wrote:
>
> +1.
>
> On Sep 16, 2020, at 4:53 AM, Acee Lindem (acee) <
> acee=40cisco.com@dmarc.ietf.org> wrote:
>
> All,
>
> I just received a comment on validation in a description statement for
> ietf-routing-policy. The comment was more of a question as whether “should”
> should be “SHOULD”. I looked at our existing published models and we have
> not been doing this consistently. Perhaps we SHOULD when it is normative
> validation.
>
> Thanks,
> Acee
> _______________________________________________
> yang-doctors mailing list
> yang-doctors@ietf.org
> https://www.ietf.org/mailman/listinfo/yang-doctors
>
>
> Mahesh Jethanandani
> mjethanandani@gmail.com
>
>
>
>
>
> _______________________________________________
> yang-doctors mailing list
> yang-doctors@ietf.org
> https://www.ietf.org/mailman/listinfo/yang-doctors
>
>
> _______________________________________________
> yang-doctors mailing list
> yang-doctors@ietf.org
> https://www.ietf.org/mailman/listinfo/yang-doctors
>