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

Kent Watsen <kent@watsen.net> Thu, 17 September 2020 15:47 UTC

Return-Path: <010001749cbfefbe-a6d2a8e1-b79f-4c4b-8d40-a12a1e14bd48-000000@amazonses.watsen.net>
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 2818D3A0D60 for <yang-doctors@ietfa.amsl.com>; Thu, 17 Sep 2020 08:47:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.906
X-Spam-Level:
X-Spam-Status: No, score=-2.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.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 YAqEbl_AfDmM for <yang-doctors@ietfa.amsl.com>; Thu, 17 Sep 2020 08:47:41 -0700 (PDT)
Received: from a8-83.smtp-out.amazonses.com (a8-83.smtp-out.amazonses.com [54.240.8.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 08EBD3A0D09 for <yang-doctors@ietf.org>; Thu, 17 Sep 2020 08:47:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1600357658; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=rK3o+hjpZ8P1dWnlTreqbvHFb8gArcOIdP1RGQNQ7Qk=; b=PCxRE9zZ+Fc+S6pBUfvYg3HJh9yx7idn3Y7LqOIYC8/K1J2Ou+PvKv2lAcs7cVmH QeyYF9wEEAGvZiR517ASF79oK/WzKGG1sayEkpvaA13sUXGoF3qMyfzx1z43cf/8zW+ LN0Ow09T5yz3zjXsZZdoPbw8Z//CvVJmXbTEHP/8=
From: Kent Watsen <kent@watsen.net>
Message-ID: <010001749cbfefbe-a6d2a8e1-b79f-4c4b-8d40-a12a1e14bd48-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_D858DBA4-3B64-43E8-9D30-D1F11E3857B8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\))
Date: Thu, 17 Sep 2020 15:47:38 +0000
In-Reply-To: <A139C0F3-A398-4F22-8658-822312AFF043@gmail.com>
Cc: "Acee Lindem (acee)" <acee=40cisco.com@dmarc.ietf.org>, YANG Doctors <yang-doctors@ietf.org>
To: Mahesh Jethanandani <mjethanandani@gmail.com>
References: <AE8C544D-75B1-44C5-878F-A6B809B8CC2D@cisco.com> <A139C0F3-A398-4F22-8658-822312AFF043@gmail.com>
X-Mailer: Apple Mail (2.3608.80.23.2.2)
X-SES-Outgoing: 2020.09.17-54.240.8.83
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/I8zT_wBmXEW7-sq3D1aq6YbuM4k>
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 15:47:43 -0000

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