Set is_withdraw flag to True to notify _best_path_change_handler in BGPSpeaker
that best path is lost.

Signed-off-by: Hiroshi Yokoi <[email protected]>
---
 ryu/services/protocols/bgp/info_base/ipv4.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ryu/services/protocols/bgp/info_base/ipv4.py 
b/ryu/services/protocols/bgp/info_base/ipv4.py
index 13d7f62..a4acdfe 100644
--- a/ryu/services/protocols/bgp/info_base/ipv4.py
+++ b/ryu/services/protocols/bgp/info_base/ipv4.py
@@ -37,7 +37,7 @@ class IPv4Dest(Destination, NonVrfPathProcessingMixin):
     ROUTE_FAMILY = RF_IPv4_UC
 
     def _best_path_lost(self):
-        old_best_path = self._best_path
+        old_best_path = self._best_path.clone(for_withdrawal=True)
         NonVrfPathProcessingMixin._best_path_lost(self)
         self._core_service._signal_bus.best_path_changed(old_best_path)
 
-- 
1.8.5.2 (Apple Git-48)



------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to