[mpls] Yangdoctors last call review of draft-ietf-mpls-msd-yang-05
Jan Lindblad via Datatracker <noreply@ietf.org> Tue, 28 May 2024 14:00 UTC
Return-Path: <noreply@ietf.org>
X-Original-To: mpls@ietf.org
Delivered-To: mpls@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id A39AEC180B4C; Tue, 28 May 2024 07:00:30 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: Jan Lindblad via Datatracker <noreply@ietf.org>
To: yang-doctors@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 12.13.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <171690483065.41857.12285021065441747282@ietfa.amsl.com>
Date: Tue, 28 May 2024 07:00:30 -0700
Message-ID-Hash: 2FQSQXVR3AWKVOOTISX3FSM3MIDGTGCU
X-Message-ID-Hash: 2FQSQXVR3AWKVOOTISX3FSM3MIDGTGCU
X-MailFrom: noreply@ietf.org
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-mpls.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: draft-ietf-mpls-msd-yang.all@ietf.org, last-call@ietf.org, mpls@ietf.org
X-Mailman-Version: 3.3.9rc4
Reply-To: Jan Lindblad <jlindbla@cisco.com>
Subject: [mpls] Yangdoctors last call review of draft-ietf-mpls-msd-yang-05
List-Id: Multi-Protocol Label Switching WG <mpls.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/mpls/CjzGWTMLi0uylAcItlOAO2V9y7Y>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mpls>
List-Help: <mailto:mpls-request@ietf.org?subject=help>
List-Owner: <mailto:mpls-owner@ietf.org>
List-Post: <mailto:mpls@ietf.org>
List-Subscribe: <mailto:mpls-join@ietf.org>
List-Unsubscribe: <mailto:mpls-leave@ietf.org>
Reviewer: Jan Lindblad
Review result: Ready with Nits
Hi all,
This is my YANG-Doctor Last-Call review of draft-ietf-mpls-msd-yang-05. I
previously reviewed the -02 version. This draft contains two small and focused
modules. They were in pretty good shape already in -02, and the few nits I had
then have all been fixed. Still, I did notice a couple of nits to look at.
Nit #1: Tree diagram not updated
Section 3 of the draft contains this YANG tree:
module: ietf-mpls-msd
augment /rt:routing/mpls:mpls:
+--ro node-msd
+--ro node-msds* [msd-type]
+--ro msd-type? identityref
+--ro msd-value? uint8
augment /rt:routing/mpls:mpls/mpls:interfaces/mpls:interface:
+--ro link-msd
+--ro link-msds* [msd-type]
+--ro msd-type? identityref
+--ro msd-value? uint8
The msd-type and msd-value leafs are shown with a "?"-suffix, indicating that
they are optional. They were back in -02, but as I advised, they have been made
mandatory in -05. Great. Just need to update the tree diagram to reflect the
new situation (regenerate the tree diagram).
Nit #2: Plural container, singular list
As can be seen in the above tree diagram, there is a container "node-msd" with
a list "node-msds" inside, and similarly for "link-msd" and "link-msds". This
matches the YANG container+list convention very well, except the plural form is
normally on the outer/container level and the singular is on the list.
Even if this makes no functional difference, for the sake of the principle of
least surprise, I would suggest renaming the containers and lists as follows:
container node-msds {
config false;
description
"Maximum SID Depth (MSD) of a node.";
list node-msd {
container link-msds {
config false;
description
"Maximum SID Depth (MSD) of an interface.";
list link-msd {
Best Regards,
/jan
- [mpls] Yangdoctors last call review of draft-ietf… Jan Lindblad via Datatracker
- [mpls] Re: Yangdoctors last call review of draft-… Yingzhen Qu
- [mpls] Re: Yangdoctors last call review of draft-… Jan Lindblad (jlindbla)