]> git.puffer.fish Git - mirror/frr.git/commitdiff
Revert "Revert "vrrpd: protodown mvlans when shutting down""
authorQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 8 Mar 2019 18:35:04 +0000 (18:35 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 17 May 2019 00:27:08 +0000 (00:27 +0000)
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.

vrrpd/vrrp.c

index 6262cd692f3eba534db2b813c60818612de85fb2..cba79b544ed75713891a68e3b57f44bd36d19ca8 100644 (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;