diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2022-02-26 19:59:48 -0600 |
|---|---|---|
| committer | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2022-02-27 20:53:18 -0600 |
| commit | a4b4bb5077c3c11cc13f43ef15dd3a3e7251a54c (patch) | |
| tree | f517fb701d59b9b412b75386aed39ddf55a4f357 /pimd/pim_join.c | |
| parent | ae45a630222b53b02d8fc7cd84bb24d8744cd09c (diff) | |
topotests: add support for frr.conf as a unified config
This PR adds support for configuring topotest routers using a single file.
instead of:
```
router.load_config(
TopoRouter.RD_ZEBRA, os.path.join(CWD, "{}/zebra.conf".format(rname))
)
router.load_config(
TopoRouter.RD_OSPF, os.path.join(CWD, "{}/ospfd.conf".format(rname))
)
router.load_config(
TopoRouter.RD_BGP, os.path.join(CWD, "{}/bgpd.conf".format(rname))
)
```
you can now do:
```
router.load_frr_config(
os.path.join(CWD, "{}/frr.conf".format(rname)),
[TopoRouter.RD_ZEBRA, TopoRouter.RD_OSPF, TopoRouter.RD_BGP]
)
```
or just:
```
router.load_frr_config(os.path.join(CWD, "{}/frr.conf".format(rname)))
```
In this latter case, the daemons list will be inferred from frr.conf file.
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Diffstat (limited to 'pimd/pim_join.c')
0 files changed, 0 insertions, 0 deletions
