Re: [i2rs] Yangdoctors early review of draft-ietf-i2rs-rib-data-model-09

"t.petch" <ietfc@btconnect.com> Fri, 16 February 2018 18:03 UTC

Return-Path: <ietfc@btconnect.com>
X-Original-To: i2rs@ietfa.amsl.com
Delivered-To: i2rs@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E492C129BBF; Fri, 16 Feb 2018 10:03:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.921
X-Spam-Level:
X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=btconnect.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JtkJZvoR2mc6; Fri, 16 Feb 2018 10:03:23 -0800 (PST)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0127.outbound.protection.outlook.com [104.47.2.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3E6191200C1; Fri, 16 Feb 2018 10:03:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector1-btconnect-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Vny3ut58skEEPmZgHsiR7jv3QTdZNpVtsyw7H5yLyP8=; b=T7vo2taPh4arQDsJGXYf9cZg4xhr/ojp1Z35+ip06vCaq+bTuIb1MOSnTjgoQqu2fGfcDOw3v5MIhKdkj5jytN6YnlV9wxF7HtjWTHsgvVJjU6FxHwyyN0u4RNKHTKfR8vfch4GGwdbJjj9T3kSs9FpngIsx614Ob42FRvjN0BI=
Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ietfc@btconnect.com;
Received: from pc6 (86.176.21.219) by HE1PR0701MB3003.eurprd07.prod.outlook.com (2603:10a6:3:4d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.7; Fri, 16 Feb 2018 18:03:20 +0000
Message-ID: <00c101d3a750$283bb420$4001a8c0@gateway.2wire.net>
From: "t.petch" <ietfc@btconnect.com>
To: Ebben Aries <exa@juniper.net>
Cc: i2rs@ietf.org, draft-ietf-i2rs-rib-data-model.all@ietf.org
References: <151626438402.10775.7250014155413667607@ietfa.amsl.com>
Date: Fri, 16 Feb 2018 18:00:51 -0000
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Originating-IP: [86.176.21.219]
X-ClientProxiedBy: LNXP265CA0044.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5c::32) To HE1PR0701MB3003.eurprd07.prod.outlook.com (2603:10a6:3:4d::9)
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 8d00df6e-02fb-4a7d-a57c-08d575679091
X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989060)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(8990040)(2017052603307)(7193020); SRVR:HE1PR0701MB3003;
X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB3003; 3:EeLZzBCWLyX+EnG+B+Jxf9IL4AXUkhKVVF4zZ2CUKrE1JWFHwIA1dJLS85+2p3qIfk85J7rnMD5QSE1vL/X+btF8M9VUh21x3euZYzYyJOUzM/OQs3fsvHlj13mgHZZ2tyBUtiRSNwhhiy6U3dqtquChnbbQGKdsHGvzn8QwvppWduFpCdnniKgyOoUw2Db8e9UHcIG9KA3fUOdDFvCfVJqpyGGuL4BGf2g4pWmeuHSSmK7twjhhQmUbi5dMy0q3; 25:xTicC3m6gf2CJSyvolH3dhypp/zrQ9TlLqVFPCxhA+hGBa6ChJq0lAhzlU3/7D5RABsWJ7FR4d8kKUDxVmFpz9guzAiYKNlEieqY4DTj0PHYHexCiS6rPXMBB4nXzfp9KbPIm/JcTHqt9KE7s3XtRgdmOA2QBmkwmqdzCX/gJAcZWcGDJOfvb+xf00mp48wRYDBD3rWwiaM2VqdcZ4cGb0AAvsOmGo6YNGtUrO6G4j4wJ0QnaOFA2nJ/Da3+7VU84jXs/43KdFcZ6SH9Y1bCfXkyH1NNsK/iXkNat62iC6MnrJoeFoaPyM/+wo8QwMbWSlULxIQ6foUSCOLysJxHgQ==; 31:XHuawa5jpjTVeNtgj5LWI1Nd7khrFTwI8txGeyXb0DCWpPhBFzQUNgvlHVCBggPmf8lwUT5FeTIL/tbpWBKHUHhOukSubAkKBlA5UmdK9oXqycgIphsNgOgqd0qrzN6ZwLSWG41RM1EbE+Zd2lhDm68H2TfPZ6HVMu/d0tA3w/XjXbfJlsjcMRsVMJmZ0ySHLB9JuRjA9QZMkCAQyYoB+Xm70EiDNMwNUtq/HLyCoBk=
X-MS-TrafficTypeDiagnostic: HE1PR0701MB3003:
X-Microsoft-Antispam-PRVS: <HE1PR0701MB3003DBC3EAB8C8104D65C1BFA0CB0@HE1PR0701MB3003.eurprd07.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(138986009662008)(788757137089);
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(3231101)(944501161)(10201501046)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(6072148)(201708071742011); SRVR:HE1PR0701MB3003; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0701MB3003;
X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB3003; 4:172k+DGqHFfjsZuTMZEwDvT4P9dFMG+frI3c8IMayeAqwX8ZhRQc+Mgear7TcujIzD8tDJcpKoiKi4JsPBEY+NeeoZrdrm4O4O9A6xi3s2+hPQvZkCNgaefMiSE82FK8IlccTc5pPiPgdgFiJg2OzRj1+oPALmiguWlzEtfYwR7zobQ/+bV6l4uoYkRyukx/Lvvsthz3pb0jO/PzEEOSiR2+PZeC34PKrHQYHHUgtSPiQVJSsEWlNqbfDudipYDSjIAp1OnTJwxTi87ioNovQu2fd7xC8SYVHEfRyVmeB8HemRUBuZ+y2cxNMK4IPKPmKosn8RfhArrreiq7DiIJ/Ub9xsy0ioFbojJBnW+9ZUL6g43ruhed6G2E21arNBKD
X-Forefront-PRVS: 0585417D7B
X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(346002)(366004)(39860400002)(39380400002)(396003)(376002)(199004)(189003)(377424004)(13464003)(81156014)(9686003)(8666007)(1941001)(2906002)(81166006)(54906003)(44716002)(8676002)(5660300001)(44736005)(52116002)(316002)(6306002)(84392002)(47776003)(8936002)(3846002)(229853002)(105586002)(50226002)(6116002)(86362001)(106356001)(66066001)(62236002)(53936002)(68736007)(1556002)(6486002)(6666003)(6916009)(81816011)(76176011)(386003)(25786009)(33896004)(59450400001)(4326008)(230700001)(478600001)(4720700003)(23756003)(6246003)(14496001)(50466002)(26005)(81686011)(305945005)(7736002)(966005)(16526019)(61296003)(186003)(6496006)(97736004)(74416001)(7726001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0701MB3003; H:pc6; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:1; LANG:en;
Received-SPF: None (protection.outlook.com: btconn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S9+T4lLUg/0AEo6CVpw3l2Q/e84E/vIMrcVuenrV0TQUd6z+UQfsdpka/YCMVV80P5oV8l8WEun2U5bQbpOFmKSa6pSc=; 7:DkngscqgD+zLJ4/+WiN8GcmMe8eLAb7z1scH8Qph1vpRza0vED0sjihdUc3n2SHlMhMcl4I32yizXnDG338zq48QCeV+SckIXg6f4BljVsRxu4jtwxXC5ITmBoeFXfJ+cNQO5fA+gQ3SpUf/+uEYZixfFwM4f8xUidCZ7/a1WGZZRyGR6G5s1stRljwX1eGMOnYJERXho4Wg7Ax7XOpooSqsyHaQ5yvi0VLV5lVvF0vo8qW4/DIR57RGsTskBEZn
SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2018 18:03:20.5963 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 8d00df6e-02fb-4a7d-a57c-08d575679091
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB3003
Archived-At: <https://mailarchive.ietf.org/arch/msg/i2rs/FxU9tN7mBEDAahQYw1f544iyqeA>
Subject: Re: [i2rs] Yangdoctors early review of draft-ietf-i2rs-rib-data-model-09
X-BeenThere: i2rs@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Interface to The Internet Routing System \(IRS\)" <i2rs.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/i2rs>, <mailto:i2rs-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/i2rs/>
List-Post: <mailto:i2rs@ietf.org>
List-Help: <mailto:i2rs-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/i2rs>, <mailto:i2rs-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 16 Feb 2018 18:03:27 -0000

Looking at -10, from the standpoint of one who is not a YANG doctor, I
see some issues outstanding.

"   This document defines a YANG [RFC6020][RFC6991] data model"
- RFC6020 is YANG 1.0 not 1.1 - I think there needs to be a reason not
to use 1.1

- And what is the status of this vis-a-vis NMDA?  Needs stating

- And RFC6991 is an odd reference for YANG. since it is data types; not
off the wall, but seems oddto me

1.2 Guidelines on tree diagrams can be found in Section 3 of
   [I-D.ietf-netmod-yang-tree-diagrams].
-This should be a Informative Reference, not a Normative one

2.2.  Routing Instance and Rib
- RIB?

3.  YANG Modules

 <CODE BEGINS> file "ietf-i2rs-rib@2017-12-05.yang"
- The date will need updating and this calls for  a Note to the RFC
Editor

 "  namespace "urn:ietf:params:xml:ns:yang:ietf-i2rs-rib";
   // replace with iana namespace when assigned  "
I do not understand this

import ietf-interfaces {
     prefix if;
         reference "RFC 7223";
   }
- RFC7223 has been superseded unless you require the old version in
which case you should date the import.
Either way, the referenced I-D/RFC needs to appear in the Reference
section of this I-D

"    Copyright (c) <2018> IETF Trust and the persons
      identified as authors of the code.  All rights reserved.";  "
- This looks inadequate to me; see for example
draft-ietf-netmod-syslog-model
for a more comprehensive one

   revision "2018-02-12" {
- as before, a note to the RFC Editor is needed

         // RFC Ed.: replace XXXX with actual RFC number and remove
         // this note
- I see no XXXX to be replaced here

"leaf hop-limit {
       type uint8;
       description
         "The hop limit the header.";
"
Is something missing from the description?

description   "NvGRE can use eigher IPv4    or IPv6 header for
encapsulation.";
- gher?

- The  module has very few reference clauses and when I see something
capitalised, e.g.

leaf ip-rpf-check {
               "Each RIB can be optionally associated with a
            ENABLE_IP_RPF_CHECK
I suspect that a reference is required

leaf route-change-reason

- The values that this can take seem rather few

Finally, I like the Security Considerations

Tom Petch

----- Original Message -----
From: "Ebben Aries" <exa@juniper.net>
To: <yang-doctors@ietf.org>
Cc: <i2rs@ietf.org>; <draft-ietf-i2rs-rib-data-model.all@ietf.org>;
<ietf@ietf.org>
Sent: Thursday, January 18, 2018 8:33 AM
Subject: [i2rs] Yangdoctors early review of
draft-ietf-i2rs-rib-data-model-09


> Reviewer: Ebben Aries
> Review result: On the Right Track
>
> 1 module in this draft:
> - ietf-i2rs-rib@2017-12-05.yang
>
> No YANG validation errors or warnings (from pyang 1.7.3 and yanglint
0.14.59)
>
> 0 examples are provided in this draft (section 3.12 of
> draft-ietf-netmod-rfc6087bis-15)
>
> Module ietf-i2rs-rib@2017-12-05.yang:
> - yang-version statement missing - should be 1.1
> - prefix 'iir' is recommended for this module, would 'rib' suffice
better?
> - import "ietf-inet-types" should reference RFC 6991 per (not as a
comment)
>
https://tools.ietf.org/html/draft-ietf-netmod-rfc6087bis-15#section-4.7
> - import "ietf-interfaces" should reference RFC 7223 per
>
https://tools.ietf.org/html/draft-ietf-netmod-rfc6087bis-15#section-4.7
> - import "ietf-yang-types" should reference RFC 6991 per
>
https://tools.ietf.org/html/draft-ietf-netmod-rfc6087bis-15#section-4.7
> - Since this module imports "ietf-interfaces", a normative references
must be
>   added per
>
https://tools.ietf.org/html/draft-ietf-netmod-rfc6087bis-15#section-3.9
> - prefix "if" in the import "ietf-interfaces" can remove quotes to
remain
>   consistent with other imports
> - Remove WG Chairs from contact information per
>
https://tools.ietf.org/html/draft-ietf-netmod-rfc6087bis-15#appendix-C
> - Module description must contain most recent copyright notice per
>
https://tools.ietf.org/html/draft-ietf-netmod-rfc6087bis-15#appendix-C
> - Module description should contain note to RFC Ed. and placeholder
reference
>   to RFC when assigned
>
https://tools.ietf.org/html/draft-ietf-netmod-rfc6087bis-15#appendix-C
> - Add placeholder reference and note to RFC Ed. for RFC when assigned
>
https://tools.ietf.org/html/draft-ietf-netmod-rfc6087bis-15#appendix-C
> - Security Considerations should be updated to reflect new template at
>   https://trac.ietf.org/trac/ops/wiki/yang-security-guidelines
> - Section 1.2 should be replaced with reference to
>   draft-ietf-netmod-yang-tree-diagrams-02 rather (as-is in other i2rs
YANG
>   drafts in progress) per
>
https://tools.ietf.org/html/draft-ietf-netmod-rfc6087bis-15#section-2.5.
1
> - This module contains '12' features.  While it is understood the
purpose of
>   these features in the module, take precaution as to complexity for
clients
>   if they need to understand >= quantity of features per module in use
on a
>   network-element.
> - A few comments exist that are either unecessary or redundant.
Encode the
>   comment intent rather in description fields if need be.
> - Per NMDA, which datastores are targeted for the module?  Will all
RPC
>   operations be acting upon the dynamic/ephemeral datastore?  It is
not clear
>   to me if the intention is to be persistent or ephemeral
>
> General comments/Nits:
> - references to 'def' could be expanded out to 'definition'
> - references to 'decap' could be expanded out to 'decapsulation' for
>   readability (across definitions and descriptions)
> - Follow consistent capitalization of 'RIB' throughout document text.
Mixed
>   use of 'Rib' and 'rib' exists (Outside of YANG node lowercase
definitions).
> - Is it necessary to prefix all nodes under the nexthop container with
>   "nexthop-"?
> - Section 2.5 - route-add RPC - text mentions it is required that the
nh-add
>   RPC be called as a pre-requisite however if the nh already exists
and the
>   nexthop-id is known, this should not be necessary.  In addition, the
text
>   reads 'or return' which should rather be a result of querying the
>   appropriate node in the data tree.
> - In 'IANA Considerations' - s/This document requests to register/This
>   document registers/
>
> _______________________________________________
> i2rs mailing list
> i2rs@ietf.org
> https://www.ietf.org/mailman/listinfo/i2rs