api: split vl_api_prefix into two
One type for address with prefix and one type for prefix. Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Icfec51d9b7d5cde1d69fbecdd97498688ab7b295 Signed-off-by: Ole Troan <ot@cisco.com> Signed-off-by: Klement Sekera <ksekera@cisco.com> Signed-off-by: Ole Troan <ot@cisco.com>
This commit is contained in:

committed by
Andrew Yourtchenko

parent
fbc388986e
commit
75761b933f
@ -153,7 +153,7 @@ def fib_interface_ip_prefix(test, address, length, sw_if_index):
|
||||
# TODO: refactor this to VppIpPrefix.__eq__
|
||||
for a in addrs:
|
||||
if a.sw_if_index == sw_if_index and \
|
||||
a.prefix == prefix:
|
||||
a.prefix.network == prefix:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Reference in New Issue
Block a user