summaryrefslogtreecommitdiffstats
path: root/lib/if.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-07-29 20:34:56 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-07-29 20:35:25 +0200
commit9da01b0b7b6bc9a5cc129f850ff4f459ec33eb49 (patch)
tree05933a71eadb8313ace4088f2cce576f43fc1a1a /lib/if.h
parentMerge pull request #9222 from ton31337/fix/bgp_dampening_clear (diff)
downloadfrr-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/if.h b/lib/if.h
index 0d689fe14..43e2d3cff 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -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),