summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-02-27 22:46:24 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-17 00:27:08 +0000
commit14eb6274e804d75c2cd0d4c117bef28a263ff97c (patch)
treebcaf0a21ffef8b1315b92d7e3e358a9275de7ae8
parent7e9fee6a662d93863a99bf967ac820ad26d23a37 (diff)
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 <qlyoung@cumulusnetworks.com>
-rw-r--r--vrrpd/vrrp.c5
1 files changed, 4 insertions, 1 deletions
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)