diff options
| author | David Lamparter <equinox@diac24.net> | 2020-04-15 12:26:01 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2020-04-16 12:54:03 +0200 |
| commit | 893d8beb4d1ae92b7c3290aad163e65aa0675a5c (patch) | |
| tree | 454914c5f55594bf91124ef69a6d5d7a61f81da9 | |
| parent | f4b8291fcbcfb16c23d07c60d4669afaf396dbea (diff) | |
zebra: fix FPM node reusing VTY_NODE
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| -rw-r--r-- | lib/command.h | 1 | ||||
| -rw-r--r-- | zebra/dplane_fpm_nl.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/command.h b/lib/command.h index 6ab8497fe6..5629eb3679 100644 --- a/lib/command.h +++ b/lib/command.h @@ -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 diff --git a/zebra/dplane_fpm_nl.c b/zebra/dplane_fpm_nl.c index 0a827df141..0f77076c19 100644 --- a/zebra/dplane_fpm_nl.c +++ b/zebra/dplane_fpm_nl.c @@ -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, }; |
