summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/topogen.py
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2021-09-05 18:59:26 -0400
committerChristian Hopps <chopps@labn.net>2021-09-06 11:18:48 -0400
commit025477457866cc6faa4dec86652b8621fc912eb4 (patch)
treee41d97824009a1fcac4956dd0545399f805cabd2 /tests/topotests/lib/topogen.py
parent89084fc30f80410317b89fdaf554b149ade6695f (diff)
tests: refactor parallel reset/load config for non-json
Refactor the bgp_auth test to create common_config code to allow non-json based tests to reset routers and load configs in parallel. Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests/topotests/lib/topogen.py')
-rw-r--r--tests/topotests/lib/topogen.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py
index fa943b299b..325f65dd6f 100644
--- a/tests/topotests/lib/topogen.py
+++ b/tests/topotests/lib/topogen.py
@@ -786,13 +786,16 @@ class TopoRouter(TopoGear):
return self.net.checkCapability(daemonstr, param)
def load_config(self, daemon, source=None, param=None):
- """
- Loads daemon configuration from the specified source
+ """Loads daemon configuration from the specified source
Possible daemon values are: TopoRouter.RD_ZEBRA, TopoRouter.RD_RIP,
TopoRouter.RD_RIPNG, TopoRouter.RD_OSPF, TopoRouter.RD_OSPF6,
TopoRouter.RD_ISIS, TopoRouter.RD_BGP, TopoRouter.RD_LDP,
TopoRouter.RD_PIM, TopoRouter.RD_PBR, TopoRouter.RD_SNMP.
+ Possible `source` values are `None` for an empty config file, a path name which is
+ used directly, or a file name with no path components which is first looked for
+ directly and then looked for under a sub-directory named after router.
+
This API unfortunately allows for source to not exist for any and
all routers.
"""