Re: [yang-doctors] Yangdoctors early review of draft-ietf-mpls-msd-yang-02

Yingzhen Qu <yingzhen.ietf@gmail.com> Tue, 19 December 2023 23:02 UTC

Return-Path: <yingzhen.ietf@gmail.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 035B9C14CF1F; Tue, 19 Dec 2023 15:02:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 Jv76i6hnQtUJ; Tue, 19 Dec 2023 15:02:51 -0800 (PST)
Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 62E28C14F747; Tue, 19 Dec 2023 15:02:48 -0800 (PST)
Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-50e3c6f1c10so3553355e87.1; Tue, 19 Dec 2023 15:02:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703026966; x=1703631766; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AHuM4m18pyw2Pws54v4OheKX7pk/UgppvxG7df3MTvo=; b=D96V2VxDkAVM6IEg2Hv/lJhsWve9ucWCKF6z/PNiVYK7iNfrkkivZWtYX8HJik8GZw IzLlBx0/FVoOJ3V6xBHu8OaRyFXe2HfaI3Ci/C2uWCF/YbyhEg4hLWGWpdh7zXywlMtG inlih5JolcoQBEcfMJ6yIIYwQGzjhaz4dph6CGMQQAKmXov3tDJE/+BcC0vyx8/HuXoA lhahy8dLf0YRgn391HRgJS4PnUm5W/I6apLw0swK2j/U9vNNGOH/4j2VoXRwEff+CouC Y5pvL9mOPyStswt+H9MzHj87+3twu6v1mF+ZB0+bhmwzG/kAQ+f9UPJQQmYqWDWpLTj3 +8Cw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703026966; x=1703631766; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AHuM4m18pyw2Pws54v4OheKX7pk/UgppvxG7df3MTvo=; b=ESF7cqUfEU9XBwCpVEa5dccqGI1+Q7vUzcLhXjjpvAuGFWwnUunF1tGNp+WiOVvSlh I5dvHzl9lintOMf7394duki3RVb6MnlPxny/oMAPLNr67f12AKAUxmInKhvXOcXLcIDy 0WtUZgkW01nROOEm9jp+aOhq12EfcAv9kLdGUXs0RG9o4wNPbVvB9b5Wqs7Dy4bZZtbi 18QjrOF9YFg/myPF++3euO2eLfSwoeSJCiyP/uowujiNxCpLmFR+nyNuc1pzBy2k9OHA hucQ9S9P6tymxFPY3JZFM/jtcAkMlzzQ0MWWpzn35Zvh/3+S5jemhWvp2bK4wMJ701IQ ZemQ==
X-Gm-Message-State: AOJu0YymMGycZakiiQ7jwOTheNY2mvpA5Fd1g/AoohM1g1+5mEdzGaTt CsWgdmc6c54D7Jsj1ytLypzzjZsdm6kjIg2Mdlz+I5VDuA==
X-Google-Smtp-Source: AGHT+IGUkLIt/I6LSDsb6BTVZaEX1BFKxXXdbHbk5zJEFC7px4Eqa1gc/0FVqeNq8Xzhj2JKym87PkybtlXqx4r4WEQ=
X-Received: by 2002:a2e:361a:0:b0:2cc:67c6:3592 with SMTP id d26-20020a2e361a000000b002cc67c63592mr1110896lja.183.1703026965772; Tue, 19 Dec 2023 15:02:45 -0800 (PST)
MIME-Version: 1.0
References: <170300112976.56537.3631529033903574839@ietfa.amsl.com>
In-Reply-To: <170300112976.56537.3631529033903574839@ietfa.amsl.com>
From: Yingzhen Qu <yingzhen.ietf@gmail.com>
Date: Tue, 19 Dec 2023 15:02:34 -0800
Message-ID: <CABY-gOMdJvT10EHUkMKEvhveUekLt47cRVkaCKXRQxO+cxtYsQ@mail.gmail.com>
To: Jan Lindblad <janl@tail-f.com>
Cc: yang-doctors@ietf.org, draft-ietf-mpls-msd-yang.all@ietf.org, mpls@ietf.org
Content-Type: multipart/alternative; boundary="000000000000567f34060ce4dd7b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/rK-6QWHQaicXxNYnOqrhu3caAa4>
Subject: Re: [yang-doctors] Yangdoctors early review of draft-ietf-mpls-msd-yang-02
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.39
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: Tue, 19 Dec 2023 23:02:56 -0000

Hi Jan,

Thanks for the review and comments. I've uploaded version -03 to address
your comments. Please see my answers below inline.

Thanks,
Yingzhen


On Tue, Dec 19, 2023 at 7:52 AM Jan Lindblad via Datatracker <
noreply@ietf.org> wrote:

> Reviewer: Jan Lindblad
> Review result: Ready with Issues
>
> Hi all,
>
> This is my YANG-Doctor Last-Call review of draft-ietf-mpls-msd-yang-02.
> This
> draft contains two small and focused modules. They seem to be in pretty
> good
> shape, but I do have a couple of issues and nits to discuss.
>
> Issue #1: Keyless list
>
> The list node-msds is keyless. This is legal for config false lists, but
> that
> something is legal does not necessarily make it a good idea. Is there a
> strong
> reason for not having a key here? Keyless lists are less efficient, as all
> clients will have to read the entire list every time. Unless there is a
> strong
> reason not to, I would suggest adding a key here.
>
> Maybe the msd-type could function as a key for this list, or will there
> ever be
> multiple msd entries of the same msd type? Multiple entries of the same
> msd-type are currently allowed, but I'm not sure what the interpretation of
> such a server response should be.
>
>          list node-msds {
>            leaf msd-type { ... }
>            leaf msd-value { ... }
>          }
>
[Yingzhen]: I added a key of "msd-type".

>
> Issue #2: Optional values
>
> Both msd-type and msd-value are modeled as optional. They have no default
> and
> there is no description text explaining what it means if either of them is
> missing. Maybe they should be made mandatory, as I expect the list entry is
> pretty uninformative unless both are present?
>

[Yingzhen]: It's meaningless if there is a msd-value without a msd-type.
Theoretically
they should always show up as a pair. These are read-only data, so I don't
think any
control is needed.

>
> Nit #3: Repetition
>
> The msd-type and msd-value leaf definitions are repeated twice in the
> module
> (except for a one letter difference in one description that probably is not
> intentional). I would suggest placing them in a grouping that is
> referenced in
> each list to avoid the repetition.
>
>            leaf msd-type {
>              type identityref {
>                base iana-msd-types:msd-base-mpls;
>              }
>              description
>                "MSD type";
>            }
>            leaf msd-value {
>              type uint8;
>              description
>                "MSD value, in the range of 0-255.";
>            }
>
> [Yingzhen]: I added a grouping for this as suggested.


> Nit #4: Indentation
>
> The indentation is a bit off. I'd suggest running the module through a
> pretty
> printer, like pyang -f yang.
>
> [Yingzhen]: Done. Please let me know if you still see issues.


> Nit #5: Typo in reference
>
> The revision statement reference has some typos.
>
>      revision 2023-10-22 {
>        description
>          "Initial Version";
>        reference
>          "RFC XXXX: YA YANG Data Model for MPLS MSD..";
>      }
>
> [Yingzhen]: fixed.


> Nit #6: Read only data and get-config
>
> In section 5, security considerations, there is a paragraph:
>
>    Some of the readable data nodes in the modules may be considered
>    sensitive or vulnerable in some network environments.  It is thus
>    important to control read access (e.g., via get, get-config, or
>    notification) to these data nodes.
>
> Since the data in these modules is read-only, it will never show up in
> get-config, so listing that operation may be somewhat superfluous.
>

[Yingzhen]:  The text is from the template. I'm not sure whether we should
change it. If so,
we can simply remove "(e.g., via get, get-config, or notification) ".

>
> Best Regards,
> /jan
>
>
>
>