mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 22:10:19 +00:00
Merge pull request #16534 from opensourcerouting/fix/start_ldpd_if_unified
doc: Document on how to start specific daemons with unified config in topotests
This commit is contained in:
commit
c4fdc837c0
@ -1332,6 +1332,15 @@ Example:
|
|||||||
router.load_config(TopoRouter.RD_ZEBRA, "zebra.conf")
|
router.load_config(TopoRouter.RD_ZEBRA, "zebra.conf")
|
||||||
router.load_config(TopoRouter.RD_OSPF)
|
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
|
- The topology definition or build function
|
||||||
|
|
||||||
|
@ -1430,7 +1430,7 @@ class Router(Node):
|
|||||||
self.daemondir = None
|
self.daemondir = None
|
||||||
self.hasmpls = False
|
self.hasmpls = False
|
||||||
self.routertype = "frr"
|
self.routertype = "frr"
|
||||||
self.unified_config = None
|
self.unified_config = False
|
||||||
self.daemons = {
|
self.daemons = {
|
||||||
"zebra": 0,
|
"zebra": 0,
|
||||||
"ripd": 0,
|
"ripd": 0,
|
||||||
@ -1653,7 +1653,7 @@ class Router(Node):
|
|||||||
# print "Daemons before:", self.daemons
|
# print "Daemons before:", self.daemons
|
||||||
if daemon in self.daemons.keys() or daemon == "frr":
|
if daemon in self.daemons.keys() or daemon == "frr":
|
||||||
if daemon == "frr":
|
if daemon == "frr":
|
||||||
self.unified_config = 1
|
self.unified_config = True
|
||||||
else:
|
else:
|
||||||
self.daemons[daemon] = 1
|
self.daemons[daemon] = 1
|
||||||
if param is not None:
|
if param is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user