[pim] Yangdoctors early review of draft-ietf-pim-igmp-mld-snooping-yang-05

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Wed, 17 October 2018 18:01 UTC

Return-Path: <rrahman@cisco.com>
X-Original-To: pim@ietfa.amsl.com
Delivered-To: pim@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 204AD130ECC; Wed, 17 Oct 2018 11:01:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.49
X-Spam-Level:
X-Spam-Status: No, score=-14.49 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_MIME_MALF=0.01, 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 YMdHu9bJxYsA; Wed, 17 Oct 2018 11:01:30 -0700 (PDT)
Received: from rcdn-iport-5.cisco.com (rcdn-iport-5.cisco.com [173.37.86.76]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C6517130E19; Wed, 17 Oct 2018 11:01:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=62234; q=dns/txt; s=iport; t=1539799289; x=1541008889; h=from:to:cc:subject:date:message-id:mime-version; bh=CxrIBv0DdESXXhSufXcMS7u/mTErfP2m2ikT+6e9Tes=; b=bY/PCduQwF2L+grGEQpAYoPg2DXWDRAhGAze9nTSJ/+uJ9Spt+l62C7Q nuFeDXdLjmWb/pjJSY7fgcEzAtp4HE0w+PUDYWcCgO1dcEyU8tsJEy1Hm t7jOcC1g33eXc4o+BhqQy0970WP5ZrzSemzYpvNCLKUEydUw83AA4XddN Y=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0ApAADpd8db/5NdJa1ZCRwBAQEEAQEHBAEBgVEHAQELAYENd2Z/KAqDa4gXjBqZGRSBZgsBAScFhEACF4RjITQNDQEDAQECAQECbRwMhTkBASgKTBIBBhMBAgEBASEBBgMCBDAUAwYKBA4FgyABgR1kD4lbm02BLoQwAgELPz2EWQWLTBeBQT+BEicfhWcCAwGBKgEICgE2CRaCTTGCBCICiFyBA4RLFYFAhDmJeQkCgViEfooLF4FPhHGJYowdK4lMAhEUgSYdOGRxcBUaSwGCQQkKhXGFFIU+bwEBgSaIFw0XB4EBAYEeAQE
X-IronPort-AV: E=Sophos;i="5.54,393,1534809600"; d="scan'208,217";a="249727849"
Received: from rcdn-core-11.cisco.com ([173.37.93.147]) by rcdn-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Oct 2018 18:01:28 +0000
Received: from XCH-ALN-003.cisco.com (xch-aln-003.cisco.com [173.36.7.13]) by rcdn-core-11.cisco.com (8.15.2/8.15.2) with ESMTPS id w9HI1RHS019125 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 17 Oct 2018 18:01:28 GMT
Received: from xch-rcd-005.cisco.com (173.37.102.15) by XCH-ALN-003.cisco.com (173.36.7.13) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 17 Oct 2018 13:01:27 -0500
Received: from xch-rcd-005.cisco.com ([173.37.102.15]) by XCH-RCD-005.cisco.com ([173.37.102.15]) with mapi id 15.00.1395.000; Wed, 17 Oct 2018 13:01:27 -0500
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: Hongji Zhao <hongji.zhao@ericsson.com>
CC: "pim@ietf.org" <pim@ietf.org>, YANG Doctors <yang-doctors@ietf.org>
Thread-Topic: Yangdoctors early review of draft-ietf-pim-igmp-mld-snooping-yang-05
Thread-Index: AQHUZkNsLOM6Zagayk61DqKTE7CU6g==
Date: Wed, 17 Oct 2018 18:01:26 +0000
Message-ID: <B7E291AA-E083-4D86-B9A7-5A8400714179@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.b.0.180311
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [161.44.212.38]
Content-Type: multipart/alternative; boundary="_000_B7E291AAE0834D86B9A75A8400714179ciscocom_"
MIME-Version: 1.0
X-Outbound-SMTP-Client: 173.36.7.13, xch-aln-003.cisco.com
X-Outbound-Node: rcdn-core-11.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/pim/84mhNqr3V8cCXTiQzzfjiz1qCrI>
X-Mailman-Approved-At: Thu, 18 Oct 2018 15:10:27 -0700
Subject: [pim] Yangdoctors early review of draft-ietf-pim-igmp-mld-snooping-yang-05
X-BeenThere: pim@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Protocol Independent Multicast <pim.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pim>, <mailto:pim-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/pim/>
List-Post: <mailto:pim@ietf.org>
List-Help: <mailto:pim-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pim>, <mailto:pim-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Oct 2018 18:01:34 -0000

Hi Hongji,

I have reviewed rev-05 (revised the existing review), see https://datatracker.ietf.org/doc/review-ietf-pim-igmp-mld-snooping-yang-03-yangdoctors-early-rahman-2018-06-28/
Since no email was sent, I have copied my comments below.

Regards,
Reshad.

YANG Doctor review of draft-ietf-pim-igmp-mld-snooping-yang-05 (by Reshad Rahman)

This is my YD review of -05, in June 2018 I had done an early review of -03.

1 module defined in this draft:

-          ietf-igmp-mld-snooping@2018-10-11.yang<mailto:ietf-igmp-mld-snooping@2018-10-11.yang>


Errors are shown at https://datatracker.ietf.org/doc/draft-ietf-pim-igmp-mld-snooping-yang/ but that seems to be tools related (yang modules can’t be found)

All major issues raised in previous review have been addressed.

Main issues/questions:

  *   igmp-snooping-instances (mld- also) are top level containers, I believe they should be under rt:control-plane-protocol (RFC8349). I should have raised this in the previous review.
  *   Should there be a dependency on draft-ietf-pim-igmp-mld-yang, e.g. should we allow IGMP/MLD snooping configuration only if IGMP/MLD is enabled (leaf “enable”) or supported (feature-mld and feature-igmp)? E.g. I don’t think it makes sense to configure igmp-snooping if igmp is not supported.

Minor comments, suggestions and nits:

  *   Section 2, I don’t see the point of last sentence “This document provides freedom….”.
  *   Section 2.1 has a reference to draft-dsdt-nmda-guidelines which has expired
  *   YANG indentation is off, please correct
  *   Comment “replace with IANA namespace” applies to what line?
  *   In YANG module, s/Refrence/Reference/ (1 instance)
  *   Leaf “type” in snooping-instances, why not have an identity for type (l2vpn and bridge only for now). Right now there’s an enum which is defined twice (for mld and igmp)
  *   Similar comment as above for leaf “host-filter-mode”
  *   Send-query: s/topo/topology/, s/param/parameter/
  *   For all feature definitions, add references (RFC + relevant sections)
  *   Leaf exclude-lite, in description should there an explanation or reference of what exclude lite means?
  *   Grouping statistics-sent-received:

     *   remove -sent-received from name
     *   Description of counters, some have messages and some don’t
     *   For all counters for messages, add a reference for the messages
     *   Counter names, e.g. “pim” is too short, it should be something along the lines of num-pim-messages or num-pim.
     *   In pim description s/pim/PIM/

  *   RPCs clear-xxx-snooping-groups, rename to clear-xxx-snooping-cache (as per description)?
  *   Security Considerations, you should also mention the xxx-snooping-instance leaf nodes under vlan and l2vpn
  *   Examples (Appendix A)

     *   Indentation is off, please correct
     *   Were the examples validated with a tool? You can use yanglib<https://github.com/CESNET/libyang>
     *   bridge-mrouter-interface should be “eth1/1” instead of “1/1”. Likewise for interface, bridge-outgoing-interface
     *   The example is for bridge, there should be an example for l2vpn also

  *   Discrepancy in affiliation of Mahesh (1st page v/s author author’s addresses).

From: Hongji Zhao <hongji.zhao@ericsson.com>
Date: Thursday, October 11, 2018 at 10:11 PM
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
Cc: "pim@ietf.org" <pim@ietf.org>
Subject: Hi Reshad, I have submitted draft-ietf-pim-igmp-mld-snooping-yang-05 for your comments. Thanks a lot!

Hi Reshad,

I have submitted draft-ietf-pim-igmp-mld-snooping-yang-05 for the new structure. Could you please review again? Thanks a lot !


The IETF datatracker status page for this draft is:

https://datatracker.ietf.org/doc/draft-ietf-pim-igmp-mld-snooping-yang/






Message: 1

Date: Thu, 11 Oct 2018 02:22:27 -0700

From: internet-drafts@ietf.org<mailto:internet-drafts@ietf.org>

To: <i-d-announce@ietf.org<mailto:i-d-announce@ietf.org>>

Cc: pim@ietf.org<mailto:pim@ietf.org>

Subject: [pim] I-D Action:

                draft-ietf-pim-igmp-mld-snooping-yang-05.txt

Message-ID: <153924974694.11320.395691311547427703@ietfa.amsl.com<mailto:153924974694.11320.395691311547427703@ietfa.amsl.com>>

Content-Type: text/plain; charset="utf-8"





A New Internet-Draft is available from the on-line Internet-Drafts directories.

This draft is a work item of the Protocols for IP Multicast WG of the IETF.



        Title           : A Yang Data Model for IGMP and MLD Snooping

        Authors         : Hongji Zhao

                          Xufeng Liu

                          Yisong Liu

                          Mahesh Sivakumar

                          Anish Peter

                Filename        : draft-ietf-pim-igmp-mld-snooping-yang-05.txt

                Pages           : 42

                Date            : 2018-10-11



Abstract:

   This document defines a YANG data model that can be used to configure and manage Internet Group Management Protocol (IGMP) and Multicast Listener Discovery (MLD) Snooping devices. The YANG module in this document conforms to Network Management Datastore Architecture (NMDA).




BR/Hongji
赵宏吉

From: Reshad Rahman (rrahman) <rrahman@cisco.com>
Sent: Wednesday, October 10, 2018 8:53 PM
To: Hongji Zhao <hongji.zhao@ericsson.com>

Cc: YANG Doctors <yang-doctors@ietf.org>; draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org; pim@ietf.org; Acee Lindem (acee) <acee@cisco.com>
Subject: Re: [yang-doctors] Hi Reshad, the issues about igmp snooping model are addressed. Thanks a lot!

Hi Hongji,

This structure looks good to me.

Regards,
Reshad.

From: Hongji Zhao <hongji.zhao@ericsson.com<mailto:hongji.zhao@ericsson.com>>
Date: Monday, October 8, 2018 at 10:44 PM
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com<mailto:rrahman@cisco.com>>
Cc: YANG Doctors <yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>>, "draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org<mailto:draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org>" <draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org<mailto:draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org>>, "pim@ietf.org<mailto:pim@ietf.org>" <pim@ietf.org<mailto:pim@ietf.org>>, "Acee Lindem (acee)" <acee@cisco.com<mailto:acee@cisco.com>>
Subject: RE: [yang-doctors] Hi Reshad, the issues about igmp snooping model are addressed. Thanks a lot!

Hi Reshad & Acee,

I see your points and I plan to move the statistics under the snooping instance as below.   Is it ok?   Thanks a lot!


module: ietf-igmp-mld-snooping
    +--rw igmp-snooping-instances
    |  +--rw igmp-snooping-instance* [name]
    |     +--rw name                                 string
    |     ...
    |     +--ro interfaces
          |        +--ro interface* [name]
          |           +--ro name                   if:interface-ref
                      +--ro statistics
                         +--ro received
                         |  +--ro query?                  yang:counter64
                         |  +--ro membership-report-v1?   yang:counter64
                         |  +--ro membership-report-v2?   yang:counter64
                         |  +--ro membership-report-v3?   yang:counter64
                         |  +--ro leave?                  yang:counter64
                         |  +--ro non-member-leave?       yang:counter64
                         |  +--ro pim?                    yang:counter64
                         +--ro sent
                            +--ro query?                  yang:counter64
                           +--ro membership-report-v1?   yang:counter64
                            +--ro membership-report-v2?   yang:counter64
                            +--ro membership-report-v3?   yang:counter64
                            +--ro leave?                  yang:counter64
                            +--ro non-member-leave?       yang:counter64
                            +--ro pim?                    yang:counter64

BR/Hongji
赵宏吉