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

Amit Dass <amit.dass@ericsson.com> Wed, 21 February 2018 00:17 UTC

Return-Path: <amit.dass@ericsson.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 D111B12E741 for <i2rs@ietfa.amsl.com>; Tue, 20 Feb 2018 16:17:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.321
X-Spam-Level:
X-Spam-Status: No, score=-2.321 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, THIS_AD=1.999, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com header.b=TJNw5k7b; dkim=pass (1024-bit key) header.d=ericsson.com header.b=S0sDofqb
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 OFardqf1qbWi for <i2rs@ietfa.amsl.com>; Tue, 20 Feb 2018 16:17:27 -0800 (PST)
Received: from sesbmg22.ericsson.net (sesbmg22.ericsson.net [193.180.251.48]) (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 4E2B012E05D for <i2rs@ietf.org>; Tue, 20 Feb 2018 16:17:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1519172242; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xstNqI3QqPm8UPEuLA3wa/7Uy7IPxWaFML0lS4Ra+3E=; b=TJNw5k7b+5Yi/g4EdJ+ITtXWQNoO7R6WfM6++Nvi6F4TrBi5Ah2CCiE5UeqmB/Ye Cao8ScmUDwqCjUxquPBFrNDBUAIaPT+RahwOf70NT+Hyfrm7TlNipCidmLEMWJ0K pr2FjgzhLnGYG7fX6y2g1Bz38adqDyh41RCEewEop6I=;
X-AuditID: c1b4fb30-3b1ff70000004778-91-5a8cba92170c
Received: from ESESSHC007.ericsson.se (Unknown_Domain [153.88.183.39]) by sesbmg22.ericsson.net (Symantec Mail Security) with SMTP id 73.AF.18296.29ABC8A5; Wed, 21 Feb 2018 01:17:22 +0100 (CET)
Received: from ESESSMB501.ericsson.se (153.88.183.162) by ESESSHC007.ericsson.se (153.88.183.39) with Microsoft SMTP Server (TLS) id 14.3.352.0; Wed, 21 Feb 2018 01:17:21 +0100
Received: from ESESSMB503.ericsson.se (153.88.183.164) by ESESSMB501.ericsson.se (153.88.183.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.26; Wed, 21 Feb 2018 01:17:21 +0100
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESSMB503.ericsson.se (153.88.183.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.26 via Frontend Transport; Wed, 21 Feb 2018 01:17:21 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YPZNdIv2Xw93IO6BwevyAEPGWzP/BSKDqNMpoFfrUB0=; b=S0sDofqbR5E5IkI2GS70ALZDv8E9Iyq11miiL2c9FGxLRUyrgrKxYaT4AgrgHMv6g9nuq6DJW12nqhPbzr0OHgAM72uh5S4YAR05EHyaqgIkbYRvnJlzBmtC9/wufX7NAyKoB8ivAnokbNevlNfsCINTrdM0bMIZiLCDO37Oz74=
Received: from HE1PR0702MB3580.eurprd07.prod.outlook.com (52.133.6.15) by HE1PR0702MB3737.eurprd07.prod.outlook.com (52.133.6.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.527.6; Wed, 21 Feb 2018 00:17:19 +0000
Received: from HE1PR0702MB3580.eurprd07.prod.outlook.com ([fe80::df:38c9:dadd:7d3b]) by HE1PR0702MB3580.eurprd07.prod.outlook.com ([fe80::df:38c9:dadd:7d3b%2]) with mapi id 15.20.0527.012; Wed, 21 Feb 2018 00:17:19 +0000
From: Amit Dass <amit.dass@ericsson.com>
To: "t.petch" <ietfc@btconnect.com>, Ebben Aries <exa@juniper.net>
CC: "i2rs@ietf.org" <i2rs@ietf.org>, "draft-ietf-i2rs-rib-data-model.all@ietf.org" <draft-ietf-i2rs-rib-data-model.all@ietf.org>
Thread-Topic: [i2rs] Yangdoctors early review of draft-ietf-i2rs-rib-data-model-09
Thread-Index: AQHTkDcKZ8fIlvBx70ukLYUj3ljGR6OngIOigAZGHzA=
Date: Wed, 21 Feb 2018 00:17:19 +0000
Message-ID: <HE1PR0702MB3580D0AED5E15035AD6F738093CE0@HE1PR0702MB3580.eurprd07.prod.outlook.com>
References: <151626438402.10775.7250014155413667607@ietfa.amsl.com> <00c101d3a750$283bb420$4001a8c0@gateway.2wire.net>
In-Reply-To: <00c101d3a750$283bb420$4001a8c0@gateway.2wire.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=amit.dass@ericsson.com;
x-originating-ip: [213.114.112.71]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; HE1PR0702MB3737; 6:4OgDfwt381RK8e0i+xWd5LD1gRmDUJBdwma3Qz1S1abToPL0nmThzG9BrS6ivj37AqiMnT1MOECJuVIqEUCVvB2TvQgMIWj9S561JPcsWFTmDGiUgPLN/Pr319Xpb35aP/UOsRKZohRuP+wkX4anaVimuhuzs2NQZR3/oxA+CFz4oQlv3o4Y1RCWJ4hdSE8unghJkVt4gW7NYEtEuwQftYyOpqIh/d1c0y7nsZ4QI+r+UL3IlGEKNKVRTHyaLUYp6hU6Gdoq/jyfM/wcT0A0Y+ATbJ2XlNz+h+4GdhDoOXIHUQfmfi2D4m7oupSDpR5PODnOE4dL8S8BuKEJo8NYZH2G27rLAX+k1QQ7N5W+J7cJOcjTxqMzcETcEtwf0qAS; 5:DaFq+bDr3SDtzjUfNFW1XI79YIXy2qxovMv036Db+LKgKpYOCYUfOEJO1H6EkDy/pMwvFJ1bm3DDoayReR4o9WhUEANm1x7MOMa6YNms40rh3HgbVC7iyyEsD2C6YpnnCkh9DfkZFLiFyRwgJSZIJue3/O/c8A2/4S2S4u/xv5A=; 24:Z53WZ8HWQNGo8D1lK7LKh7lKl9DLR32YRnWy2C2Ec4T8d5hAqwxFTril9HoRTYeq4Ho6hlHgVkK/prewGX1Y5eAdbZ8lIp+9lys6t2sR65I=; 7:mpb1i/+widYqATCLKTnMvmmFlaujkbUF91RLdnhrOeBvZVyxQ2IrZClUMmKO/sTiCB7RZLX8NhEqwRuGWQ683uFeJQgGpOIdE2hM/9VAp5sqxCZZX5RrBj4ReVH4b7e27Dtp3fu4uinaI+6fCWQoAi2oAPIfKCSyDZiWYIUHpTkYc6Qww7m0jSlC57/VO1vFRNzx22fl1xlqYgL82wxTprSIOEyRU2tb7/tWl/LXypvvn2eflTiZIf7WFJy0y3eA
x-ms-exchange-antispam-srfa-diagnostics: SSOS;
x-ms-office365-filtering-correlation-id: 6157c99d-ca06-4948-7b17-08d578c078c4
x-microsoft-antispam: UriScan:(219612443155931); BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060)(49563074)(7193020); SRVR:HE1PR0702MB3737;
x-ms-traffictypediagnostic: HE1PR0702MB3737:
x-microsoft-antispam-prvs: <HE1PR0702MB37372CCD9D09BCC84D488B9893CE0@HE1PR0702MB3737.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(178726229863574)(192374486261705)(138986009662008)(219612443155931)(788757137089);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(102415395)(6040501)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231101)(944501161)(93006095)(93001095)(6041288)(20161123564045)(201703131423095)(201703031522075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:HE1PR0702MB3737; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0702MB3737;
x-forefront-prvs: 0590BBCCBC
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(346002)(376002)(396003)(39380400002)(51914003)(189003)(199004)(13464003)(377424004)(5660300001)(86362001)(68736007)(296002)(316002)(110136005)(99936001)(6506007)(53546011)(59450400001)(102836004)(5250100002)(54906003)(1941001)(33656002)(186003)(26005)(76176011)(3660700001)(105586002)(99286004)(229853002)(106356001)(7696005)(6246003)(25786009)(7736002)(6436002)(4326008)(6306002)(53936002)(8666007)(55016002)(9686003)(966005)(2950100002)(14454004)(74316002)(3280700002)(305945005)(2900100001)(478600001)(81156014)(81166006)(8676002)(97736004)(2906002)(66066001)(3846002)(6116002)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0702MB3737; H:HE1PR0702MB3580.eurprd07.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: eL+aV4AmK121wuZ4jT6oSpWlgfi5g407+u97KLUaScIg3CpjsaH1MwKjqHVEupZ8fEEpErW7Haaauv5YL1rW4IpsAmO2JGrE10T7fvj1sfIle5RrZxRbm3va3ukks3i/W4DJdoaV6XTxRPJOnyQaZDF7jx3J4Z7llpZgkBUioqQ=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/mixed; boundary="_002_HE1PR0702MB3580D0AED5E15035AD6F738093CE0HE1PR0702MB3580_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 6157c99d-ca06-4948-7b17-08d578c078c4
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2018 00:17:19.6427 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0702MB3737
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA02SfSzUcRzH+/7ud3c/1uXbefpgUkekFVItM6TajNLKspbblCu/ccOxO4nW HxLNnPJQzcPStTB5KJeHPExznYiUoQkNcdykllkpykPd3e/a/Pf6ft6vz2ef73dfisUfZ9tS YkkiLZWIYgUcU7LoXJPL3vzWbKHHSqmrl6ZSSXjNVTeSXk8LF0ivD5pPpD8Z2Nq5zA0sK/tN BA6nDXFPs4SmPpF0rDiJlrr7RZhGDzz2Scj8RSV3jsu5qahthMpCJhTgAzDx+Qc7C5lSfNyB IG0yFekDPm5AsFh+lOElBK/WzBipnABV5R9CfyDxdwLqc2ZIJsknYK3wK4c5aBBkTdcZZnHw LnhS0Ujq2QL7Q+lkg0Fi4XQEZS2VbH1gjs/Ao/pqoxQKGbkFHIa9QTOuNTgk3gl9XVVcPfNw BCyvdrOYBZOhrGTe0GuCD8PfzjqDj7AVLL2pIfTMwtbwcUZBMLe2gKmBXg7DljA3vW70w6BW 081l6gJomlcZHXsYVMiRfmnAI1zIHB1lM4EbNOZ9QwyfhDst7UbWIuhN256FKB3vgfRRR6Yc D8vaVmPrNbjR287JRR7FG9ZjWAwlY32sYsM1t0JP0QxZrJvEwq5Q2+rOKDvgrnyKy/AJWHg2 SzLsDcqhdl1d/7ydCMrrCtgbGx4ikypkKaNlF+OiPD3daKn4kkwWL3GT0Il1SPfRXjaseDSj udkjaoQpJNjM67mZLeSzRUmylDg1ctLN0Sir+5EtKYmX0AIL3vsluZDPixSlXKWl8Rekl2Np mRrZUaTAmtcTxBPycZQokY6h6QRa+j8lKBPbVBQzZVaVv797Mrgix1OsHgy1uWWzOqxyeD0y NORcE3xM8fOt+vzxAEV6mJNgApwXA3wz2O+2aZ+fIkJwR7i9cj2/KHiuWSmv0apeHPK1G7tv NT3mdDBE2XE7s+TLA4euvIZNQW3Dbh5bfFxy/TzD+33Nr8ScbRu9N+/YcV2VOpgRIyBl0aJ9 u1lSmegfw0EyX3ADAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/i2rs/ZG3IkwLq-gfNr3LmIxwPeYARKN8>
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: Wed, 21 Feb 2018 00:17:29 -0000

Hi Tom,

Thanks for the good feedback. Please see my response inline below along with the updated draft version 11.


Best regards,
Amit

-----Original Message-----
From: t.petch [mailto:ietfc@btconnect.com] 
Sent: Friday, February 16, 2018 7:01 PM
To: Ebben Aries <exa@juniper.net>
Cc: i2rs@ietf.org; draft-ietf-i2rs-rib-data-model.all@ietf.org
Subject: Re: [i2rs] Yangdoctors early review of draft-ietf-i2rs-rib-data-model-09

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
AD: Updated with RFC 7950 reference,
- 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

AD: Moved to informative ref.

2.2.  Routing Instance and Rib
- RIB?
Correction done
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
AD: Will follow up to remind the RPC


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

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

AD: Updated with RFC 7277 reference.

"    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
AD: The copyright statement was updated in version 10. Please check the latest draft.
   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
AD: Added XXXX 😊

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

AD: Modified the section as below:

leaf hop-limit {
      type uint8;
	    range "1..255";
      description
        "The path hop limit header.";


description   "NvGRE can use eigher IPv4    or IPv6 header for
encapsulation.";
- gher?
AD: Corrected the typo.
- 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
AD: I couldn't find it in the latest draft. Could you please recheck the latest draft and confirm?

leaf route-change-reason

- The values that this can take seem rather few
AD: This has been reference in the info model, so although limited this is expected to be quite important. Do you have any suggestions that we can add here on top?


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