summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-08-11 12:47:08 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2024-08-11 12:47:08 +0200
commit3901cfea2335f1a1bee493cfad616e8db4ce8340 (patch)
tree310965419ed46d45916c3b381694aed4f89beed2 /doc
parenttests: Convert self.unified_config to boolean (diff)
downloadfrr-3901cfea2335f1a1bee493cfad616e8db4ce8340.tar.xz
frr-3901cfea2335f1a1bee493cfad616e8db4ce8340.zip
doc: Document on how to run specific daemons with unified config in topotests
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/developer/topotests.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/developer/topotests.rst b/doc/developer/topotests.rst
index 586c09674..66946f6c3 100644
--- a/doc/developer/topotests.rst
+++ b/doc/developer/topotests.rst
@@ -1332,6 +1332,15 @@ Example:
router.load_config(TopoRouter.RD_ZEBRA, "zebra.conf")
router.load_config(TopoRouter.RD_OSPF)
+or using unified config (specifying which daemons to run is optional):
+
+.. code:: py
+
+ for _, (rname, router) in enumerate(router_list.items(), 1):
+ router.load_frr_config(os.path.join(CWD, "{}/frr.conf".format(rname)), [
+ TopoRouter.RD_ZEBRA
+ TopoRouter.RD_MGMTD,
+ TopoRouter.RD_BGP])
- The topology definition or build function