summaryrefslogtreecommitdiffstats
path: root/zebra/dplane_fpm_nl.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/dplane_fpm_nl.c')
-rw-r--r--zebra/dplane_fpm_nl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/dplane_fpm_nl.c b/zebra/dplane_fpm_nl.c
index f3bc670a1..0a827df14 100644
--- a/zebra/dplane_fpm_nl.c
+++ b/zebra/dplane_fpm_nl.c
@@ -368,9 +368,10 @@ static int fpm_write_config(struct vty *vty)
return written;
}
-struct cmd_node fpm_node = {
+static struct cmd_node fpm_node = {
.node = VTY_NODE,
.prompt = "",
+ .config_write = fpm_write_config,
};
/*
@@ -1102,7 +1103,7 @@ static int fpm_nl_new(struct thread_master *tm)
if (IS_ZEBRA_DEBUG_DPLANE)
zlog_debug("%s register status: %d", prov_name, rv);
- install_node(&fpm_node, fpm_write_config);
+ install_node(&fpm_node);
install_element(ENABLE_NODE, &fpm_show_counters_cmd);
install_element(ENABLE_NODE, &fpm_show_counters_json_cmd);
install_element(ENABLE_NODE, &fpm_reset_counters_cmd);