diff options
Diffstat (limited to 'bgpd/bgp_vty.c')
| -rw-r--r-- | bgpd/bgp_vty.c | 74 |
1 files changed, 54 insertions, 20 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 8f06fdf86c..6700b632a5 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -15335,50 +15335,82 @@ int bgp_config_write(struct vty *vty) /* BGP node structure. */ static struct cmd_node bgp_node = { - BGP_NODE, "%s(config-router)# ", 1, + .node = BGP_NODE, + .prompt = "%s(config-router)# ", + .vtysh = 1, }; static struct cmd_node bgp_ipv4_unicast_node = { - BGP_IPV4_NODE, "%s(config-router-af)# ", 1, + .node = BGP_IPV4_NODE, + .prompt = "%s(config-router-af)# ", + .vtysh = 1, }; static struct cmd_node bgp_ipv4_multicast_node = { - BGP_IPV4M_NODE, "%s(config-router-af)# ", 1, + .node = BGP_IPV4M_NODE, + .prompt = "%s(config-router-af)# ", + .vtysh = 1, }; static struct cmd_node bgp_ipv4_labeled_unicast_node = { - BGP_IPV4L_NODE, "%s(config-router-af)# ", 1, + .node = BGP_IPV4L_NODE, + .prompt = "%s(config-router-af)# ", + .vtysh = 1, }; static struct cmd_node bgp_ipv6_unicast_node = { - BGP_IPV6_NODE, "%s(config-router-af)# ", 1, + .node = BGP_IPV6_NODE, + .prompt = "%s(config-router-af)# ", + .vtysh = 1, }; static struct cmd_node bgp_ipv6_multicast_node = { - BGP_IPV6M_NODE, "%s(config-router-af)# ", 1, + .node = BGP_IPV6M_NODE, + .prompt = "%s(config-router-af)# ", + .vtysh = 1, }; static struct cmd_node bgp_ipv6_labeled_unicast_node = { - BGP_IPV6L_NODE, "%s(config-router-af)# ", 1, + .node = BGP_IPV6L_NODE, + .prompt = "%s(config-router-af)# ", + .vtysh = 1, }; -static struct cmd_node bgp_vpnv4_node = {BGP_VPNV4_NODE, - "%s(config-router-af)# ", 1}; +static struct cmd_node bgp_vpnv4_node = { + .node = BGP_VPNV4_NODE, + .prompt = "%s(config-router-af)# ", + .vtysh = 1, +}; -static struct cmd_node bgp_vpnv6_node = {BGP_VPNV6_NODE, - "%s(config-router-af-vpnv6)# ", 1}; +static struct cmd_node bgp_vpnv6_node = { + .node = BGP_VPNV6_NODE, + .prompt = "%s(config-router-af-vpnv6)# ", + .vtysh = 1, +}; -static struct cmd_node bgp_evpn_node = {BGP_EVPN_NODE, - "%s(config-router-evpn)# ", 1}; +static struct cmd_node bgp_evpn_node = { + .node = BGP_EVPN_NODE, + .prompt = "%s(config-router-evpn)# ", + .vtysh = 1, +}; -static struct cmd_node bgp_evpn_vni_node = {BGP_EVPN_VNI_NODE, - "%s(config-router-af-vni)# ", 1}; +static struct cmd_node bgp_evpn_vni_node = { + .node = BGP_EVPN_VNI_NODE, + .prompt = "%s(config-router-af-vni)# ", + .vtysh = 1, +}; -static struct cmd_node bgp_flowspecv4_node = {BGP_FLOWSPECV4_NODE, - "%s(config-router-af)# ", 1}; +static struct cmd_node bgp_flowspecv4_node = { + .node = BGP_FLOWSPECV4_NODE, + .prompt = "%s(config-router-af)# ", + .vtysh = 1, +}; -static struct cmd_node bgp_flowspecv6_node = {BGP_FLOWSPECV6_NODE, - "%s(config-router-af-vpnv6)# ", 1}; +static struct cmd_node bgp_flowspecv6_node = { + .node = BGP_FLOWSPECV6_NODE, + .prompt = "%s(config-router-af-vpnv6)# ", + .vtysh = 1, +}; static void community_list_vty(void); @@ -17859,7 +17891,9 @@ static int community_list_config_write(struct vty *vty) } static struct cmd_node community_list_node = { - COMMUNITY_LIST_NODE, "", 1 /* Export to vtysh. */ + .node = COMMUNITY_LIST_NODE, + .prompt = "", + .vtysh = 1, }; static void community_list_vty(void) |
