summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-01-21 14:03:08 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-26 01:37:17 +0900
commite3e07209e3d15baafc15bef345173dd64f8778dc (patch)
treea2c338aedba3e63548172f47c4d004b129c8cfdf
parent66da38e3c166278176f69d4c832dabe55272dfbd (diff)
bgp: fix bug of NameError: global name 'sent_route' is not defined
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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ryu/services/protocols/bgp/peer.py b/ryu/services/protocols/bgp/peer.py
index b4b4cdd4..0dd48d71 100644
--- a/ryu/services/protocols/bgp/peer.py
+++ b/ryu/services/protocols/bgp/peer.py
@@ -594,7 +594,7 @@ class Peer(Source, Sink, NeighborConfListener, Activity):
continue
elif block:
# path wasn't blocked, but must be blocked by this update
- path = sent_route.path.clone(for_withdrawal=True)
+ path = path.clone(for_withdrawal=True)
LOG.debug('withdraw %s because of in filter update'
% nlri_str)
else:
@@ -617,7 +617,7 @@ class Peer(Source, Sink, NeighborConfListener, Activity):
continue
elif block:
# path wasn't blocked, but must be blocked by this update
- withdraw_clone = sent_route.path.clone(for_withdrawal=True)
+ withdraw_clone = path.clone(for_withdrawal=True)
outgoing_route = OutgoingRoute(withdraw_clone)
LOG.debug('send withdraw %s because of out filter update'
% nlri_str)