Yangdoctors early review of draft-ietf-spring-sr-yang-09

Ladislav Lhotka <lhotka@nic.cz> Wed, 24 October 2018 07:47 UTC

Return-Path: <lhotka@nic.cz>
X-Original-To: ietf@ietf.org
Delivered-To: ietf@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 70FAF130E62; Wed, 24 Oct 2018 00:47:35 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: Ladislav Lhotka <lhotka@nic.cz>
To: yang-doctors@ietf.org
Cc: spring@ietf.org, ietf@ietf.org, draft-ietf-spring-sr-yang.all@ietf.org
Subject: Yangdoctors early review of draft-ietf-spring-sr-yang-09
X-Test-IDTracker: no
X-IETF-IDTracker: 6.87.1
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <154036725541.6830.14208644072725478318@ietfa.amsl.com>
Date: Wed, 24 Oct 2018 00:47:35 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf/AWv1RRoKW2135StchSqbxA3vJEk>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.29
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Oct 2018 07:47:35 -0000

Reviewer: Ladislav Lhotka
Review result: On the Right Track

*** General comments

    This document contains two YANG modules:
    ietf-segment-routing-common and ietf-segment-routing. The latter
    augments ietf-routing with data necessary for configuring and
    operating segment routing, but also provides groupings that define
    data to be used in segment routing extensions of routing protocols
    and interfaces. This design makes it relatively easy to define
    such IGP extensions.

**** Naming 

     - My suggestion is to review the identifiers defined in the
       modules so as to adhere more closely to the identifier naming
       conventions in sec. 4.3.1 of RFC 8407. It is subjective to
       decide which acronyms are well-known but, in my view, "srgb",
       "srlb" and "msd" do not fall into this category. For example,
       "msd" can be changed to to "max-sid-depth" (both as a data node
       and a feature).
     - On the other hand, the "-cfg" suffix in the names of several
       groupings should be removed - according to RFC 8407,
       identifiers should not carry semantics. (And perhaps the
       same groupings can also be used for state data?)

**** Revisions

     The YANG modules contain revision dates of all development
     versions. Although RFC 8407 doesn't require to do so, I think it
     can be useful for the developmnent and testing of the
     modules. However, these development revisions should be removed
     before publishing the RFC (maybe the authors intend to do so).

**** References

     Normative References should include the RFCs defining YANG
     modules that are imported by the segment-routing modules: 6991,
     7223, 8294 and 8349.

*** Specific comments

    - Containers "connected-prefix-sid-map" and "local-prefix-sid"
      have subcontainers "ipv4" and "ipv6" that only differ in the
      type of the "prefix" leaf. An alternative solution can be to
      change the outer containers into lists with "address-family" as
      the key. Did the authors discuss this option?

    - The text uses the terms "states" and "operational states" in
      several places. The plural form looks weird to me.