[yang-doctors] Yangdoctors early review of draft-ietf-lisp-yang-11

Christian Hopps via Datatracker <noreply@ietf.org> Fri, 26 July 2019 01:42 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 08AEC12025F; Thu, 25 Jul 2019 18:42:39 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: Christian Hopps via Datatracker <noreply@ietf.org>
To: <yang-doctors@ietf.org>
Cc: lisp@ietf.org, draft-ietf-lisp-yang.all@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 6.99.1
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: Christian Hopps <chopps@chopps.org>
Message-ID: <156410535896.17429.16464147399003551309@ietfa.amsl.com>
Date: Thu, 25 Jul 2019 18:42:39 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/5jSA8lycy8zj-LqiO1QDZKZIOrA>
Subject: [yang-doctors] Yangdoctors early review of draft-ietf-lisp-yang-11
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
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: Fri, 26 Jul 2019 01:42:39 -0000

Reviewer: Christian Hopps
Review result: On the Right Track


* draft-ietf-lisp-yang-11 early yang-doctor review.

** Minor

   - Enumerations are not extensible and so should only be used when all the
     values are known and will not need to be added to. So, auth-algorithm-type
     should use identities and not an enumeration, as it almost for sure will
     need to be added to in the future. An example of this is present in RFC8177
     (keychains) which has identities derived from a base identity
     "crypto-algorithm".

   - "type string" is a very inclusive UTF-8 string, along with all legal UTF-8
     characters it includes tabs, spaces, newlines and carriage returns. This
     may not be what you actually want for things like "eid-id"s or
     "auth-key-id". You probably want to use a more restricted typedef variation
     of string (using a pattern to restrict its values).

   - Node name consistency, you probably should be consistent with the name for
     nodes of the same type. For example type "eid-id", sometimes the name is
     "id" other times "eid-id" is used.

   - TTL is limited to minute units. This may be overly restrictive. Couldn't
     there be some use (perhaps not common) e.g., perhaps when debugging, or in
     future versions of the protocol where seconds granularity might be useful?
     Changing these nodes later is non-backwards compatible and thus very
     painful to do.

** geo coordinates

   - It might be worth considering using the grouping in the geo-location module
     for specifying coordinates. The only drawback here would be if geo-location
     causes the publication to be delayed b/c lisp-yang finishes first. In any
     case the description for the coordinate nodes should echo more of the info from
     the LCAF RFC, in particular that the coordinate system used is WGS-84).

   - I found a lisp geo draft and it seems to specify a bit more detail than is
     covered in this module (e.g., the kilometer bit, radius, uncertainty). Not
     sure if that would be appropriate to add or not.

** Nits

  - Invalid example XML for LISP Map-Server.. The config namespace should not be
    "http://tail-f.com/ns/config/1.0".

  - Correct module vs model language.
    - OLD: <t>This module is the base LISP module that is augmented in multiple
    models to represent various LISP device roles.</t>
    - NEW: <t>This is the base LISP module.  It is further augmented by the
    LISP device role specific modules defined elsewhere in this document.</t>

  - Yang comments need some grammar fixes.
    - e.g., 'This augments *the* LISP decices list ...'

  - I got some warning from validation tools, but I'm not sure if they are
   valid, please double check though.

    - Pyang nits:
      #+begin_src bash
        for f in *.yang; do echo $f; \
        pyang --ietf --max-line-length 69 $f ; \
        done
        ietf-lisp-address-types@2019-02-23.yang
        ietf-lisp-etr@2019-02-23.yang
        ietf-lisp-etr@2019-02-23.yang:86: warning: line length 70 exceeds 69 characters
        ietf-lisp-etr@2019-02-23.yang:106: warning: line length 70 exceeds 69 characters
        ietf-lisp-etr@2019-02-23.yang:157: warning: line length 71 exceeds 69 characters
        ietf-lisp-etr@2019-02-23.yang:164: warning: line length 70 exceeds 69 characters
        ietf-lisp-etr@2019-02-23.yang:171: warning: line length 72 exceeds 69 characters
        ietf-lisp-etr@2019-02-23.yang:179: warning: line length 72 exceeds 69 characters
        ietf-lisp-itr@2019-02-23.yang
        ietf-lisp-itr@2019-02-23.yang:125: warning: line length 70 exceeds 69 characters
        ietf-lisp-mapresolver@2019-02-23.yang
        ietf-lisp-mapresolver@2019-02-23.yang:91: warning: line length 72 exceeds 69 characters
        ietf-lisp-mapserver@2019-03-05.yang
        ietf-lisp-mapserver@2019-03-05.yang:204: warning: line length 70 exceeds 69 characters
        ietf-lisp@2019-03-05.yang
        ietf-lisp@2019-03-05.yang:431: warning: line length 70 exceeds 69 characters
        ietf-lisp@2019-03-05.yang:485: warning: line length 71 exceeds 69 characters
        ietf-lisp@2019-03-05.yang:490: warning: line length 71 exceeds 69 characters
      #+end_src