Re: [bess] LxVPN and EVPN yang models

Lizhenbin <> Wed, 24 October 2018 10:51 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 2A422130DE1; Wed, 24 Oct 2018 03:51:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id Muws1C-Xy5EQ; Wed, 24 Oct 2018 03:51:16 -0700 (PDT)
Received: from ( []) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id A92F6130DC2; Wed, 24 Oct 2018 03:51:15 -0700 (PDT)
Received: from (unknown []) by Forcepoint Email with ESMTP id 5B30E239D8913; Wed, 24 Oct 2018 11:51:11 +0100 (IST)
Received: from ( by ( with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 24 Oct 2018 11:51:12 +0100
Received: from ([]) by ([]) with mapi id 14.03.0399.000; Wed, 24 Oct 2018 18:50:53 +0800
From: Lizhenbin <>
To: "" <>, "" <>, "" <>, "" <>
CC: "" <>
Thread-Topic: LxVPN and EVPN yang models
Thread-Index: AdRp/umvjQ/bZC8BRRaWwfuUSZ1VTgBh3PKg
Date: Wed, 24 Oct 2018 10:50:52 +0000
Message-ID: <>
References: <29707_1540211362_5BCDC2A2_29707_5_1_9E32478DFA9976438E7A22F69B08FF924B3118F1@OPEXCLILMA4.corporate.adroot.infra.ftgroup>
In-Reply-To: <29707_1540211362_5BCDC2A2_29707_5_1_9E32478DFA9976438E7A22F69B08FF924B3118F1@OPEXCLILMA4.corporate.adroot.infra.ftgroup>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
x-originating-ip: []
Content-Type: multipart/alternative; boundary="_000_5A5B4DE12C0DAC44AF501CD9A2B01A8D8F4BABBBDGGEMM532MBXchi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <>
Subject: Re: [bess] LxVPN and EVPN yang models
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: BGP-Enabled ServiceS working group discussion list <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Wed, 24 Oct 2018 10:51:19 -0000

Hi Stephane,
These comments truly make sense. There should be more synchronization and consistency between these Yang models. And during the course of design of different Yang models,
Patrice and other team members proposed to define the common VPN Yang components shared between different Yang models as an independent draft. We will try to
synchronize the LxVPN and EVPN yang models and work out how to abstract the common modules reused across all models.

Best Regards,

From: []
Sent: Monday, October 22, 2018 8:29 PM
Subject: LxVPN and EVPN yang models

Hi Authors,

Speaking as individual, after reading the last versions of your module, I still have several concerns about the consistency of the modeling across all models.
There are common components between all the models that could be shared or at least modeled in the same way:

-          Model name: L3VPN uses ietf-bgp-l3vpn while others use ietf-evpn or ietf-l2vpn

-          Route-target import/export and route-distinguisher:

o   Under bgp-parameters/common/rd-rt/ for EVPN

o   Under bgp-auto-discovery for L2VPN (that could make sense here but it is weird in term of config consistency => maybe better to have a bgp-auto-discovery Boolean or maybe the discovery-type is enough to know that bgp-auto-discovery is used ?)

o   Under ipv4 or ipv6 for l3vpn RTs but rd is at top level. That could make sense but again the configuration is slightly different from other AFI/SAFIs. Having different imp/exp for IPv4 and IPv6 is a valid use case, but you should also allow to have the same config for both without defining per AFI/SAFI config.

-          RIB route limits could also be modeled the same way

-          Modelization of route entries in the RIB could be modeled in the same way across model

-          Attachment to the NI:

o   I don't understand how EVPN is integrated in L2VPN. It seems that you add a pointer (reference) to an EVPN instance which is in a completely different tree. That looks really strange and make EVPN instance configuration completely different from an L3VPN instance or L2VPN instance. Do you plan to reuse the config parameters from L2VPN or do you prefer creating a completely different tree ? If you prefer a completely different tree why not creating an EVPN ni-type ?

Can't we have one model defining some bgp-vpn containers possibly as a separate module that could be reused across all models ?

Happy to hear your feedback.




Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc

pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler

a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,

Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;

they should not be distributed, used or copied without authorisation.

If you have received this email in error, please notify the sender and delete this message and its attachments.

As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.

Thank you.