summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2014-07-30 13:52:54 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-07-30 13:58:08 +0900
commit184c88b359099a8065f0b805e66b1821f84bd9cb (patch)
tree46c4ac8fd70174333eb98b73228f4de605f0571a
parentb22b6b1a4ea6b4c5a8e1cff6070edd338d9dd39a (diff)
bgp: fix AttributeError bug
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 <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/services/protocols/bgp/peer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/services/protocols/bgp/peer.py b/ryu/services/protocols/bgp/peer.py
index e84cd26b..5b141991 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)