]> git.proxmox.com Git - mirror_frr.git/commit - vrrpd/vrrp.c
vrrpd: try to bind interfaces on if_down notifications
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 1 Aug 2019 17:38:46 +0000 (17:38 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 2 Aug 2019 17:26:05 +0000 (17:26 +0000)
commit2e3d75646ed26c27042383d567450abfabecd080
tree4fc7d05e0a60fdd6813c0c269b869c612bf24e2c
parent6f908ded80eeba40a850e8d1f6246fb3ed31e648
vrrpd: try to bind interfaces on if_down notifications

Normally we only opportunistically try to bind interfaces to VRRP
instances upon getting if_add and if_up notifications; now that Zebra
sends if_down notifications when interfaces change while they are down,
we should try to bind when we get those as well.

This solves a bug where VRRP would not bind and activate virtual routers
to valid interfaces because their MACs were changed to VRRP macs while
the interface was down.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
vrrpd/vrrp.c