Signed-off-by: Satoshi Fujimoto <[email protected]>
---
ryu/services/protocols/bgp/info_base/base.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ryu/services/protocols/bgp/info_base/base.py
b/ryu/services/protocols/bgp/info_base/base.py
index fbf3bc6..68196df 100644
--- a/ryu/services/protocols/bgp/info_base/base.py
+++ b/ryu/services/protocols/bgp/info_base/base.py
@@ -843,8 +843,7 @@ class Path(object):
return self._source is None
def has_nexthop(self):
- return not (not self._nexthop or self._nexthop == '0.0.0.0' or
- self._nexthop == '::')
+ return self._nexthop and self._nexthop not in ('0.0.0.0', '::')
def __str__(self):
return (
--
2.7.4
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel