summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorSri Mohana Singamsetty <srimohans@gmail.com>2019-05-17 11:39:27 -0700
committerGitHub <noreply@github.com>2019-05-17 11:39:27 -0700
commit7cfaf4b3394de78bc1a48b22d84f118a80f88b98 (patch)
tree87ddfdf3ed07c95ca01c470b49dfaa46b26ea2ce /zebra/interface.c
parent02f4c3ab5b33f5f17b592ef7787797a0e43d0785 (diff)
parent53ca01e52c487954f68ab7a76f163cf465fb9209 (diff)
Merge pull request #4168 from qlyoung/vrrp
VRRP
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index b0ddcaf8bc..13582008a7 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -47,6 +47,7 @@
#include "zebra/irdp.h"
#include "zebra/zebra_ptm.h"
#include "zebra/rt_netlink.h"
+#include "zebra/if_netlink.h"
#include "zebra/interface.h"
#include "zebra/zebra_vxlan.h"
#include "zebra/zebra_errors.h"
@@ -1063,7 +1064,14 @@ void zebra_if_update_all_links(void)
}
}
-
+void zebra_if_set_protodown(struct interface *ifp, bool down)
+{
+#ifdef HAVE_NETLINK
+ netlink_protodown(ifp, down);
+#else
+ zlog_warn("Protodown is not supported on this platform");
+#endif
+}
/* Output prefix string to vty. */
static int prefix_vty_out(struct vty *vty, struct prefix *p)