summaryrefslogtreecommitdiffstats
path: root/test/vpp_neighbor.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-03-01 10:35:55 -0800
committerDamjan Marion <dmarion@me.com>2019-03-01 20:50:25 +0000
commitbeded852d7e1494abd23de191ba7ae2a5a6b81b0 (patch)
tree5346481b40c9f3f8254ffa685efe1690f0a91e42 /test/vpp_neighbor.py
parentfe480f6830166e35f1073211cba9db066a5c858e (diff)
Tests: Trivial fox use of 'is'.
'is' evaluates diffently depending on the value. >>> x=-10 >>> x is -10 False >>> x=10 >>> x is 10 True >>> Change-Id: If72ec7c47e3e95180a4d08a773984253c80154d6 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/vpp_neighbor.py')
-rw-r--r--test/vpp_neighbor.py2
1 files changed, 1 insertions, 1 deletions
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 \