]> git.proxmox.com Git - mirror_frr.git/commitdiff
vrrpd: set autoconfed VRRP ifaces protodown off
authorQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 27 Feb 2019 22:46:24 +0000 (22:46 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 17 May 2019 00:27:08 +0000 (00:27 +0000)
If we just detected a macvlan and used it to automatically create an
interface, set that interface into protodown off. This way users don't
have to manually bring the interface back up in order to get autoconfig
to work again.

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

index b9c7b3d2c0c614b40b66b28ddb0b5fc766d262b7..44885f2e55db1b72a4812241d962f70c2f9f8edf 100644 (file)
@@ -1654,7 +1654,10 @@ static int vrrp_autoconfig_if_add(struct interface *ifp)
 
        if (!vr) {
                vr = vrrp_autoconfig_autocreate(ifp);
-               created = true;
+               if (vr) {
+                       created = true;
+                       vrrp_zclient_send_interface_protodown(ifp, false);
+               }
        }
 
        if (!vr)