diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-09-19 05:55:34 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-09-19 19:34:06 +0200 |
commit | b0b69e59f463b696d0e20f30c46c59c9cf0044b1 (patch) | |
tree | 479eb980f6eb740d6399daa383a20d175a93ff0f /lib/if.c | |
parent | *: Convert from ->interface_up to the interface callback (diff) | |
download | frr-b0b69e59f463b696d0e20f30c46c59c9cf0044b1.tar.xz frr-b0b69e59f463b696d0e20f30c46c59c9cf0044b1.zip |
*: Convert interface_down to interface down callback
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/if.c')
-rw-r--r-- | lib/if.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -187,6 +187,12 @@ void if_up_via_zapi(struct interface *ifp) (*ifp_master.up_hook)(ifp); } +void if_down_via_zapi(struct interface *ifp) +{ + if (ifp_master.down_hook) + (*ifp_master.down_hook)(ifp); +} + struct interface *if_create(const char *name, vrf_id_t vrf_id) { return if_create_backend(name, IFINDEX_INTERNAL, vrf_id); |