[yang-doctors] Yangdoctors early review of draft-ietf-teas-yang-l3-te-topo-16

Per Andersson via Datatracker <noreply@ietf.org> Tue, 07 May 2024 06:58 UTC

Return-Path: <noreply@ietf.org>
X-Original-To: yang-doctors@ietf.org
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 8CC95C14F75F; Mon, 6 May 2024 23:58:16 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: Per Andersson via Datatracker <noreply@ietf.org>
To: yang-doctors@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 12.11.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <171506509656.7789.5029240374114826004@ietfa.amsl.com>
Date: Mon, 06 May 2024 23:58:16 -0700
Message-ID-Hash: 2FYBMCFFHJ64TXVYRMRUN25DNOBSCODF
X-Message-ID-Hash: 2FYBMCFFHJ64TXVYRMRUN25DNOBSCODF
X-MailFrom: noreply@ietf.org
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-yang-doctors.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: draft-ietf-teas-yang-l3-te-topo.all@ietf.org, teas@ietf.org
X-Mailman-Version: 3.3.9rc4
Reply-To: Per Andersson <per.ietf@ionio.se>
Subject: [yang-doctors] Yangdoctors early review of draft-ietf-teas-yang-l3-te-topo-16
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/EHdViBZhDht1at3KGIDiwj58jig>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Owner: <mailto:yang-doctors-owner@ietf.org>
List-Post: <mailto:yang-doctors@ietf.org>
List-Subscribe: <mailto:yang-doctors-join@ietf.org>
List-Unsubscribe: <mailto:yang-doctors-leave@ietf.org>

Reviewer: Per Andersson
Review result: Ready with Issues

Hi!

This is my YANG-Doctor Last-Call review of
draft-ietf-teas-yang-l3-te-topo-16. This draft contains four modules
which seem to be in good shape but still have a few issues and nits.


Summary:

This document defines a YANG data model for layer 3 traffic engineering
topologies.


Comments:

o The YANG tree diagram listing is in better shape since the last
  review. However, there is still a lot of repetition and long YANG tree
  diagrams in Sections 4.2.2, 4.2.3, 4.2.4, 4.2.5, 4.2.6, 4.2.7, and
  4.2.11. Suggest to summarize the additions and further explain the
  augments. For instance explain the different augments once, in a cut
  out, and the add where it is augmented. The sections would also
  benefit from some pruning and more explanation of the presented YANG
  tree diagram.

o Checking YANG models

  Using pyang --ietf --lint yields several of the following errors

      ietf-te-topology-packet@2024-03-02.yang:416: error: grouping
      "te-packet-path-bandwidth" not found in module
      "ietf-te-packet-types"

      ietf-te-topology-packet-state@2024-03-02.yang:345: error: grouping
      "te-packet-path-bandwidth" not found in module
      "ietf-te-packet-types"

  It was not possible to see what grouping this might have been in
  ietf-te-packet-types. There is no "te-packet-path-bandwidth" grouping
  in any revision of ietf-te-packet-types.yang.

  Using yanglint yields no additional errors or warnings.

o Checking example instance data

  Using yanglint the following error is raised when validating the
  example data in Appendix B

      libyang err : Grouping "te-packet-types:te-packet-link-bandwidth"
      referenced by a uses statement not found. (Path
      "/ietf-te-topology-packet:{augment='/nw:networks/nw:network/\
      nw:node/tet:te/tet:te-node-attributes/\
      tet:connectivity-matrices/tet:path-constraints/tet:te-bandwidth/\
      tet:technology'}/ietf-te-topology-packet:packet/\
      {uses='te-packet-types:te-packet-link-bandwidth'}".)


Nits:

o The previous review asked for consistency regarding "description" and
  "presence" statements. There are still some inconsistensies, e.g.
  variating starting on the same or following line after the keyword.
  Please ensure that the style is consistent throughout the models.
  Suggest that all "description" and "presence" strings start on the
  line after the keyword because that style is mostly used throughout
  the models.

o The when and augment expressions' arguments are sometimes misaligned
  if they line wrap and are concatenated. Suggest aligning the
  subsequent concatenated strings with the first one.

o Extra space before "supported." in the module description for
  ietf-te-topology-packet-state.yang.

o In Section 4.2, the sentence needs to add article (the) before base:

      This is an augmentation to base TE topology model.


--
Per