mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-02 18:56:53 +00:00
vrrpd: transition to master when adv timer expires
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
10133a5996
commit
c7e3b83d15
@ -845,6 +845,14 @@ static int vrrp_master_down_timer_expire(struct thread *thread)
|
||||
zlog_info(VRRP_LOGPFX VRRP_LOGPFX_VRID "Master_Down_Timer expired",
|
||||
r->vr->vrid);
|
||||
|
||||
vrrp_send_advertisement(r);
|
||||
if (r->family == AF_INET)
|
||||
vrrp_garp_send_all(r);
|
||||
thread_add_timer_msec(master, vrrp_adver_timer_expire, r,
|
||||
r->vr->advertisement_interval * 10,
|
||||
&r->t_adver_timer);
|
||||
vrrp_change_state(r, VRRP_STATE_MASTER);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user