Re: [yang-doctors] YANG Doctors review for draft-ietf-rtgwg-yang-vrrp

Radek Krejčí <rkrejci@cesnet.cz> Thu, 16 March 2017 15:00 UTC

Return-Path: <rkrejci@cesnet.cz>
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 21EB5129548 for <yang-doctors@ietfa.amsl.com>; Thu, 16 Mar 2017 08:00:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.301
X-Spam-Level:
X-Spam-Status: No, score=-4.301 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, RP_MATCHES_RCVD=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cesnet.cz
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 Zb8PM7cjV-8p for <yang-doctors@ietfa.amsl.com>; Thu, 16 Mar 2017 08:00:55 -0700 (PDT)
Received: from office2.cesnet.cz (office2.cesnet.cz [IPv6:2001:718:1:101::144:244]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 38FED1294F8 for <yang-doctors@ietf.org>; Thu, 16 Mar 2017 08:00:54 -0700 (PDT)
Received: from [IPv6:2001:67c:1220:80c:921b:eff:fe59:4360] (unknown [IPv6:2001:67c:1220:80c:921b:eff:fe59:4360]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by office2.cesnet.cz (Postfix) with ESMTPSA id 581BF200D2; Thu, 16 Mar 2017 16:00:51 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cesnet.cz; s=office2; t=1489676452; bh=cxVIwiolL3SsjRUz1eyNguv4oI1LdFb2O9qP6dAnbJo=; h=Subject:To:References:Cc:From:Date:In-Reply-To; b=F/TKhU+P7zisJ4yA7TRtVNBOaYok1iM6dfonox1kYHfQ2GWByh6a1kXj1e3eVmluN Y+wvncf2Ssh8+XR0iDFvNyoUi3KNO3CQd6o3D4VWiHvxHOAXJW+HEZfFyrFx0dyW+P WN9e+GZ6clR2m7I5rxN2ABn/onlMYgQBQ706boOM=
To: Xufeng Liu <Xufeng_Liu@jabil.com>, draft-ietf-rtgwg-yang-vrrp.all@tools.ietf.org
References: <ee8f5425-6829-4025-e1a9-f84f94f8cbc5@cesnet.cz> <BN3PR0201MB08671C9339B3061CD226D7BAF1270@BN3PR0201MB0867.namprd02.prod.outlook.com>
Cc: "yang-doctors@ietf.org" <yang-doctors@ietf.org>, "Benoit Claise (bclaise)" <bclaise@cisco.com>
From: Radek Krejčí <rkrejci@cesnet.cz>
Message-ID: <b2edfb5a-2d8f-fb21-872e-3a061f158d1d@cesnet.cz>
Date: Thu, 16 Mar 2017 16:00:11 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <BN3PR0201MB08671C9339B3061CD226D7BAF1270@BN3PR0201MB0867.namprd02.prod.outlook.com>
Content-Type: text/plain; charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/7RLbV2y8kmyw9DlogP2ySeio_Pc>
Subject: Re: [yang-doctors] YANG Doctors review for draft-ietf-rtgwg-yang-vrrp
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, 16 Mar 2017 15:00:58 -0000

Hi Xufeng,
comments are inline

Dne 15.3.2017 v 22:31 Xufeng Liu napsal(a):
> Hi Radek,
>
> Thanks for the thorough review. We have submitted an updated revision https://datatracker.ietf.org/doc/draft-ietf-rtgwg-yang-vrrp/ to address the issues.
>
> Regards,
> - Xufeng
>
>> -----Original Message-----
>> From: Radek Krejčí [mailto:rkrejci@cesnet.cz]
>> Sent: Thursday, December 22, 2016 9:27 AM
>> To: draft-ietf-rtgwg-yang-vrrp@tools.ietf.org
>> Cc: yang-doctors@ietf.org; Benoit Claise (bclaise) <bclaise@cisco.com>
>> Subject: YANG Doctors review for draft-ietf-rtgwg-yang-vrrp
>>
>> Hi,
>>
>> I was asked to review the draft-ietf-rtgwg-yang-vrrp document, here are my
>> comments:
>>
>> - overall, the module is in a good shape, the common compilers are able to
>> parse it and do not complain about anything
>>
>> - the I-D text is very brief - some more detailed text about the scope,
>> relationship to other (augmented) modules and use cases for the module would
>> be welcome. Similarly, I would appreciate more detailed description of the
>> specific sections of the module. The use cases can be demonstrated on
>> configuration data examples which are now completely missing.
> [Xufeng] We have added Section 2 to describe the model, and Appendix A to show a configuration data example.

It is better now, however, few notes:

- mixing the tree format with columns to show borders between the modules in section 2.2 seems weird. If you want to use the tree format, use prefixes as pyang or yanglint do.

- in section 2.5, use the notification names to clearly connect the text here with the specific notification

- I don't thing that it is necessary to print the complete tree in the section 3. Instead, show the currently hidden nodes in sections 2.x (and add the notifications part of the tree into section 2.5)

>
>> - it seems to me that at least some of the leafs in notifications are supposed to
>> be mandatory, maybe not only in notifications, but I'm not expert in this area.
>>    - e.g. the interface leaf in vrrp-virtual-router-error-event notification, the leaf
>> is then also used in path expression for vrid-v4
>> (vrid-v6) leafref
> [Xufeng] 
> Fixed.

- in vrrp-virtual-router-error-event notification, I believe that vrid-v4 and vrid-v6 are mutually exclusive, and also you may want to have one of them to be always present, right? If so, put them into the choice:

choice vrid {
  mandatory true; /* if one of the leafs always expected */
  leaf vrid-v4 { ... }
  leaf vrid-v6 { ... }
}

>
>> - unify the new-master-reason-type enums' names: (master-)preempted vs
>> master-no-response
> [Xufeng] Is there any particular suggestions?

personally I prefer shorter names, so 'not-master', 'priority', 'preempted' and 'no-response'

>
>> - the names in the comments behind the closing brackets inside the vrrp-ipv4-
>> attributes/track container are wrong (e.g. track-interfaces instead of interfaces
>> or track-networks instead of networks)
> [Xufeng] Fixed.

still the same issue in {grouping}[vrrp-ipv4-attributes]/track/networks/network (and the same for ipv6 grouping)

>> - the previous 2 notes also apply to vrrp-ipv6-attributes grouping
> [Xufeng] Fixed.

Radek