]> git.proxmox.com Git - mirror_frr.git/commit
pimd: Instate partial rp_list(when its full) to bsrp_list(main list).
authorsaravanank <saravanank@vmware.com>
Sat, 4 May 2019 16:46:14 +0000 (09:46 -0700)
committersaravanank <saravanank@vmware.com>
Wed, 15 May 2019 04:41:36 +0000 (21:41 -0700)
commit20fd30e50c98e8d7b4914efa2525dc8bc7b2f89a
tree2df1862299e3d297656d7a782737eab42894faa5
parent7b3e6ba1aae04061a219f7444c7216ba1c09c4db
pimd: Instate partial rp_list(when its full) to bsrp_list(main list).

When all rp received on a partial list, this routine is called.
if static rp configured for the group range
    if partial list is empty
         clean main list and partial list
    else
         replace main with partial and start the g2rp timer with head of new main
    return

if main list was empty
    call rp new with head of partial list and start g2rp timer.
else
    if partial list is empty
         call rp del
    else
         stop g2rp timer of old elected rp.
         call rp change with new rp(head of partial list) and start g2rp timer.

swap the lists and clean the old list(now partial list).

Signed-off-by: Saravanan K <saravanank@vmware.com>
pimd/pim_bsm.c