From 3f104981d2b2fc37e5948377f97384a964fd9ba5 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Mon, 5 Sep 2016 09:41:39 +0900 Subject: BGPSpeaker: Add EVPN routes from Global to VRF Table This patch adds the missing support for importing EVPN Table from the Global Table to VRF Table when BGPSpeaker recieved a new EVPN route. Signed-off-by: IWASE Yusuke Signed-off-by: FUJITA Tomonori --- ryu/services/protocols/bgp/model.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ryu/services/protocols/bgp/model.py b/ryu/services/protocols/bgp/model.py index 0781ee1b..c945754a 100644 --- a/ryu/services/protocols/bgp/model.py +++ b/ryu/services/protocols/bgp/model.py @@ -96,8 +96,10 @@ class FlexinetOutgoingRoute(object): def __init__(self, path, route_dist): from ryu.services.protocols.bgp.info_base.vrf4 import Vrf4Path from ryu.services.protocols.bgp.info_base.vrf6 import Vrf6Path + from ryu.services.protocols.bgp.info_base.vrfevpn import VrfEvpnPath assert path.route_family in (Vrf4Path.ROUTE_FAMILY, - Vrf6Path.ROUTE_FAMILY) + Vrf6Path.ROUTE_FAMILY, + VrfEvpnPath.ROUTE_FAMILY) self.sink = None self._path = path -- cgit v1.2.3