Re: AD review of draft-ietf-rtgwg-yang-rip-04

Robert Wilton <rwilton@cisco.com> Thu, 21 September 2017 15:01 UTC

Return-Path: <rwilton@cisco.com>
X-Original-To: rtgwg@ietfa.amsl.com
Delivered-To: rtgwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 31D30134B71; Thu, 21 Sep 2017 08:01:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.5
X-Spam-Level:
X-Spam-Status: No, score=-14.5 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_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 r2S4d1gPJkTQ; Thu, 21 Sep 2017 08:01:22 -0700 (PDT)
Received: from aer-iport-3.cisco.com (aer-iport-3.cisco.com [173.38.203.53]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 01821134B97; Thu, 21 Sep 2017 08:00:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=87460; q=dns/txt; s=iport; t=1506006048; x=1507215648; h=subject:to:references:from:message-id:date:mime-version: in-reply-to; bh=MNxw4e+oaOgP5YQf9CYCUucBLuPIoaFa5KRUTsAXv50=; b=dhPgKJxihG2wBTsI16f7MYBf36EwWIgdlm9v0/ujsOXz68yWqwMWljRu +78ikMBWFFJmtmsn88jGNmOFXDeumMfj9MzUmeMkToSswVf6/lO/gCqJ5 MpVGRhA116bopqTPtZCftx1XOjRyBMwlPm2nOO0wiud6j/lehSvsmVBxM k=;
X-Files: ietf-rip-nmda@2017-09-21.tree.txt, ietf-rip-nmda@2017-09-21.yang, rip-nmda.diff, rip-nmda-tree.diff, ietf-rip@2017-06-05.tree.txt : 8076, 34439, 3463, 5250, 9419
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CYAACP08NZ/xbLJq1TCRkBAQEBAQEBAQEBAQcBAQEBAYQ+bieDdoogdJBPCSKIQI1qDoIECh+FHAKEUxgBAgEBAQEBAQFrKIUZAQUaAQgEQCIJAg4KJwMCAgIfJREGAQwGAgEBihcDFRCJRJ1mgW06hzQNgz4BAQEBAQEBAQIBAQEBAQEBAQEQD4MrgQuCSIFjASsLgWWBDYJZgV4JEUEVgmeCYAWKB4cwgWiNODyEO4IhgQGIBIR3AoIRW4hqhyaKBYJcgQWENoMigTkfOIENMiEIHBVJhxsCPzaJPwEBAQ
X-IronPort-AV: E=Sophos;i="5.42,425,1500940800"; d="diff'?txt'?yang'?scan'208";a="655814879"
Received: from aer-iport-nat.cisco.com (HELO aer-core-4.cisco.com) ([173.38.203.22]) by aer-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Sep 2017 15:00:44 +0000
Received: from [10.63.23.66] (dhcp-ensft1-uk-vla370-10-63-23-66.cisco.com [10.63.23.66]) by aer-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id v8LF0i4a006760; Thu, 21 Sep 2017 15:00:44 GMT
Subject: Re: AD review of draft-ietf-rtgwg-yang-rip-04
To: Alia Atlas <akatlas@gmail.com>, "rtgwg@ietf.org" <rtgwg@ietf.org>, draft-ietf-rtgwg-yang-rip@ietf.org
References: <CAG4d1rfam+mm3uL3-txN90JCzf8MQrxs4xa-ebdJ1tNbsMbEKw@mail.gmail.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <44576705-c9e8-371b-d157-78322b929c11@cisco.com>
Date: Thu, 21 Sep 2017 16:00:44 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
MIME-Version: 1.0
In-Reply-To: <CAG4d1rfam+mm3uL3-txN90JCzf8MQrxs4xa-ebdJ1tNbsMbEKw@mail.gmail.com>
Content-Type: multipart/mixed; boundary="------------7FEAC2530C0E254F4FD986C3"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtgwg/wJ_BCOvodL4b-aOWIMyfvHQ6EaI>
X-BeenThere: rtgwg@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Routing Area Working Group <rtgwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtgwg>, <mailto:rtgwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtgwg/>
List-Post: <mailto:rtgwg@ietf.org>
List-Help: <mailto:rtgwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtgwg>, <mailto:rtgwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 21 Sep 2017 15:01:28 -0000

So the conversion tool has worked OK on the RIP model as well, but I 
spotted a few areas where manual conversion is required (because the 
types/structure between config and state differ):

So along with the revision date, and a few FIX ME comments, the 
following few places also need to be manually tweaked/fixed:

rwilton@rwilton-lnx:~/ietf-models-to-combined/draft_modules$ pyang -f 
tree --ietf ietf-rip-nmda@2017-09-21.yang > 
ietf-rip-nmda@2017-09-21.tree.txt
ietf-rip-nmda@2017-09-21.yang:1: warning: unexpected modulename 
"ietf-rip" in ietf-rip-nmda@2017-09-21.yang, should be ietf-rip-nmda
ietf-rip-nmda@2017-09-21.yang:1: warning: unexpected latest revision 
"2017-06-05" in ietf-rip-nmda@2017-09-21.yang, should be 2017-09-21
ietf-rip-nmda@2017-09-21.yang:740: error: unexpected keyword "type"
<- Means that config and state type differ.

ietf-rip-nmda@2017-09-21.yang:761: error: unexpected keyword "type"
<- Means that config and state type differ.

ietf-rip-nmda@2017-09-21.yang:818: error: there is already a child node 
to "interface" at ietf-rip-nmda@2017-09-21.yang:636 with the name 
"originate-default-route" defined at ietf-rip-nmda@2017-09-21.yang:731 
(at ietf-rip-nmda@2017-09-21.yang:141)
<- Trying to merge an "originate-default-route" leaf from the state tree 
with the "originate-default-route" container in the equivalent config tree.

RIB YANG model converted to NMDA structure attached.

Thanks,
Rob


On 20/09/2017 18:27, Alia Atlas wrote:
> As is customary, I have done my AD review of 
> draft-ietf-rtgwg-yang-rip-04. First, I would like to thank the 
> authors, Xufeng, Prateek, and Vikram, as well as the WG for their work 
> on this document.
>
> My one major issue is that this does not conform to the NMDA 
> guidelines - where augmenting -state models is not preferred.  It is 
> quite acceptable to have that in an appendix, if there are 
> implementations. I do see the shepherd's write-up indicates a partial 
> implementation exists.
> There is some tooling to help convert a model to conform to NMDA; I've 
> cc'd Rob Wilton, who was working on that.
>
> I also have some questions.
>
> 1) For the prefix-set-ref, I don't see any information about what the 
> string should contain.
>
> 2) For the route-policy-ref, I don't see any information about what 
> the string should contain.
>
> Nits:
> a) p.26:"choice auth-type-selection {
>                  description
>                    "Specify the authentication scheme.
>                     The use of the key-chain reference here is
>                     designed to align with other proposed protocol
>                     models.";"
>    Since the key-chain model is approved for RFC publication, the 
> description can be updated.
>
> Once the model conforms to the NMDA guidelines, I will be happy to 
> advance this draft to IETF Last Call.
>
> Thanks,
> Alia