summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/topotest.py
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-03-20 15:12:56 -0400
committerChristian Hopps <chopps@gmail.com>2023-03-22 05:22:56 +0000
commitd6c755f245eeb2aedfd2b84aafee4103fb0417db (patch)
treecec297d50dc8d004ff51fd33e2e1bbae92583b21 /tests/topotests/lib/topotest.py
parent39c329bbd18b2df9b3d13c31d978555ec33b0758 (diff)
tests: apply frrbot style requirements
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests/topotests/lib/topotest.py')
-rw-r--r--tests/topotests/lib/topotest.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py
index 8965e59d6b..d35b908e12 100644
--- a/tests/topotests/lib/topotest.py
+++ b/tests/topotests/lib/topotest.py
@@ -582,6 +582,7 @@ def iproute2_is_vrf_capable():
pass
return False
+
def iproute2_is_fdb_get_capable():
"""
Checks if the iproute2 version installed on the system is capable of
@@ -606,6 +607,7 @@ def iproute2_is_fdb_get_capable():
pass
return False
+
def module_present_linux(module, load):
"""
Returns whether `module` is present.
@@ -1577,8 +1579,8 @@ class Router(Node):
self.cmd_raises("touch " + conf_file)
else:
# copy zebra.conf to mgmtd folder, which can be used during startup
- if daemon == 'zebra':
- conf_file_mgmt = "/etc/{}/{}.conf".format(self.routertype, 'mgmtd')
+ if daemon == "zebra":
+ conf_file_mgmt = "/etc/{}/{}.conf".format(self.routertype, "mgmtd")
self.cmd_raises("cp {} {}".format(source, conf_file_mgmt))
self.cmd_raises("cp {} {}".format(source, conf_file))