summaryrefslogtreecommitdiffstats
path: root/test/vpp_ip_route.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_ip_route.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_ip_route.py')
-rw-r--r--test/vpp_ip_route.py2
1 files changed, 1 insertions, 1 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