Re: [ippm] Yangdoctors early review of draft-ietf-ippm-ioam-yang-03

Tommy Pauly <tpauly@apple.com> Tue, 24 May 2022 16:12 UTC

Return-Path: <tpauly@apple.com>
X-Original-To: ippm@ietfa.amsl.com
Delivered-To: ippm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EC92EC19E878; Tue, 24 May 2022 09:12:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.67
X-Spam-Level:
X-Spam-Status: No, score=-2.67 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.575, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=apple.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 zUjeV5PCu8FO; Tue, 24 May 2022 09:12:38 -0700 (PDT)
Received: from rn-mailsvcp-ppex-lapp15.apple.com (rn-mailsvcp-ppex-lapp15.rno.apple.com [17.179.253.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 17907C19E875; Tue, 24 May 2022 09:12:35 -0700 (PDT)
Received: from pps.filterd (rn-mailsvcp-ppex-lapp15.rno.apple.com [127.0.0.1]) by rn-mailsvcp-ppex-lapp15.rno.apple.com (8.16.1.2/8.16.1.2) with SMTP id 24OGC9Lu017360; Tue, 24 May 2022 09:12:33 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=20180706; bh=pvgqBCQeUAGvm43CiSb4DzqT7Ebc8l7E7Z7S1QMyZN4=; b=BQXv2Qd7rD4Jw+LSjhnLA2A5zlT6/vdNF7kg5R/AraPsZr2b0Xi/GPq9n6rUNYdXuQqO 2O/s83Dw/QJzYddwc/TqOzY68jMf8MleZMaRyBrnUjitfqDIhV3uHRhMlT00bwd9thP8 Ia89iYcUuJgwG9ASE0isTrWIGsr4Zj0o4WF/F+21ziGNuHcGo+1amN+gpucklYEPUYHH tUIGmrAgehJvkkO36hg695h9X+C5siTLqpgYNOVoVtNnpbQ5T61n2MLc8KKNeMxiik8x 2sNb5U5Q0BI4l2XJVL5VEuBvPJT2y/0OvAbMERRy1u2EDepVD+jnoqGS8NXW+YiORsiC vA==
Received: from rn-mailsvcp-mta-lapp02.rno.apple.com (rn-mailsvcp-mta-lapp02.rno.apple.com [10.225.203.150]) by rn-mailsvcp-ppex-lapp15.rno.apple.com with ESMTP id 3g6wnc2u3k-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 24 May 2022 09:12:33 -0700
Received: from rn-mailsvcp-mmp-lapp04.rno.apple.com (rn-mailsvcp-mmp-lapp04.rno.apple.com [17.179.253.17]) by rn-mailsvcp-mta-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) with ESMTPS id <0RCE003RJACX8ZF0@rn-mailsvcp-mta-lapp02.rno.apple.com>; Tue, 24 May 2022 09:12:33 -0700 (PDT)
Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp04.rno.apple.com by rn-mailsvcp-mmp-lapp04.rno.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) id <0RCE00S00A92AE00@rn-mailsvcp-mmp-lapp04.rno.apple.com>; Tue, 24 May 2022 09:12:33 -0700 (PDT)
X-Va-A:
X-Va-T-CD: f67ff7765a5a3a888cb100dd534745a5
X-Va-E-CD: b37f0d2b7e05995953989b54797e98be
X-Va-R-CD: 997a3239e25d23d7dbe9f8c599f3f111
X-Va-CD: 0
X-Va-ID: 68ca6650-32c9-419d-aa18-ffd8fa475006
X-V-A:
X-V-T-CD: f67ff7765a5a3a888cb100dd534745a5
X-V-E-CD: b37f0d2b7e05995953989b54797e98be
X-V-R-CD: 997a3239e25d23d7dbe9f8c599f3f111
X-V-CD: 0
X-V-ID: 6a9016f0-474d-4f4a-abf6-e3ef78dcab11
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486, 18.0.874 definitions=2022-05-24_06:2022-05-23, 2022-05-24 signatures=0
Received: from smtpclient.apple (unknown [17.11.191.52]) by rn-mailsvcp-mmp-lapp04.rno.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) with ESMTPSA id <0RCE00S3WACWGA00@rn-mailsvcp-mmp-lapp04.rno.apple.com>; Tue, 24 May 2022 09:12:33 -0700 (PDT)
Content-type: text/plain; charset="us-ascii"
MIME-version: 1.0 (Mac OS X Mail 16.0 \(3720.0.4.1.4\))
From: Tommy Pauly <tpauly@apple.com>
In-reply-to: <165161846705.21662.5444946425270028455@ietfa.amsl.com>
Date: Tue, 24 May 2022 09:12:32 -0700
Cc: yang-doctors@ietf.org, IETF IPPM WG <ippm@ietf.org>
Content-transfer-encoding: quoted-printable
Message-id: <EF3F6D72-FCA6-4120-8F10-2425DA28B7CD@apple.com>
References: <165161846705.21662.5444946425270028455@ietfa.amsl.com>
To: Andy Bierman <andy@yumaworks.com>, draft-ietf-ippm-ioam-yang.all@ietf.org
X-Mailer: Apple Mail (2.3720.0.4.1.4)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486, 18.0.874 definitions=2022-05-24_06:2022-05-23, 2022-05-24 signatures=0
Archived-At: <https://mailarchive.ietf.org/arch/msg/ippm/pMCnHRihZHQ1dK4EraYHxcIdvAE>
Subject: Re: [ippm] Yangdoctors early review of draft-ietf-ippm-ioam-yang-03
X-BeenThere: ippm@ietf.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: IETF IP Performance Metrics Working Group <ippm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ippm>, <mailto:ippm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ippm/>
List-Post: <mailto:ippm@ietf.org>
List-Help: <mailto:ippm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ippm>, <mailto:ippm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 24 May 2022 16:12:43 -0000

Thanks for the review, Andy!

Authors, can you create a revision of the document to incorporate this feedback?

Best,
Tommy

> On May 3, 2022, at 3:54 PM, Andy Bierman via Datatracker <noreply@ietf.org> wrote:
> 
> Reviewer: Andy Bierman
> Review result: Ready with Issues
> 
> 
> Draft: draft-ietf-ippm-ioam-yang-03
> Module: ietf-ioam
> Revision: 2022-01-25
> 
> Major Issues: none
> 
> Minor Issues:
> 
> 1) when-stmts using identities
> 
> The preferred method is to use the 'derived-from-or-self'
> https://datatracker.ietf.org/doc/html/rfc7950#section-10.4.2
> 
> OLD:
> 
>  when "../filter-type = 'ioam:acl-filter'";
> 
> 
> NEW:
> 
>  when "derived-from-or-self(../filter-type, 'ioam:acl-filter')";
> 
> This correction allows for derived identities,
> not just the specified identity.  The problem is that the
> prefix to module mapping is only defined for the XPath function,
> not for a plain string. The 'ioam' prefix must be resolved correctly
> by the YANG compiler.
> 
> 2)  /ioam/ioam-profiles/admin-config/enabled leaf description
> 
>        description
>          "When true, IOAM configuration is enabled for the system.
>           Meanwhile, the IOAM data-plane functionality is enabled.";
> 
> This object needs more clarification.
> 
>  - this object must be true before anything in the
>    /ioam/ioam-profiles/ioam-profile subtree can be edited.
>  - This means it cannot be changed in the same edit as the
>    objects it affects.
>  - if false, any config in place is used (is this true?)
>  - The 2nd sentence is not clear how it relates to the YANG module.
>  - Need to be clear (in terms of YANG datastore editing)
>    what true or false exactly means.
> 
> 
> 3) Terse descriptions
> 
> A few description-stmts are too terse.
> There must be something that can be said in a full sentence.
> 
>      leaf node-action {
>        type ioam-node-action;
>        description "node action";
>      }
> 
> 4) Use interface-ref data type
> 
> Object /ioam/ioam-info/available-interface/if-name
> 
> OLD:
> 
>     type leafref {
>        path "/if:interfaces/if:interface/if:name";
>     }
> 
> NEW:
> 
>     type if:interface-ref;
> 
> 5) Use of ordered-by user
> 
> List /ioam/ioam-profiles/ioam-profile is user-ordered.
> Describe all server processing requirements that are
> related to the order of these list entries.
> 
> 6) Use of plain 'string' as a list key
> 
> List key /ioam/ioam-profiles/ioam-profile/profile-name is
> an unconstrained string.
> 
> Most servers do not allow corner-case string values
> (such as an empty string).
> 
> Consider using yang:yang-identifier type or at least
> length 1..max to disallow empty strings.
> 
> 7) No mandatory functionality
> 
> There is a YANG feature for each profile so all profiles
> are optional-to-implement.
> 
> Is this because there is no WG agreement on any mandatory
> functionality?  Some explanation that a server is expected
> to support at least one profile should be added in this case.
> 
> 
> Nits
> ------
> 
> 1) Some description text starts with a lowercase letter,
>   and should be capitalized.
> 
> 2) Some sentences start with 'And ...' which could be
>   added to the previous sentence instead.
> 
> 3) Remove the 'mandatory true;' statement in leaf profile-name.
>   A list key leaf is already mandatory.
> 
> 
> 
> _______________________________________________
> ippm mailing list
> ippm@ietf.org
> https://www.ietf.org/mailman/listinfo/ippm