for BGPPathAttributeMpUnreachNLRI, use 'withdrawn_routes' instead of
'nlri_list'
bgpspeaker.speaker l.566 | DEBUG | Traceback (most recent
call last):
File "/home/wataru/ryu/ryu/services/protocols/bgp/speaker.py", line
560, in _recv_loop
self.data_received(next_bytes)
File "/home/wataru/ryu/ryu/services/protocols/bgp/speaker.py", line
275, in data_received
self._data_received(next_bytes)
File "/home/wataru/ryu/ryu/services/protocols/bgp/speaker.py", line
355, in _data_received
self._handle_msg(msg)
File "/home/wataru/ryu/ryu/services/protocols/bgp/speaker.py", line
508, in _handle_msg
self._peer.handle_msg(msg)
File "/home/wataru/ryu/ryu/services/protocols/bgp/peer.py", line 1567,
in handle_msg
self._handle_update_msg(msg)
File "/home/wataru/ryu/ryu/services/protocols/bgp/peer.py", line 1234,
in _handle_update_msg
self._extract_and_handle_mpbgp_withdraws(mp_unreach_attr)
File "/home/wataru/ryu/ryu/services/protocols/bgp/peer.py", line 1496,
in _extract_and_handle_mpbgp_withdraws
w_nlris = mp_unreach_attr.nlri_list
AttributeError: 'BGPPathAttributeMpUnreachNLRI' object has no attribute
'nlri_list'
Signed-off-by: ISHIDA Wataru <[email protected]>
---
ryu/services/protocols/bgp/peer.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ryu/services/protocols/bgp/peer.py
b/ryu/services/protocols/bgp/peer.py
index e84cd26..5b14199 100644
--- a/ryu/services/protocols/bgp/peer.py
+++ b/ryu/services/protocols/bgp/peer.py
@@ -1490,7 +1490,7 @@ class Peer(Source, Sink, NeighborConfListener, Activity):
)
return
- w_nlris = mp_unreach_attr.nlri_list
+ w_nlris = mp_unreach_attr.withdrawn_routes
if not w_nlris:
# If this is EOR of some kind, handle it
self._handle_eor(msg_rf)
--
1.7.10.4
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel