diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-07-29 20:34:56 +0200 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-07-29 20:35:25 +0200 |
commit | 9da01b0b7b6bc9a5cc129f850ff4f459ec33eb49 (patch) | |
tree | 05933a71eadb8313ace4088f2cce576f43fc1a1a /lib/if.h | |
parent | Merge pull request #9222 from ton31337/fix/bgp_dampening_clear (diff) | |
download | frr-9da01b0b7b6bc9a5cc129f850ff4f459ec33eb49.tar.xz frr-9da01b0b7b6bc9a5cc129f850ff4f459ec33eb49.zip |
*: cleanup interface node installation
The only difference in daemons' interface node definition is the config
write function. No need to define the node in every daemon, just pass
the callback as an argument to a library function and define the node
there.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/if.h')
-rw-r--r-- | lib/if.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -597,7 +597,8 @@ struct if_link_params *if_link_params_get(struct interface *); void if_link_params_free(struct interface *); /* Northbound. */ -extern void if_cmd_init(void); +struct vty; +extern void if_cmd_init(int (*config_write)(struct vty *)); extern void if_zapi_callbacks(int (*create)(struct interface *ifp), int (*up)(struct interface *ifp), int (*down)(struct interface *ifp), |