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

Hongji Zhao <hongji.zhao@ericsson.com> Fri, 29 June 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 B6461130E34 for <pim@ietfa.amsl.com>; Thu, 28 Jun 2018 19:16:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.311
X-Spam-Level:
X-Spam-Status: No, score=-4.311 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, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com header.b=T6qRaiDH; dkim=pass (1024-bit key) header.d=ericsson.com header.b=LvAk+IGc
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 Lmvae8Sc_G-U for <pim@ietfa.amsl.com>; Thu, 28 Jun 2018 19:16:27 -0700 (PDT)
Received: from sessmg23.ericsson.net (sessmg23.ericsson.net [193.180.251.45]) (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 04D30130E46 for <pim@ietf.org>; Thu, 28 Jun 2018 19:16:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1530238585; 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=jGUFVigEYRFXDYKBZQqmAvUXEiSq1v9J2CjeGYeI/ZI=; b=T6qRaiDHHI1q5KQW5p7YacvjlNUaauZhgW9dSP5BIVWsD8G1vcTs43TZdMZhAoSa 0Zp+wcoAK4fUmTtzYmvr5XDy7wRAfHTcHZbtPd8ZfEtu86IMqeXylXq/By7s+DlC 7XDtgolBdC2RYEMK4heZrS7FkoF7QyGr6MPm7PlgfYQ=;
X-AuditID: c1b4fb2d-223ff700000055ff-a2-5b3596791406
Received: from ESESBMB504.ericsson.se (Unknown_Domain [153.88.183.117]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id 93.30.22015.976953B5; Fri, 29 Jun 2018 04:16:25 +0200 (CEST)
Received: from ESESBMR506.ericsson.se (153.88.183.202) by ESESBMB504.ericsson.se (153.88.183.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 29 Jun 2018 04:16:24 +0200
Received: from ESESBMB504.ericsson.se (153.88.183.171) by ESESBMR506.ericsson.se (153.88.183.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 29 Jun 2018 04:16:24 +0200
Received: from EUR04-DB3-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB504.ericsson.se (153.88.183.171) 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; Fri, 29 Jun 2018 04:16:24 +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=jGUFVigEYRFXDYKBZQqmAvUXEiSq1v9J2CjeGYeI/ZI=; b=LvAk+IGcWW1zpl5zK8yJxpYSvMYigKZCFwGOSX1IjuiMJQ03i+90h8AcQImAzvQJq7LwQD2bpp+jxA5evNzXIetmXQpV59rkBOBzqQSdRiI1yVrApbiZrUsIrtMj74ML9nhxzWizi+wW8yWhJHM0+BDCUQR674F9y0KgPll8Srs=
Received: from VI1PR07MB4192.eurprd07.prod.outlook.com (20.176.6.29) by VI1PR07MB4302.eurprd07.prod.outlook.com (20.176.6.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.18; Fri, 29 Jun 2018 02:16:23 +0000
Received: from VI1PR07MB4192.eurprd07.prod.outlook.com ([fe80::3848:62ec:b028:3c92]) by VI1PR07MB4192.eurprd07.prod.outlook.com ([fe80::3848:62ec:b028:3c92%2]) with mapi id 15.20.0930.005; Fri, 29 Jun 2018 02:16:23 +0000
From: Hongji Zhao <hongji.zhao@ericsson.com>
To: Reshad Rahman <rrahman@cisco.com>
CC: "draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org" <draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org>, "pim@ietf.org" <pim@ietf.org>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>
Thread-Topic: Yangdoctors early review of draft-ietf-pim-igmp-mld-snooping-yang-03
Thread-Index: AQHUDyjpLz/uVS+oakisT10HZ3ySLKR2f8ZQ
Date: Fri, 29 Jun 2018 02:16:23 +0000
Message-ID: <VI1PR07MB41922604DB6CD20DD95622EF964E0@VI1PR07MB4192.eurprd07.prod.outlook.com>
References: <153022213510.18432.7265431499347440238@ietfa.amsl.com>
In-Reply-To: <153022213510.18432.7265431499347440238@ietfa.amsl.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; VI1PR07MB4302; 7:pcUIavzA0v61S/X7dEahtUWxtzIC64nJoa9rSNDAWUCf9Vew98LTQ15BWjh4FMhl3ZGnKFkIfZq6j1V5IO6DeALgY4lpj4896gGryudj9LL8lUuiJCZitD1zl45h5W/rBIfd34nmC0+aO1NtyaJjdzMJjw7kazU20M2AlYH3rEwXKKkpsZ4Ap0xvhlaJdfPz1+bWutT5pjs5oNdKmU74nh6+TztHsxfJnrTRqy9iMF1lQMZF0ILMGC4SN8HAVHbB
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 172cea01-4334-458c-02c9-08d5dd664fc0
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:VI1PR07MB4302;
x-ms-traffictypediagnostic: VI1PR07MB4302:
x-microsoft-antispam-prvs: <VI1PR07MB430225B40D2AE6A6284FC6C4964E0@VI1PR07MB4302.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(95692535739014);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:VI1PR07MB4302; BCL:0; PCL:0; RULEID:; SRVR:VI1PR07MB4302;
x-forefront-prvs: 0718908305
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(396003)(136003)(366004)(376002)(39860400002)(13464003)(199004)(189003)(446003)(106356001)(25786009)(476003)(6246003)(7736002)(44832011)(53936002)(305945005)(86362001)(74316002)(2900100001)(229853002)(2906002)(256004)(26005)(33656002)(76176011)(14444005)(186003)(102836004)(105586002)(11346002)(486006)(4326008)(6506007)(53546011)(7696005)(54906003)(316002)(5250100002)(6436002)(14454004)(97736004)(68736007)(478600001)(9686003)(99286004)(6116002)(3846002)(6916009)(66066001)(8936002)(8676002)(5660300001)(55016002)(81156014)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR07MB4302; 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: nvJehaPTSomTWIkM9nw/yqQPrV8eWTUlMeW/alm42glmwyjGBBweWu7bQ2oW1hmoRt0i6mk5bTEpxrDbQlbmq44G5gMzVzYZCkcfp/aRUguMEOscdT1xclPpXM7FR+tVACtFIWaVkNTVqJn8Qy8Fe399Od6g9YA6JaiFjh2YSUjvZ6C7u8cDbtTrTybZzqjrzBLKeBO2P5cdlFy/vLVLTSdjA5gscmQC19hSE1DBQQq5DaHLlhedtYR4rsVz5yS5vaj//8S7Os145ZOubaV1vprlh7jI0wmUcb/g82cr/VhyW6su2D6fYtAguux44DRuQ8rjpEw5CCWIwwdUdNyxjK7M8g1r63j/JIIuaMgAIJU=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 172cea01-4334-458c-02c9-08d5dd664fc0
X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jun 2018 02:16:23.6288 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB4302
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0hTYRjHfc/Z5Ww5eJsuH+w+0vCepmAWYlQgXaAwKLTIU550qVPPmZJ9 UUmxNk1FXbgs90GkzFapZS27OFJ0iIqClRZqaqkZBtlFjZmns6hv/+f//J4bPBSpLBJ7Uhqt jmG1dIpaIhdVHW/JDMg2hsVtq+t0C281jEjC58fekOGDNwuk4VesL1CUKLpi6b44urZ2gThM xMp3JTApmiyGDYqMlycVW8ok6RP+53vrB8S5qM9Pj2QU4FAYmnxG6pGcUuJ2BEVXF6VC8B3B xccd/4KmqodOrJaAtyU9JF8vwqUkFOtDhUQJAfkjBYQQvEdQPStQEuwPlw0P/mh37AXdjhkR D5G4DYGp/5qYT7jhGHiVNyfRI2oFOgovO2lBhkB3VYwwzAuuTw2IeVuBT8Cl0SO8rcR7wGwc lfK2DO8Fw40U3kZ4DfywNxC8JrEHDE3UEMLJGGpbe0lBq2B63CEW+DiwtOdJBX8DTFnKncx6 6K8xIH5hwM38iV+djQLgS2Ulyc8FfAieL24UmD4EvxzFSGB8oenjsrNRMjT2VDprI6DxSb64 FIWY/tvPtNKKxD5w1xok2JuhwjAm5bUCr4auqgmRGYnqkYpjOC41MWR7IMNqznBcmjZQy+ga 0cqPtDUvBTxCtz/ttiFMIbWrgi4Ni1OK6SwuO9WGgCLV7gqlbMVSJNDZFxg27RSbmcJwNrSW Eqk9FIH1rbFKnEjrmGSGSWfYv1mCknnmIo2xq52VNh886/+tIcqoGkwdPeD39N0mtK9I11zo SSUl5ARbM2ZcZD/nbmXq7CfpzDKXrcmO6s8B8dPW5fEF12W3Y5aI0Xnv4S0mNeu9o+51YcIq lb3X3jFLRd4xZ+xfzOlZR5zOayvvbpkk7Obhym7SeM/nw04Tke5qaz9nVIu4JDrYl2Q5+jec 96ynHwMAAA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/pim/I_q6sbZHMPlMhdUEy-91oupDWGU>
Subject: Re: [pim] Yangdoctors early review of draft-ietf-pim-igmp-mld-snooping-yang-03
X-BeenThere: pim@ietf.org
X-Mailman-Version: 2.1.26
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: Fri, 29 Jun 2018 02:16:31 -0000

Hi Reshad,

  Thank you very much for your comments. I will address them as soon as possible.

BR/Hongji
赵宏吉

-----Original Message-----
From: Reshad Rahman <rrahman@cisco.com> 
Sent: Friday, June 29, 2018 5:42 AM
To: yang-doctors@ietf.org
Cc: draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org; pim@ietf.org
Subject: Yangdoctors early review of draft-ietf-pim-igmp-mld-snooping-yang-03

Reviewer: Reshad Rahman
Review result: On the Right Track

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

1 module defined in this draft:
- ietf-igmp-mld-snooping@2018-05-03.yang

No YANG validation errors or warnings (from yang and yanglint).

1 example are provided in this draft.

Major issues perceived:
1)      The YANG model has a new container+list for bridges and
“l2vpn-instances”.  Why not augment l2vpn-instance (from draft-ietf-bess-l2vpn-yang)? If all L2 features end up adding their own lists for “l2vpn-instances” this will be messy and there’ll be no easy way to look at all the configuration relevant to an l2vpn-instance, it’ll have to be done
feature by feature. 2)      If:interface is augmented and has the name of the
l2vpn-instance. This config seems redundant since under l2vpn-instance
(draft-ietf-bess-l2vpn-yang) there is already an interface-ref for AC (Access
Circuit). Why not augment the L2VPN endpoint or AC? 3)      There doesn’t seem
to be the capability to enable IGMP/MLD snooping on a subset of ACs or PW (i.e.
not on the full l2vpn-instance)? 4)      I thought Bridge related YANG models
belong to IEEE. But if we have to do the model for bridges in this draft, why not augment IEEE YANG models e.g.  ieee802-dot1q-bridge.yang (same comment as for l2vpn-instance)?

There might be good reasons to justify the way the YANG model has been done, but if that's the case IMO there needs to be text which justifies the design of the YANG model.

If the authors haven’t done so already I would suggest discussing with authors of draft-ietf-bess-l2vpn-yang, IETF102 would be a good opportunity and I can attend a meeting if needed.

I will have to re-review once the issues are addressed.

Other comments/questions/nits:
- General: needs spelling verification
- General: indentation of YANG model has to be fixed, also some descriptions are too long and wrap. - Add NMDA in abstract (that's what most drafts now do)
- Section 1.1, add space after in "in[RFC6020]" - There are references for L2VPN/EVPN YANG but none for bridges - Section 2, add reference for IGMP - Section 2.2, 2nd paragraph needs rewording. Explanation of how reference also not super clear (add reference to 2.4?) , e.g. what does an igmp-snooping-instance correspond to (to me it seems to be more a profile than the instances we have with routing protocols)? And is 1 instance usable in multiple l2vpn or BRIDGE instances? I believe it’s for 1 instance? Anyway clarify that. - Section 2.2, 4th paragraph, instead of “routing system” should this be “snooping device”? - Section 2.5 "This model augment", should be "augments". - YANG model: s/to configure the igmp snooping/to configure IGMP snooping/ - YANG model, having a feature for supporting admin-enable seems like overkill. My first impression was that that's a lot of features for this model, but I guess that's debatable. - YANG model s/fowarding/forwarding/ - YANG model, for the lookup modes (IP-based and MAC-based, add reference). I don’t think adding a vendor-specific CLI-example in the YANG description is a good idea. - YANG model, use yang-version 1.1 and add reference to import statements (as per 6087bis) - YANG model, if per-instance-config feature is not supported, how are the IGMP/MLD instances configured? - YANG model, vlan-index-type, use of range 4096… not very clear. And vlan-id shouldn’t be uint32, uint16 is enough. There’s also ieee:vlanid - YANG model, as opposed to using regular address type for group/multicast addresses, is there a type already defined for group addresses? If not there should be (V4 and V6) - YANG model, host-filter-mode, add reference - Appendix A, fix diagram