summaryrefslogtreecommitdiff
path: root/ldpd/ldp_debug.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-04-16 19:24:56 -0400
committerGitHub <noreply@github.com>2020-04-16 19:24:56 -0400
commit2ff99507ad97fed3c2a0910605bd72524f497441 (patch)
treebb013e5a0ce2068d41ef6497b66449a4a5921a16 /ldpd/ldp_debug.c
parentedf7eff0778fbde82932b11246d41c62773934ac (diff)
parentd1b221f696b4d3ed3cd7f5b0ae1f19a07f87fd80 (diff)
Merge pull request #6135 from opensourcerouting/cli-node-cleanup
*: clean up the mess that is CLI command nodes
Diffstat (limited to 'ldpd/ldp_debug.c')
-rw-r--r--ldpd/ldp_debug.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/ldpd/ldp_debug.c b/ldpd/ldp_debug.c
index ec70ef510a..b9ef60ff94 100644
--- a/ldpd/ldp_debug.c
+++ b/ldpd/ldp_debug.c
@@ -29,12 +29,14 @@
struct ldp_debug conf_ldp_debug;
struct ldp_debug ldp_debug;
+static int ldp_debug_config_write(struct vty *);
+
/* Debug node. */
-struct cmd_node ldp_debug_node =
-{
- DEBUG_NODE,
- "",
- 1
+struct cmd_node ldp_debug_node = {
+ .name = "debug",
+ .node = DEBUG_NODE,
+ .prompt = "",
+ .config_write = ldp_debug_config_write,
};
int
@@ -142,7 +144,7 @@ ldp_vty_show_debugging(struct vty *vty)
return (CMD_SUCCESS);
}
-int
+static int
ldp_debug_config_write(struct vty *vty)
{
int write = 0;