From: Quentin Young Date: Wed, 27 Feb 2019 22:46:24 +0000 (+0000) Subject: vrrpd: set autoconfed VRRP ifaces protodown off X-Git-Tag: frr-7.2~355^2~54 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=14eb6274e804d75c2cd0d4c117bef28a263ff97c;p=mirror_frr.git vrrpd: set autoconfed VRRP ifaces protodown off 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 --- diff --git a/vrrpd/vrrp.c b/vrrpd/vrrp.c index b9c7b3d2c..44885f2e5 100644 --- a/vrrpd/vrrp.c +++ b/vrrpd/vrrp.c @@ -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)