mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-17 20:20:12 +00:00
vtysh: Fix vtysh node build warn errors
Two vtysh nodes were misplaced during a recent refactor and were not included under appropriate #ifdef directives and consequently triggered build warnings (errors) Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
This commit is contained in:
parent
6d3ce189ad
commit
662a1b0500
@ -1773,6 +1773,24 @@ DEFUNSH(VTYSH_BGPD, vnc_l2_group, vnc_l2_group_cmd, "vnc l2-group NAME",
|
||||
vty->node = BGP_VNC_L2_GROUP_NODE;
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
DEFUNSH(VTYSH_BGPD, exit_vnc_config, exit_vnc_config_cmd, "exit-vnc",
|
||||
"Exit from VNC configuration mode\n")
|
||||
{
|
||||
if (vty->node == BGP_VNC_DEFAULTS_NODE
|
||||
|| vty->node == BGP_VNC_NVE_GROUP_NODE
|
||||
|| vty->node == BGP_VNC_L2_GROUP_NODE)
|
||||
vty->node = BGP_NODE;
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
DEFUNSH(VTYSH_BGPD, exit_vrf_policy, exit_vrf_policy_cmd, "exit-vrf-policy",
|
||||
"Exit from VRF policy configuration mode\n")
|
||||
{
|
||||
if (vty->node == BGP_VRF_POLICY_NODE)
|
||||
vty->node = BGP_NODE;
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
#endif /* HAVE_BGPD */
|
||||
|
||||
@ -2106,17 +2124,6 @@ DEFUNSH(VTYSH_BGPD, exit_vni, exit_vni_cmd, "exit-vni", "Exit from VNI mode\n")
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
DEFUNSH(VTYSH_BGPD, exit_vnc_config, exit_vnc_config_cmd, "exit-vnc",
|
||||
"Exit from VNC configuration mode\n")
|
||||
{
|
||||
if (vty->node == BGP_VNC_DEFAULTS_NODE
|
||||
|| vty->node == BGP_VNC_NVE_GROUP_NODE
|
||||
|| vty->node == BGP_VNC_L2_GROUP_NODE)
|
||||
vty->node = BGP_NODE;
|
||||
return CMD_SUCCESS;
|
||||
|
||||
}
|
||||
|
||||
DEFUNSH(VTYSH_BGPD, rpki_exit, rpki_exit_cmd, "exit",
|
||||
"Exit current mode and down to previous mode\n")
|
||||
{
|
||||
@ -2142,14 +2149,6 @@ DEFUNSH(VTYSH_BGPD, bmp_quit, bmp_quit_cmd, "quit",
|
||||
{
|
||||
return bmp_exit(self, vty, argc, argv);
|
||||
}
|
||||
|
||||
DEFUNSH(VTYSH_BGPD, exit_vrf_policy, exit_vrf_policy_cmd, "exit-vrf-policy",
|
||||
"Exit from VRF policy configuration mode\n")
|
||||
{
|
||||
if (vty->node == BGP_VRF_POLICY_NODE)
|
||||
vty->node = BGP_NODE;
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
#endif /* HAVE_BGPD */
|
||||
|
||||
DEFUNSH(VTYSH_VRF, exit_vrf_config, exit_vrf_config_cmd, "exit-vrf",
|
||||
|
Loading…
Reference in New Issue
Block a user