summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/vpp_ip_route.py2
-rw-r--r--test/vpp_neighbor.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/vpp_ip_route.py b/test/vpp_ip_route.py
index 6e52481782f..bb421c0d171 100644
--- a/test/vpp_ip_route.py
+++ b/test/vpp_ip_route.py
@@ -36,7 +36,7 @@ class MplsLspMode:
def ip_to_dpo_proto(addr):
- if addr.version is 6:
+ if addr.version == 6:
return DpoProto.DPO_PROTO_IP6
else:
return DpoProto.DPO_PROTO_IP4
diff --git a/test/vpp_neighbor.py b/test/vpp_neighbor.py
index 3099a25e692..95bcc0d6057 100644
--- a/test/vpp_neighbor.py
+++ b/test/vpp_neighbor.py
@@ -17,7 +17,7 @@ def find_nbr(test, sw_if_index, nbr_addr, is_static=0, mac=None):
ip_addr = ip_address(text_type(nbr_addr))
e = VppEnum.vl_api_ip_neighbor_flags_t
nbrs = test.vapi.ip_neighbor_dump(sw_if_index,
- is_ipv6=(6 is ip_addr.version))
+ is_ipv6=(6 == ip_addr.version))
for n in nbrs:
if ip_addr == n.neighbor.ip_address and \