diff options
author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2025-01-14 06:34:08 +0100 |
---|---|---|
committer | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2025-01-14 06:34:08 +0100 |
commit | 8e66f821bf8d53603eb3fa4d30fedf5ad5ae52aa (patch) | |
tree | 5a8e6ecd64925a9ac73572348e096c2bd8fa89a9 /pimd/pim_bsm.c | |
parent | Merge pull request #17843 from LabNConsulting/chopps/new-docker-and-doc (diff) | |
download | frr-8e66f821bf8d53603eb3fa4d30fedf5ad5ae52aa.tar.xz frr-8e66f821bf8d53603eb3fa4d30fedf5ad5ae52aa.zip |
pimd: always write cand-rp group config even when rp is inactive
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Diffstat (limited to '')
-rw-r--r-- | pimd/pim_bsm.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/pimd/pim_bsm.c b/pimd/pim_bsm.c index 6c4d64923..5f1e36969 100644 --- a/pimd/pim_bsm.c +++ b/pimd/pim_bsm.c @@ -2165,6 +2165,7 @@ static void cand_addrsel_config_write(struct vty *vty, int pim_cand_config_write(struct pim_instance *pim, struct vty *vty) { struct bsm_scope *scope = &pim->global_scope; + struct cand_rp_group *group; int ret = 0; if (scope->cand_rp_addrsel.cfg_enable) { @@ -2176,14 +2177,11 @@ int pim_cand_config_write(struct pim_instance *pim, struct vty *vty) cand_addrsel_config_write(vty, &scope->cand_rp_addrsel); vty_out(vty, "\n"); ret++; + } - struct cand_rp_group *group; - - frr_each (cand_rp_groups, scope->cand_rp_groups, group) { - vty_out(vty, " bsr candidate-rp group %pFX\n", - &group->p); - ret++; - } + frr_each (cand_rp_groups, scope->cand_rp_groups, group) { + vty_out(vty, " bsr candidate-rp group %pFX\n", &group->p); + ret++; } if (scope->bsr_addrsel.cfg_enable) { |