[bess] Review on draft-ietf-bess-evpn-yang-06

Yu Tianpeng <yutianpeng.ietf@gmail.com> Sat, 02 March 2019 19:31 UTC

Return-Path: <yutianpeng.ietf@gmail.com>
X-Original-To: bess@ietfa.amsl.com
Delivered-To: bess@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 70C28130E27; Sat, 2 Mar 2019 11:31:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.567
X-Spam-Level: *
X-Spam-Status: No, score=1.567 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTML_TAG_BALANCE_BODY=1.157, MANY_SPAN_IN_TEXT=2.399, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_HTML_ATTACH=0.01] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 LCMWmofKrmu5; Sat, 2 Mar 2019 11:31:12 -0800 (PST)
Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 049C512008A; Sat, 2 Mar 2019 11:31:08 -0800 (PST)
Received: by mail-io1-xd36.google.com with SMTP id x9so972189iog.12; Sat, 02 Mar 2019 11:31:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=TC/mdNAEOtMCYxfoxkwF7xhSnbAfiKkPvS3XkPSfGvQ=; b=Y79MFwZHYsYIHQOpInzUNHL2z86yTfQbp9wdx+V1OvSrzFGAAHqm0IbTsF9/Q872T6 CXVtfyaardhvIwq7So0tfA/sPG2219iVGwySzf+jPNY/A2+r8Qh4McNP4uafshL4Q5Cb lK5tJXyhkyB9Epzhwjc/11elYwGEaeAtMgtKdMl1JKmG4QRiwx+08zUiDS/dMmjALcnS GJowKkjAJ694qjyBFIkQia3QxzCfRXGsV+uOL0L/RTbtA4/QzbUTtBl+DVcIR6djGq6D LvsIpupUBPmnCeFFhAajp+iCGJHH8BLZyk4gXy6c9spiEnIhiOtwoIMzcRh2GHXeEol9 iAhg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=TC/mdNAEOtMCYxfoxkwF7xhSnbAfiKkPvS3XkPSfGvQ=; b=oiq2rdYNgf/Dk37oydBDFpL/lIksC2faUiqamQvl6MQYZl87oAThqFofV/4DrHdek+ 3W09wxdnMc57MePuBWSVhWvXytT4fVZ7ICZTSC8D9nEne2zFLJ6Jw5TKcN2CmRlc1R80 IaPUje9zWRAkoXzTXOg8S1cQxagXhC2awK02LiaWoYEy6pxITfJ7+z0tDRlLRG2iskAv 3z3vhzJL4/U0VhcHi4jvGS2dyqRfwoUtUIZrjIuNQc/w75MSbuUmTBUAO0IQLP0eCBJJ qlUs9/vCv56+BCb0U8RjX8nwDQ0PU7nhlwv08KeTXx7fONqCllwbsuq2zJ6NSKHnLKQU WRog==
X-Gm-Message-State: APjAAAW0iTj9TibE4GPTbJs/GeWROOtwJjThhGTj9lRwGxUAol5+GD5J 0+rPyEekh3FU67IYWq196wtpJSkWIhtfeZAPS9bqbTrPHIs=
X-Google-Smtp-Source: APXvYqz7Pstn5UdG2AHNVlQsKZyeIfyJb3iNWceWNi5ud5A/DDM3aWOojldUqaVk1/6vdOdO99lNXOV6mnVHvdbTfq8=
X-Received: by 2002:a6b:8d81:: with SMTP id p123mr6189877iod.104.1551555066820; Sat, 02 Mar 2019 11:31:06 -0800 (PST)
MIME-Version: 1.0
From: Yu Tianpeng <yutianpeng.ietf@gmail.com>
Date: Sat, 02 Mar 2019 11:30:54 -0800
Message-ID: <CAKFJ8epo2ReH76c=H1N_Gk0ZLXfi_B8H8izNC4hHYn+S=YjKEw@mail.gmail.com>
To: draft-ietf-bess-evpn-yang.authors@ietf.org
Cc: bess@ietf.org
Content-Type: multipart/mixed; boundary="0000000000009bc52e0583219094"
Archived-At: <https://mailarchive.ietf.org/arch/msg/bess/HO1z69qnKD49YNp45RC-8fgYUAs>
Subject: [bess] Review on draft-ietf-bess-evpn-yang-06
X-BeenThere: bess@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: BGP-Enabled ServiceS working group discussion list <bess.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/bess>, <mailto:bess-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/bess/>
List-Post: <mailto:bess@ietf.org>
List-Help: <mailto:bess-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/bess>, <mailto:bess-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 02 Mar 2019 19:31:16 -0000

Dear authors and WG,
I had a review on draft-ietf-bess-evpn-yang-06.
This draft covers most of the evpn/vpws scenarios, but there are some
points I would like to discuss.

For small points that do not impact the architecture of the yang data
model, I have made changes in a new yang file directly (attached), which
will be easier to understand.
Also, some comments related to the structure of the data model in the final.
Appreciate authors and WG can have a review on comments and proposed
changes below.
Thanks in advance.
Regards,
Tim
=================================================================================
Changes:
ietf-ethernet-segment.yang
1. esid-type defined. current uint32 cannot cover 10 octs ESI. We can
either use a string with a regex or uint64 with a range. in the attachment
is the regex.
2. change key to esi instead of "name", the name looks like a string or a
description to me, cannot be used as the key.
3. add new leaf "interface" to indicate which ESI applied to which
interface.
4. BGP parameters are deleted, I don't think RD RT are concepts related
with ES. I have put a new leaf es-list in the EVPN yang data model
providing links between ES and EVPN yang
5. change of VLAN type to unit16 with range limit

ietf-evpn.yang
1. evpn label mode function added
2. re-write RD RT part as rt-types:vpn-route-targets is a list type
already, an extra level of list definition in EVPN is not needed anymore.
3. ES list leaf added. This leaf provides a list indicating ESs bound to
the EVPN instance.
4. control word and MTU added
5. statistics part re-structure.
6. change the counter type from uint32 to counter64 to avoid overflow.
7. interface type leaf added, the previous vpws-vlan-aware deleted. reason:
all interface type should be covered across EVPN and VPWS

General comments:
1. In EVPN yang, I would suggest to re-structure current content as below
instead of one evpn container :
- EVPN general: RD, RT, name, etc.
- EVPN ELAN/VPWS/E-TREE specifics: BUM, leaf indication, proxy.. and use
the generals to get yang data model for each scenario.

2. EVPN parameters are not registered under /ni:network-instances and /pw:
pseudowires. Now only very few info registered