summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-09-30 12:40:55 +0300
committerGitHub <noreply@github.com>2021-09-30 12:40:55 +0300
commitac32b03f9805df2639d6a62ffd1bef76da15e6f0 (patch)
treed1a21bc210bc07a38c4fddc6d29162346478b8fc
parenta89bae26f78c00080ecc48c4dbbd86c2ceafb547 (diff)
parent94e8feaa9fa447e1a643fcb1b982630fdb895b4a (diff)
Merge pull request #9694 from mjstapp/fix_topo_pim_cmp
tests: fix string comparison in lib/pim.py
-rw-r--r--tests/topotests/lib/pim.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/lib/pim.py b/tests/topotests/lib/pim.py
index 9d37088218..944981add4 100644
--- a/tests/topotests/lib/pim.py
+++ b/tests/topotests/lib/pim.py
@@ -1020,10 +1020,10 @@ def verify_ip_mroutes(
if not isinstance(group_addresses, list):
group_addresses = [group_addresses]
- if not isinstance(iif, list) and iif is not "none":
+ if not isinstance(iif, list) and iif != "none":
iif = [iif]
- if not isinstance(oil, list) and oil is not "none":
+ if not isinstance(oil, list) and oil != "none":
oil = [oil]
for grp_addr in group_addresses: