Re: [netmod] Next steps for draft-ietf-netmod-rfc8407bis

Christian Hopps <chopps@chopps.org> Thu, 29 February 2024 08:54 UTC

Return-Path: <chopps@chopps.org>
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 7840AC15107A for <netmod@ietfa.amsl.com>; Thu, 29 Feb 2024 00:54:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_PERMERROR=0.01] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lAKmkQbFb2RW for <netmod@ietfa.amsl.com>; Thu, 29 Feb 2024 00:54:20 -0800 (PST)
Received: from smtp.chopps.org (smtp.chopps.org [54.88.81.56]) by ietfa.amsl.com (Postfix) with ESMTP id AF694C151062 for <netmod@ietf.org>; Thu, 29 Feb 2024 00:54:20 -0800 (PST)
Received: from ja.int.chopps.org.chopps.org (172-222-091-149.res.spectrum.com [172.222.91.149]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by smtp.chopps.org (Postfix) with ESMTPSA id 1A1E07D0A2; Thu, 29 Feb 2024 08:54:20 +0000 (UTC)
References: <170911084467.36197.13909323798182085568@ietfa.amsl.com> <DU2PR02MB10160D87F56348C8C6C3D947188582@DU2PR02MB10160.eurprd02.prod.outlook.com> <0E99F975-162C-4703-93F7-B9EE82D4186B@tail-f.com>
User-agent: mu4e 1.8.14; emacs 28.2
From: Christian Hopps <chopps@chopps.org>
To: Jan Lindblad <janl@tail-f.com>
Cc: mohamed.boucadair@orange.com, netmod@ietf.org
Date: Thu, 29 Feb 2024 03:46:47 -0500
In-reply-to: <0E99F975-162C-4703-93F7-B9EE82D4186B@tail-f.com>
Message-ID: <m2zfvjzm4k.fsf@ja.int.chopps.org>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha512"; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/b_1QjjicCj8sqXdce4-4oIWsdpU>
Subject: Re: [netmod] Next steps for draft-ietf-netmod-rfc8407bis
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
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: Thu, 29 Feb 2024 08:54:21 -0000

Jan Lindblad <janl@tail-f.com> writes:

> Med, author team,
>
> Thank you for taking the time to get this work done, and well done!
> This is one of those fundamental bricks that saves time and improves
> quality for the entire YANG community.
>
> I read the -09 version and like what I see. I have a couple of minor
> suggestions you might consider.
>
> + In section 3.4 about tree diagrams, the section text is already
> advocating intermixing smaller tree snippets with explanations (which
> is great), but I wish we could say that
> tree diagrams of entire modules SHOULD NOT be included. Just a waste
> of forest and attention span, imho.

The full tree diagram is literally the thing I read first and most in almost every YANG RFC/draft. Please do not get rid of it.

> + In section 4.11.5 regarding booleans, it is said that booleans can
> take values true and false. This is true in mathematics :-) but in
> YANG a boolean leaf can additionally take the "value" of "not set".
> Actually, "not set" is a possibility for leafs in general, unless it
> is declared mandatory true, or has a default. In my experience, one
> of the most common YANG modeling issues is when people model a leaf
> foo, which isn't mandatory, has no default and the description
> statement does not say what happens if the leaf is not set. In many
> cases, there is a sort of natural meaning, but with booleans leafs in
> particular, the absence of the leaf is typically highly ambiguous. I
> think this hole merits a recommendation clause in the I-D.

I think this general idea of the author having a clear understanding of not-set for all non-mandatory nodes, and that it is communicated to the user if need be, is a really good one.

Though for the particular case of booleans I would think not-set just implies false. Maybe that should be codified if it isn't already. :)

Thanks,
Chris.

> Best Regards,
> /jan