From 14eb6274e804d75c2cd0d4c117bef28a263ff97c Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Wed, 27 Feb 2019 22:46:24 +0000 Subject: [PATCH] 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 --- vrrpd/vrrp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vrrpd/vrrp.c b/vrrpd/vrrp.c index b9c7b3d2c0..44885f2e55 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) -- 2.39.5