summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/bgprib.py
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-11-25 14:22:10 -0500
committerGitHub <noreply@github.com>2020-11-25 14:22:10 -0500
commit3abf06b722c83c47255a9e1245770f55b17f2d38 (patch)
tree26ea6a0bacb7866f1475a77c70bff6bba76d75e0 /tests/topotests/lib/bgprib.py
parent68cd847ee68e8b62d079cb0c683848ad87bdf6ee (diff)
parent10870bbc206f79dc125f33fe6962fe2ac873ada1 (diff)
Merge pull request #7607 from pguibert6WIND/topo_python3_preparation
Topo python3 preparation
Diffstat (limited to 'tests/topotests/lib/bgprib.py')
-rw-r--r--tests/topotests/lib/bgprib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/lib/bgprib.py b/tests/topotests/lib/bgprib.py
index a23092de83..abab9600a1 100644
--- a/tests/topotests/lib/bgprib.py
+++ b/tests/topotests/lib/bgprib.py
@@ -45,7 +45,7 @@ class BgpRib:
def routes_include_wanted(self, pfxtbl, want, debug):
# helper function to RequireVpnRoutes
- for pfx in pfxtbl.iterkeys():
+ for pfx in pfxtbl.keys():
if debug:
self.log("trying pfx %s" % pfx)
if pfx != want["p"]:
@@ -107,7 +107,7 @@ class BgpRib:
found = 0
if debug:
self.log("want rd %s" % want["rd"])
- for rd in rds.iterkeys():
+ for rd in rds.keys():
if rd != want["rd"]:
continue
if debug: