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

Mahesh Jethanandani <mjethanandani@gmail.com> Thu, 22 February 2018 00:37 UTC

Return-Path: <mjethanandani@gmail.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 381F6129BBF; Wed, 21 Feb 2018 16:37:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 N7myRpjrCdF8; Wed, 21 Feb 2018 16:37:55 -0800 (PST)
Received: from mail-pg0-x233.google.com (mail-pg0-x233.google.com [IPv6:2607:f8b0:400e:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C05021200E5; Wed, 21 Feb 2018 16:37:55 -0800 (PST)
Received: by mail-pg0-x233.google.com with SMTP id f6so1344378pgs.10; Wed, 21 Feb 2018 16:37:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3fWT8wWoRQxUX9LvIadLqrJWuBSp5Gg91wdLC1btrc0=; b=hU5fhelhjryANOhKZmnv/WruUFrI5pFrieXorqS1osXrrsXimZUnZJOuBcV2sDlSr1 ToTYhuvRiR2kEw23AKEf1XcKUH1BwxCSTPmx8lGnSwjhMVFsg/F+tagUxzzgV2FpNwzZ jqgun42EynqBqoPN8G4PtBJCwnLPrll9SxBVVjQaDrnC3SBLFInyQ+Hz0P1HawXCz+fE J8xkciYOFlUDbdFPCHuHdERmurGcINHaigSsNLYomBhPWchOe9Dxvh0AUw7NSHJHX9F6 T06MuWxqXSf3UudjRAauCRNK2cjawkasnos1abCrVE09w/beT1u9koDesBlAwLTv9lwa FYAw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3fWT8wWoRQxUX9LvIadLqrJWuBSp5Gg91wdLC1btrc0=; b=fd1SfXW5Wmcqgek5uzg3QGPdRZPEVg+TgcJdtuc1cgamZuIqetC4kIFadW2OcsKZeS Qv3eWCD13dvE9awBg1Nic7iOGVvfGQRX9gwBzQJVnz9HxF1wsMcow+OIDgWlbYMinel7 oXhZUdQgJ6aWWM2HweCfy1/tqR0JLISFdEPU+vlDzlECjBXhdWkxy2BG3EC6FOXYeG5b sShkCGZ90S9sveEhlZ1Im3XawFoie9QO70HCOrEKna7blgTztcqOMJULwVaQXtrasA9M nNTEKe+aw8V0ySVmbWiXYLmSCkbefsI08L6fgaF2LPU7NqPNajoiYkOw61xuE/Uyl91P 6hSA==
X-Gm-Message-State: APf1xPDeYhe6GeMiz7oBT/pvC0K+SqWvml/RGb+rlcOYAwRDGwiWm/Gl yDyfY1n3UbursWHS1q6b21s+Sz3F
X-Google-Smtp-Source: AH8x224FvZSQz2mQi1UWEEcn3pza6St+jEgo80WR949zn7s0zX3Efpb7dWplh0GaNJxN5+XuEZ/DPg==
X-Received: by 10.99.189.82 with SMTP id d18mr4172194pgp.172.1519259875184; Wed, 21 Feb 2018 16:37:55 -0800 (PST)
Received: from ?IPv6:2601:647:4700:1280:f00d:f52a:f5de:73d0? ([2601:647:4700:1280:f00d:f52a:f5de:73d0]) by smtp.gmail.com with ESMTPSA id u25sm62245118pfh.142.2018.02.21.16.37.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2018 16:37:54 -0800 (PST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\))
From: Mahesh Jethanandani <mjethanandani@gmail.com>
In-Reply-To: <HE1PR0702MB3580F99E1E4BBB98E84D1DF593CF0@HE1PR0702MB3580.eurprd07.prod.outlook.com>
Date: Wed, 21 Feb 2018 16:43:28 -0800
Cc: Ebben Aries <exa@juniper.net>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>, "i2rs@ietf.org" <i2rs@ietf.org>, "draft-ietf-i2rs-rib-data-model.all@ietf.org" <draft-ietf-i2rs-rib-data-model.all@ietf.org>, "ietf@ietf.org" <ietf@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <C88C633D-CE3D-4D9A-B007-4C395D6E9931@gmail.com>
References: <151626438402.10775.7250014155413667607@ietfa.amsl.com> <HE1PR0702MB3580F99E1E4BBB98E84D1DF593CF0@HE1PR0702MB3580.eurprd07.prod.outlook.com>
To: Amit Dass <amit.dass@ericsson.com>
X-Mailer: Apple Mail (2.3445.5.20)
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/5r1dwpK428lGFJsOVGDzbrlj-KM>
Subject: Re: [yang-doctors] Yangdoctors early review of draft-ietf-i2rs-rib-data-model-09
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
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: Thu, 22 Feb 2018 00:37:58 -0000


> On Feb 20, 2018, at 7:24 AM, Amit Dass <amit.dass@ericsson.com> wrote:
> 
> Hi Ebben,
> 
> I have updated the draft based on your comments. Could you please have a look at the same and provide your feedback?

The indentations are all over the place for the new references that have been added. 

More importantly, and this discussion is still open in front of YANG doctors, adding a reference statement to an import statement, seems to imply a import by revision. As an example, the import of ietf-interfaces has a reference to RFC 7223. But we know that ietf-interfaces is going to updated soon by whatever RFC number gets assigned to rfc7223bis. Expect further guidance on this.

Also, I do not see normative references to RFC 6991, and RFC 7223 in the text of the document. If this is not clear, see rfc7223bis, where in Section 3.1, there is normative reference to RFC7224 for the iana-if-types module that is imported by the ietf-interfaces module.

Cheers.

> 
> https://datatracker.ietf.org/doc/draft-ietf-i2rs-rib-data-model/
> 
> Best regards,
> Amit
> 
> -----Original Message-----
> From: Ebben Aries [mailto:exa@juniper.net] 
> Sent: Thursday, January 18, 2018 9:33 AM
> To: yang-doctors@ietf.org
> Cc: i2rs@ietf.org; draft-ietf-i2rs-rib-data-model.all@ietf.org; ietf@ietf.org
> Subject: 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

This should reference rfc7223bis.

> - 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/
> 
> _______________________________________________
> yang-doctors mailing list
> yang-doctors@ietf.org
> https://www.ietf.org/mailman/listinfo/yang-doctors

Mahesh Jethanandani
mjethanandani@gmail.com