Revert "Revert "vrrpd: protodown mvlans when shutting down""

Now that the requirement of knowing our VRRP IPv6 primary address in
advance is lifted, it's no problem for us that the macvlans could be
down when we get them. We can handle this in both the v4 and v6 case
now, so we don't need to behave as if they should always be left up.

This reverts commit 6eae67dabcbc31a2117ce3847c18ac52b3b76b1e.
This commit is contained in:
Quentin Young 2019-03-08 18:35:04 +00:00
parent 1760ce424b
commit 4d2ea6bf28

View File

@ -1555,6 +1555,9 @@ static int vrrp_shutdown(struct vrrp_router *r)
THREAD_OFF(r->t_read);
THREAD_OFF(r->t_write);
/* Protodown macvlan */
vrrp_zclient_send_interface_protodown(r->mvl_ifp, true);
if (r->sock_rx > 0) {
close(r->sock_rx);
r->sock_rx = -1;