From 8e66f821bf8d53603eb3fa4d30fedf5ad5ae52aa Mon Sep 17 00:00:00 2001 From: Jafar Al-Gharaibeh Date: Mon, 13 Jan 2025 23:34:08 -0600 Subject: pimd: always write cand-rp group config even when rp is inactive Signed-off-by: Jafar Al-Gharaibeh --- pimd/pim_bsm.c | 12 +++++------- 1 file 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) { -- cgit v1.2.3