mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-22 17:12:01 +01:00
bgp/info_base: Refactor has_nexthop() method
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
399a03feb1
commit
e1741b7d77
@ -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 (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user