zebra: fix FPM node reusing VTY_NODE

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2020-04-15 12:26:01 +02:00
parent f4b8291fcb
commit 893d8beb4d
2 changed files with 3 additions and 1 deletions

View File

@ -149,6 +149,7 @@ enum node_type {
MPLS_NODE, /* MPLS config node */
PW_NODE, /* Pseudowire config node */
VTY_NODE, /* Vty node. */
FPM_NODE, /* Dataplane FPM node. */
LINK_PARAMS_NODE, /* Link-parameters node */
BGP_EVPN_VNI_NODE, /* BGP EVPN VNI */
RPKI_NODE, /* RPKI node for configuration of RPKI cache server

View File

@ -369,7 +369,8 @@ static int fpm_write_config(struct vty *vty)
}
static struct cmd_node fpm_node = {
.node = VTY_NODE,
.name = "fpm",
.node = FPM_NODE,
.prompt = "",
.config_write = fpm_write_config,
};