diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2016-09-05 09:41:40 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-09-07 10:02:10 +0900 |
commit | 57aa646d61932829062646a095a15ebdbe17f7b1 (patch) | |
tree | 15c2c3b7844337f7584fc753039f6544feeae676 | |
parent | 3f104981d2b2fc37e5948377f97384a964fd9ba5 (diff) |
BGPSpeaker/vrf: Handle non MPLS labled NLRI
Currently, VRF Table supposes the incoming NLRI has MPLS labels
field, but some EVPN NLRI don't have MPLS labels field, and
BGPSpeaker fails to import the incoming routes from the neighbours.
This patch fixes this problem.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/services/protocols/bgp/info_base/vrf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/services/protocols/bgp/info_base/vrf.py b/ryu/services/protocols/bgp/info_base/vrf.py index 5e22e299..2998dda1 100644 --- a/ryu/services/protocols/bgp/info_base/vrf.py +++ b/ryu/services/protocols/bgp/info_base/vrf.py @@ -175,7 +175,7 @@ class VrfTable(Table): pattrs=vpn_path.pathattr_map, nexthop=vpn_path.nexthop, is_withdraw=vpn_path.is_withdraw, - label_list=vpn_path.nlri.label_list + label_list=getattr(vpn_path.nlri, 'label_list', None), ) if self._is_vrf_path_already_in_table(vrf_path): return None |