diff options
| author | Sri Mohana Singamsetty <srimohans@gmail.com> | 2019-05-17 11:39:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-17 11:39:27 -0700 |
| commit | 7cfaf4b3394de78bc1a48b22d84f118a80f88b98 (patch) | |
| tree | 87ddfdf3ed07c95ca01c470b49dfaa46b26ea2ce /zebra/interface.c | |
| parent | 02f4c3ab5b33f5f17b592ef7787797a0e43d0785 (diff) | |
| parent | 53ca01e52c487954f68ab7a76f163cf465fb9209 (diff) | |
Merge pull request #4168 from qlyoung/vrrp
VRRP
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 10 |
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) |
