[yang-doctors] Yangdoctors last call review of draft-boydseda-ipfix-psamp-bulk-data-yang-model-02

Martin Björklund via Datatracker <noreply@ietf.org> Mon, 16 December 2019 12:01 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 5675A120818; Mon, 16 Dec 2019 04:01:40 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
From: Martin Björklund via Datatracker <noreply@ietf.org>
To: yang-doctors@ietf.org
Cc: last-call@ietf.org, draft-boydseda-ipfix-psamp-bulk-data-yang-model.all@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 6.113.0
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: Martin Björklund <mbj@tail-f.com>
Message-ID: <157649770025.21609.10657352105901115673@ietfa.amsl.com>
Date: Mon, 16 Dec 2019 04:01:40 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/Uljf9fTlBcpjAtp6Hv3jfkS0SnE>
Subject: [yang-doctors] Yangdoctors last call review of draft-boydseda-ipfix-psamp-bulk-data-yang-model-02
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: Mon, 16 Dec 2019 12:01:41 -0000

Reviewer: Martin Björklund
Review result: Ready with Nits

This is my YANG doctor review of
draft-boydseda-ipfix-psamp-bulk-data-yang-model-02.  The review
focuses on YANG-specifics only, since I am not familiar with the
technology that is modelled.

I have compared the modules in this document with the old
"ietf-ipfix-psamp", and have focused by review on the differences
between these models.

Thank you for the well-written and easy to read YANG modules!


o  The list transport-session has key "name" with the following
   definition:

           leaf name {
             type name-type;
             description
               "The name of the transporter session.";
           }

  This is a new definition; the list in 6728 doesn't have a key.

  Since this is a config false list, it is not obvious what this name
  should be.  I assume it is just an arbitrary string that the server
  makes up to uniquely identify the session.  I suggest this is
  explained in the description of the leaf.


o  The list "template" in "transport-session" doesn't have any keys.
   I would assume that either just the "template-id", or perhaps also
   "observation-domain-id" and "set-id" could be used as key?
   (compare with the MIB).


o  The list "field" in "transport-session/template" doesn't have any
   keys.  I would assume that the "ie-id" could be used as key?
   (compare with the MIB).


o  The old "destinationIPAddress" was a leaf-list of ip addresses, but
   is now replaced with a single leaf of type inet:host.  Why isn't
   this a leaf-list?

   Also, this leaf is defined as:

             leaf destination-address {
               type inet:host;
               description
                 "Destination IP address or hostname. A hostname may
                  resolve to one or more IP addresses.";
             }
           }

   The description should specify what should happen in the case that
   the hostname resolves to more than one IP address.  Will there be
   one session per IP address?  Or will they be tried round-robin?  Or
   something else?


o  There are a couple of nodes in "ietf-ipfix-packet-samplig" that use
   the XPath funtion "name" in "when" expressions, e.g.:

    leaf export-interval {
      when "name(..) = 'permanent-cache'" {

   You shoud use "local-name" rather than "name".  "name" returns a
   QName, and the prefix part of that QName is implementation
   dependent.

   I have seen this trick in a couple of modules.  I understand why it
   is used, but it really makes the groupings non-reusable.  An
   alternative design would be to do:

     grouping flow-cache-base-parameters {
       leaf max-flows { ... }
     }

     grouping flow-permanent-cache-parameters {
       uses flow-cache-base-parameters;

       leaf export-interval { ... }
     }

     grouping flow-timeout-cache-parameters {
       uses flow-cache-base-parameters;

       leaf active-timout { ... }
       leaf idle-timout { ... }
     }


o  The leaf is-flow-key has this when expression:

        leaf is-flow-key {
          when
            "(name(../../..) != 'immediate-cache')
             and
             ((count(../ie-enterprise-number) = 0)
             or
             (../ie-enterprise-number != 29305))" {

   It should use 'local-name' as above.

   But "count(../ie-enterprise-number)" will always return 1, since
   "ie-enterprise-number" has a default value, so this XPath
   expression needs to be fixed.


o  The YANG modules have some references to RFC 5101, which is
   obsoleted by RFC 7011.