summaryrefslogtreecommitdiff
path: root/zebra/zebra_pw.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_pw.c')
-rw-r--r--zebra/zebra_pw.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/zebra/zebra_pw.c b/zebra/zebra_pw.c
index 610a052c31..7a14f6304f 100644
--- a/zebra/zebra_pw.c
+++ b/zebra/zebra_pw.c
@@ -547,13 +547,18 @@ static int zebra_pw_config(struct vty *vty)
return write;
}
+static int zebra_pw_config(struct vty *vty);
static struct cmd_node pw_node = {
- PW_NODE, "%s(config-pw)# ", 1,
+ .name = "pw",
+ .node = PW_NODE,
+ .parent_node = CONFIG_NODE,
+ .prompt = "%s(config-pw)# ",
+ .config_write = zebra_pw_config,
};
void zebra_pw_vty_init(void)
{
- install_node(&pw_node, zebra_pw_config);
+ install_node(&pw_node);
install_default(PW_NODE);
install_element(CONFIG_NODE, &pseudowire_if_cmd);