diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-09-19 05:07:44 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-09-19 19:34:06 +0200 |
commit | ddbf3e60604019d4b38d51226700e2244cc531b6 (patch) | |
tree | d3403922091432832dfffe8b86e8c6610691e177 /lib/if.c | |
parent | *: Switch all zclient->interface_add to interface create callback (diff) | |
download | frr-ddbf3e60604019d4b38d51226700e2244cc531b6.tar.xz frr-ddbf3e60604019d4b38d51226700e2244cc531b6.zip |
*: Convert from ->interface_up to the interface callback
For all the places we have a zclient->interface_up convert
them to use the interface ifp_up callback instead.
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
@@ -181,6 +181,12 @@ void if_new_via_zapi(struct interface *ifp) (*ifp_master.create_hook)(ifp); } +void if_up_via_zapi(struct interface *ifp) +{ + if (ifp_master.up_hook) + (*ifp_master.up_hook)(ifp); +} + struct interface *if_create(const char *name, vrf_id_t vrf_id) { return if_create_backend(name, IFINDEX_INTERNAL, vrf_id); |