summaryrefslogtreecommitdiff
path: root/tests/topotests/mgmt_startup/util.py
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-06-04 17:48:08 -0400
committerChristian Hopps <chopps@labn.net>2023-06-05 13:53:51 -0400
commitee235c606fe796af24f33a0c7e8be320df7f9483 (patch)
tree2d3a865a864f9d74fd7c277b3cc80fba9c811a27 /tests/topotests/mgmt_startup/util.py
parent4285bdadcc0616079baf67963680ddc0a52c2c06 (diff)
tests: mgmtd: add prologue to bigconf tests
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests/topotests/mgmt_startup/util.py')
-rw-r--r--tests/topotests/mgmt_startup/util.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/topotests/mgmt_startup/util.py b/tests/topotests/mgmt_startup/util.py
index 87a2ad442e..e366351326 100644
--- a/tests/topotests/mgmt_startup/util.py
+++ b/tests/topotests/mgmt_startup/util.py
@@ -50,11 +50,13 @@ def get_ip_networks(super_prefix, count):
return tuple(network.subnets(count_log2))[0:count]
-def write_big_route_conf(super_prefix, count, confpath):
+def write_big_route_conf(super_prefix, count, confpath, prologue=""):
start = None
end = None
with open(confpath, "w+", encoding="ascii") as f:
+ if prologue:
+ f.write(prologue + "\n")
for net in get_ip_networks(super_prefix, count):
end = net
if not start: