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

Andy Bierman <andy@yumaworks.com> Thu, 17 September 2020 16:22 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 951FE3A0E15 for <yang-doctors@ietfa.amsl.com>; Thu, 17 Sep 2020 09:22:08 -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 1TuirwsySFPh for <yang-doctors@ietfa.amsl.com>; Thu, 17 Sep 2020 09:22:06 -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 2069F3A0DF9 for <yang-doctors@ietf.org>; Thu, 17 Sep 2020 09:21:59 -0700 (PDT)
Received: by mail-lf1-x132.google.com with SMTP id y17so2823709lfa.8 for <yang-doctors@ietf.org>; Thu, 17 Sep 2020 09:21:59 -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; bh=ad36/plBmI+T4eczia35+SIrrw0XDPXRdIGg1kh8V0U=; b=VGzh0ntnVen4bwGwNps5A9feeGrvaEV4rKv2wV+JEn3fVGtARXac1HHgQAdpcdf+jZ Q93e4Gt5IFjQagqVZ0v4OhFwSkQQOHmky3urLdDyz9mnl5ia38Cz8MBGCu/HPu55x7D9 TgTvXzytqu+awISpy3pvKXMzJmPhVol2uKJ9qV2BKSdrmNaE+V8S28cqbZi5utiYZ4jF 99xvfmpjrOfez3VApUWv2eCY7lpNlAVltMfsBBdN9aLRrcBOHw9RO193n7ba5nqqdbJn sxErrH1YH1vSbo69X/rP7DOgqUGMpCNCtiMEMVpTuaqyD1OCvUJjHG6TopVyXgNJX5fG 0sZw==
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; bh=ad36/plBmI+T4eczia35+SIrrw0XDPXRdIGg1kh8V0U=; b=Tivp771WQ3SdDhfokli88ZWO6Gk6Az/FagM1Q9MB6LMdpaXys3GkyiH7jMdhCBZ6jy 6/HotVuwJnLOL03ByYAp50NwwoLcb6+uaGQGHg8DPtFKhAhqoaZnPLEw4RqTQB943uN9 N/u5GWQJD+Ra3Oj1y5R28yxL7Wd9YniOBSLndudO63q2tMJzlVuc/+VDqBGqq8KIt4o1 98Xg2GaH+cGr6Van04CPKUKofCiMDTr7Z1HbWnuDe6JYI2xOEKcJy4lb5f/7L9VE+Xk5 YE7fADzteXsJhXjXosl6eMtiFEkCMQjqLGxV5RJE5z7kitY+Egk49zzEp3AQAnUsEPih mvmQ==
X-Gm-Message-State: AOAM530NolO4y781Jzq2/dZCTSjcc9H42x8l7bX8Rrvkh8EniYthPJ51 ozGdSL4CxG22FiiDZyG6MyYED7CNtlwLtzF6qmF35g==
X-Google-Smtp-Source: ABdhPJwZ8dZtptiTk+ey1BT8eWcxsHAJDT+Coi7gC0jPpZCDMYCQrfiqj4O4GmSUT/xDRioq53UAFNiB9Ugwkx9Q51s=
X-Received: by 2002:ac2:51aa:: with SMTP id f10mr9249330lfk.451.1600359717281; Thu, 17 Sep 2020 09:21:57 -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> <20200917160858.tefrbxdo27jiikz7@anna.jacobs.jacobs-university.de>
In-Reply-To: <20200917160858.tefrbxdo27jiikz7@anna.jacobs.jacobs-university.de>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 17 Sep 2020 09:21:45 -0700
Message-ID: <CABCOCHRXfnmJJaibJ3buAVY0yq3snX10bvjPZPXbTWutYqPNiQ@mail.gmail.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Kent Watsen <kent@watsen.net>, 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="000000000000763d5905af84c848"
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/aWkCTPlGbz4fF0gGIV9Xdz224n8>
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:22:15 -0000

On Thu, Sep 17, 2020 at 9:09 AM Juergen Schoenwaelder <
j.schoenwaelder@jacobs-university.de> wrote:

> Quoting RFC 8174 (BCP 14):
>
>    o  These words can be used as defined here, but using them is not
>       required.  Specifically, normative text does not require the use
>       of these key words.  They are used for clarity and consistency
>       when that is what's wanted, but a lot of normative text does not
>       use them and is still normative.
>
>

The decision criteria for using 2119 keywords is not different for plain
text vs. YANG module description-stmts.
I tend to agree with Kent that they should (or is it SHOULD :-) be used in
YANG modules.



> /js
>
>
Andy


> On Thu, Sep 17, 2020 at 03:47:38PM +0000, Kent Watsen 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 <
> 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 <mailto: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 <mailto:yang-doctors@ietf.org>
> > >> https://www.ietf.org/mailman/listinfo/yang-doctors <
> https://www.ietf.org/mailman/listinfo/yang-doctors>
> > > Mahesh Jethanandani
> > > mjethanandani@gmail.com <mailto: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
>
>
> --
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
>
> _______________________________________________
> yang-doctors mailing list
> yang-doctors@ietf.org
> https://www.ietf.org/mailman/listinfo/yang-doctors
>