mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 18:44:54 +00:00
topotests: skip daemons without configuration
Lets not start daemons without configurations. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
20ec1f7038
commit
4000805713
@ -80,21 +80,24 @@ def setup_module(mod):
|
||||
|
||||
router_list = tgen.routers()
|
||||
for rname, router in router_list.items():
|
||||
router.load_config(
|
||||
TopoRouter.RD_ZEBRA, os.path.join(CWD, "{}/zebra.conf".format(rname))
|
||||
)
|
||||
router.load_config(
|
||||
TopoRouter.RD_BFD, os.path.join(CWD, "{}/bfdd.conf".format(rname))
|
||||
)
|
||||
router.load_config(
|
||||
TopoRouter.RD_BGP, os.path.join(CWD, "{}/bgpd.conf".format(rname))
|
||||
)
|
||||
router.load_config(
|
||||
TopoRouter.RD_OSPF, os.path.join(CWD, "{}/ospfd.conf".format(rname))
|
||||
)
|
||||
router.load_config(
|
||||
TopoRouter.RD_OSPF6, os.path.join(CWD, "{}/ospf6d.conf".format(rname))
|
||||
)
|
||||
daemon_file = "{}/{}/zebra.conf".format(CWD, rname)
|
||||
router.load_config(TopoRouter.RD_ZEBRA, daemon_file)
|
||||
|
||||
daemon_file = "{}/{}/bfdd.conf".format(CWD, rname)
|
||||
if os.path.isfile(daemon_file):
|
||||
router.load_config(TopoRouter.RD_BFD, daemon_file)
|
||||
|
||||
daemon_file = "{}/{}/bgpd.conf".format(CWD, rname)
|
||||
if os.path.isfile(daemon_file):
|
||||
router.load_config(TopoRouter.RD_BGP, daemon_file)
|
||||
|
||||
daemon_file = "{}/{}/ospfd.conf".format(CWD, rname)
|
||||
if os.path.isfile(daemon_file):
|
||||
router.load_config(TopoRouter.RD_OSPF, daemon_file)
|
||||
|
||||
daemon_file = "{}/{}/ospf6d.conf".format(CWD, rname)
|
||||
if os.path.isfile(daemon_file):
|
||||
router.load_config(TopoRouter.RD_OSPF6, daemon_file)
|
||||
|
||||
# Initialize all routers.
|
||||
tgen.start_router()
|
||||
|
Loading…
Reference in New Issue
Block a user