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

Hongji Zhao <hongji.zhao@ericsson.com> Tue, 23 October 2018 02:16 UTC

Return-Path: <hongji.zhao@ericsson.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 03C2A130DE5 for <pim@ietfa.amsl.com>; Mon, 22 Oct 2018 19:16:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.77
X-Spam-Level:
X-Spam-Status: No, score=-4.77 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.47, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-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=V8xwPo64; dkim=pass (1024-bit key) header.d=ericsson.com header.b=Vd0skaLr
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 P9ojrCtpyHXk for <pim@ietfa.amsl.com>; Mon, 22 Oct 2018 19:16:48 -0700 (PDT)
Received: from sesbmg23.ericsson.net (sesbmg23.ericsson.net [193.180.251.37]) (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 B21A6130DEE for <pim@ietf.org>; Mon, 22 Oct 2018 19:16:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1540261004; x=1542853004; 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=/Cy9pCBGY241ze/KqTf8IujllZPha2KiozQClX5JeNg=; b=V8xwPo64t/nSnPTdIUSU3uQK3mI5aFFP5Nv+HrCkMQ2Fq2W/hb9Jzyra9v/ViKrB eknIRXTO5skgb5zYnvVPE7coJIdObHJ1EiRSVTsLAYCWyQbZVV45MZ5mDQh7SynE pG45GBrsAbkOarQ+1EVoo7G0ZCHU8AsFOirgcsJ9F9w=;
X-AuditID: c1b4fb25-573ff700000018b4-5f-5bce848c7ddc
Received: from ESESSMB505.ericsson.se (Unknown_Domain [153.88.183.123]) by sesbmg23.ericsson.net (Symantec Mail Security) with SMTP id 57.60.06324.C848ECB5; Tue, 23 Oct 2018 04:16:44 +0200 (CEST)
Received: from ESESBMB505.ericsson.se (153.88.183.172) by ESESSMB505.ericsson.se (153.88.183.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 23 Oct 2018 04:16:43 +0200
Received: from EUR03-AM5-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB505.ericsson.se (153.88.183.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Tue, 23 Oct 2018 04:16:44 +0200
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:X-MS-Exchange-SenderADCheck; bh=/Cy9pCBGY241ze/KqTf8IujllZPha2KiozQClX5JeNg=; b=Vd0skaLrjOxcGv3FEJ/Et8pSrKiMAn79d2deb78/N2B3D/4ASDtpm2nVQZ9v+MGmtp7X5Hh8fwJsjDN3uVDQhVk9VQ4uIpaWPiGxpXlo3APv5unChuJw6sayp8/ZiDlo+6CHGZLlkhi5pJo0EMr8oEo4CUhA0Kr2TT5f+U3QnkE=
Received: from VI1PR07MB4192.eurprd07.prod.outlook.com (20.176.6.29) by VI1PR07MB5231.eurprd07.prod.outlook.com (20.178.10.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.13; Tue, 23 Oct 2018 02:16:43 +0000
Received: from VI1PR07MB4192.eurprd07.prod.outlook.com ([fe80::7d44:9062:8cce:6abf]) by VI1PR07MB4192.eurprd07.prod.outlook.com ([fe80::7d44:9062:8cce:6abf%2]) with mapi id 15.20.1273.014; Tue, 23 Oct 2018 02:16:43 +0000
From: Hongji Zhao <hongji.zhao@ericsson.com>
To: "Reshad Rahman (rrahman)" <rrahman@cisco.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: AQHUZkNsLOM6Zagayk61DqKTE7CU6qUkWsPAgAECmYCABrc98A==
Date: Tue, 23 Oct 2018 02:16:43 +0000
Message-ID: <VI1PR07MB4192AF7D59CFECB08B4C3F9996F50@VI1PR07MB4192.eurprd07.prod.outlook.com>
References: <B7E291AA-E083-4D86-B9A7-5A8400714179@cisco.com> <VI1PR07MB4192189BF36A749AED4D497396F80@VI1PR07MB4192.eurprd07.prod.outlook.com> <EA46E761-9F3F-4A53-AB96-E8CFCDCE5CCE@cisco.com>
In-Reply-To: <EA46E761-9F3F-4A53-AB96-E8CFCDCE5CCE@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=hongji.zhao@ericsson.com;
x-originating-ip: [106.38.5.8]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; VI1PR07MB5231; 6:zGzhQPfEnLkYYsXj+KN6fKXrZ2tlFINCQUNq9FfK2dtP/Mp/i+7Ybowh4zQtUn6oD4CWjD+zB5mLerDFlhmIsIEITxpFwniN4BB3fptT5YU5cAvOAM+qKcxkcfJ3BmoT6st8wqexOpnUZ8H6mPnlfb2nG9r+nOVHuwBKyPtWuVsgZGg9w3RpN1nViHHT7uF7hj20ardZyqyVzHw3F+LmSe3G2t9LEY1rtvXuwFkRb7MIroFV0/IAN+eQJDDdR+26QEUok0qLMjrLDbf2BaeUym8mG3/xM45BN1Do/mDJBSZOyhpsANntc/OMDni6KU3HVELhTIkjDlIVrFIK9Q/oYxKM/dOen9wcI3SD9aoR0QKJG+IrLIdvxF3k/dzw+VvMZWm+0QZoa6M63aWCn5cvcdp5rT9OJmUphmHI3g+M5P+FKFCgWF8KZ8/woeOrFDLixgBGsr4tirkA5MNZkRP61A==; 5:K7uEQ54QFqEm3bP7zpjunxSXsNpxj6tmW7Ky82ukBwJCxyZFGNN58V/ARW2RizIC9NJBL3wKWFr9tx1Cw5CQx+QgIFfKSU1TzGCxDZIt+26pD07aLanoclFoxRCAebqlFCk87yGok9DSCzHkOxjOuGdWXBdC4PWIXrDDWtoy+L0=; 7:nkbjVOvAqy2BGqKBmShZinS3Frz7X0GvsM6CJgohKCVjImJ9QhuoGBbJhrVZ8jIQUPBNUMe4DWaAkXC0NQAJi4QP9tx2cJyMmb3evca4TdXwgIjMWYfaSW6SFwztWxl6JeWTWzYoB2LZCGDKp5dI2A==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: dcfdeae1-e41a-4734-fe52-08d6388d9356
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:VI1PR07MB5231;
x-ms-traffictypediagnostic: VI1PR07MB5231:
x-microsoft-antispam-prvs: <VI1PR07MB523179E233C607B8F6D4D4D396F50@VI1PR07MB5231.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(21748063052155)(28532068793085)(190501279198761)(227612066756510);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231355)(944501410)(52105095)(10201501046)(148016)(149066)(150057)(6041310)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:VI1PR07MB5231; BCL:0; PCL:0; RULEID:; SRVR:VI1PR07MB5231;
x-forefront-prvs: 0834BAF534
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(366004)(376002)(39860400002)(346002)(136003)(199004)(189003)(229853002)(71190400001)(316002)(25786009)(71200400001)(14454004)(4326008)(186003)(81156014)(74316002)(54906003)(6506007)(7736002)(256004)(5250100002)(14444005)(6116002)(97736004)(68736007)(86362001)(790700001)(478600001)(53936002)(6436002)(3846002)(99286004)(476003)(8936002)(76176011)(6916009)(7696005)(8676002)(33656002)(6246003)(2906002)(2900100001)(5660300001)(9326002)(26005)(9686003)(81166006)(106356001)(55016002)(102836004)(105586002)(6306002)(486006)(54896002)(446003)(11346002)(44832011)(66066001)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR07MB5231; H:VI1PR07MB4192.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: lrqdMO/Uf91AGxNLtgRvgd0aBCbQCmBcYn8C8zNj+A9lseo5NUe9IbiJQ/itQHSYuTlVhlbiNNvv8qD94WHKHk1BvmSw3F6NODoyQotpgHt9vhsZheW2+9G+IJ1TswBs64DIR9jlHxvpwO/q/JzD66UFAIEsqllmPshH22TxWEVj0udPmocnHawJJH8k4yo5Mw+Di8/2Ox68A4z6Xp2wTm9toekXbWteHDI6ykB/bi0W8MH05k7MZIUW9RoONoJaHYzVgmLXtJ98Am6bPniOMHZEkK7tx5xOMtod4RGXnTf3B7dbYjJzgxdm5JwrqLq67m2t3QHTTS2HGg5FNzS1t5BPU/iHLZRTdXoXJh+Jqbw=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_VI1PR07MB4192AF7D59CFECB08B4C3F9996F50VI1PR07MB4192eurp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: dcfdeae1-e41a-4734-fe52-08d6388d9356
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Oct 2018 02:16:43.1829 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB5231
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0hTYRjHe885247L0ZuXfNCUGmhpeZcUsqw+pH0oQitCI1t6UHFO2Zmm ReBtiJdy2qQU1wbOvOC9qWUGKolpoGIo6QfLtKGUkJW6VCy3M8Fvv+d5fu/l//LSpF0Lz5lO kikYuUwiFfOFVOXN7gfeJfmjMX7PdJ4hf+amyZCpeqUg5HFPHzpHRqg323kRev1f4ioRLQyN Z6RJGYzc9+wdYWJZqyhtrY3IzP1lILORqZ4oQjY04CAY+rIuKEJC2g4PIhjq/83jijUEhpJy giv0BIyVqSwTCqtIqK0ft65REWAyvUZc8RWBpryANO/MxyehsLhzh2naAfvDRtNpM5I4HGa6 DpsNexwFnYa3fDM74GuwpFdTHF8AY9+8wMwUdoe6fK3FEeFbkNe1aL3eAILh5llLCBt8BmpG lBZG+BCsjzRZmMROMLOgtQbFoO8dIzl2hKX5bR7nx0DLYI6A67vBYssTq+MKE9piSy7AU3wo N5RaJW/4WVFhlS5DSc8in5OGEOiMzZQ5JWAveDGQzjnJoNG2W30ptC1vod3DGh/NUSrkV7Xn rhynQvfoCq/KEvogDFcuUFWWt/OE1h5fTjkK6uI5AcfHQVmtEezt65CgETmyDHs3JSEg0IeR J8WxbKrMR8YoOtDOL+o3bLq/Qh9/nB9AmEZiW1Fk3GiMHU+SwWal7LwsTYodRLFXdlqieEnW fUaeGitPlzLsAHKhKbGTaC74ZbQdTpAomGSGSWPku1OCtnHORsrSyBODl94vG1KymAY3L1OQ R+CKY61Pck3M8IeH3yo+1zm/me0LC/YokChKNNrMhot843bpAXzDbTIv9rnPtNhF9ylUsWH8 vjJOPt1IO0IUNv+7NxEgre4Is60Nrwkb2+reP7b6Ljcn6br76rEle7UgfKF3POp2voSNc8X7 Jk+JKTZR4u9FylnJf4XxM/BBAwAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/pim/vmfnDcNCUMQxEk6gYKFOSR3O948>
Subject: Re: [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: Tue, 23 Oct 2018 02:16:50 -0000

Hi Reshad,

Regarding the 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.
        ----I would like to change the structure like this. What do you think of that?
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol:
                    +--rw igmp-snooping-instance* [name]
                             +--rw name                                 string
                        ...
                    +--rw mld-snooping-instance* [name]
                               +--rw name                                 string
                ...


Minor comments, suggestions and nits:
-              Leaf exclude-lite, in description should there an explanation or reference of what exclude lite means?
            ------------- I would like to change the description like this. What do you think of that?
                     leaf exclude-lite {
                               …
                               description
                                 "Track the Lightweight IGMPv3 and MLDv2 protocol report";
                               reference "RFC5790";
                     }

-              Grouping statistics-sent-received:
4.            Counter names, e.g. “pim” is too short, it should be something along the lines of num-pim-messages or num-pim.
-------------Is  pim-hello ok? Here we just want to count the pim hello packet which is related to multicast router interface.
              +--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-hello?              yang:counter64

-              RPCs clear-xxx-snooping-groups, rename to clear-xxx-snooping-cache (as per description)?
              ----------------what about modify the description? I think clear-xxx-snooping-groups is better.
                                rpc clear-igmp-snooping-groups {
                                 if-feature rpc-clear-groups;
                                  description
                                   "Clear the specified IGMP snooping group.";
  input {
…

-              Examples (Appendix A)
2.            Were the examples validated with a tool? You can use yanglib
-------------- I used json-yang-master to validate the examples, but didn’t use libyang.
                How to use libyang? Do you mean the yanglint?  Do you have some example about it?


Regarding other comments I have addressed and I will update the draft together with the comments above.  Thanks a lot!


BR/Hongji
赵宏吉