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 <[email protected]>
---
 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 0781ee1..c945754 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
-- 
2.7.4


------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to