summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_pw.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_pw.c')
-rw-r--r--zebra/zebra_pw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/zebra_pw.c b/zebra/zebra_pw.c
index 16f39cd0c..9717805d0 100644
--- a/zebra/zebra_pw.c
+++ b/zebra/zebra_pw.c
@@ -547,14 +547,16 @@ static int zebra_pw_config(struct vty *vty)
return write;
}
+static int zebra_pw_config(struct vty *vty);
static struct cmd_node pw_node = {
.node = PW_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);