mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:30:30 +00:00
BGP: Update commands for VRF support
Ensure commands dealing with display of routes and nexthops support VRFs. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Ticket: CM-9247 Reviewed By: CCR-4250 Testing Done: Manual
This commit is contained in:
parent
4a2587c6dc
commit
50ef26d42f
@ -483,6 +483,32 @@ DEFUN (show_ip_bgp_nexthop_detail,
|
|||||||
return show_ip_bgp_nexthop_table (vty, NULL, 1);
|
return show_ip_bgp_nexthop_table (vty, NULL, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEFUN (show_ip_bgp_view_nexthop,
|
||||||
|
show_ip_bgp_view_nexthop_cmd,
|
||||||
|
"show ip bgp (view|vrf) WORD nexthop",
|
||||||
|
SHOW_STR
|
||||||
|
IP_STR
|
||||||
|
BGP_STR
|
||||||
|
"BGP view\nBGP VRF\n"
|
||||||
|
"View/VRF name\n"
|
||||||
|
"BGP nexthop table\n")
|
||||||
|
{
|
||||||
|
return show_ip_bgp_nexthop_table (vty, argv[1], 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
DEFUN (show_ip_bgp_view_nexthop_detail,
|
||||||
|
show_ip_bgp_view_nexthop_detail_cmd,
|
||||||
|
"show ip bgp (view|vrf) WORD nexthop detail",
|
||||||
|
SHOW_STR
|
||||||
|
IP_STR
|
||||||
|
BGP_STR
|
||||||
|
"BGP view\nBGP VRF\n"
|
||||||
|
"View/VRF name\n"
|
||||||
|
"BGP nexthop table\n")
|
||||||
|
{
|
||||||
|
return show_ip_bgp_nexthop_table (vty, argv[1], 1);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
bgp_scan_init (struct bgp *bgp)
|
bgp_scan_init (struct bgp *bgp)
|
||||||
{
|
{
|
||||||
@ -505,6 +531,10 @@ bgp_scan_vty_init (void)
|
|||||||
install_element (VIEW_NODE, &show_ip_bgp_nexthop_cmd);
|
install_element (VIEW_NODE, &show_ip_bgp_nexthop_cmd);
|
||||||
install_element (VIEW_NODE, &show_ip_bgp_nexthop_detail_cmd);
|
install_element (VIEW_NODE, &show_ip_bgp_nexthop_detail_cmd);
|
||||||
install_element (ENABLE_NODE, &show_ip_bgp_nexthop_detail_cmd);
|
install_element (ENABLE_NODE, &show_ip_bgp_nexthop_detail_cmd);
|
||||||
|
install_element (ENABLE_NODE, &show_ip_bgp_view_nexthop_cmd);
|
||||||
|
install_element (VIEW_NODE, &show_ip_bgp_view_nexthop_cmd);
|
||||||
|
install_element (VIEW_NODE, &show_ip_bgp_view_nexthop_detail_cmd);
|
||||||
|
install_element (ENABLE_NODE, &show_ip_bgp_view_nexthop_detail_cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
717
bgpd/bgp_route.c
717
bgpd/bgp_route.c
File diff suppressed because it is too large
Load Diff
@ -10940,7 +10940,7 @@ DEFUN (show_ip_bgp_attr_info,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int bgp_show_update_groups(int afi, int safi, struct vty *vty,
|
static int bgp_show_update_groups(int afi, int safi, struct vty *vty,
|
||||||
u_int64_t subgrp_id)
|
u_int64_t subgrp_id)
|
||||||
{
|
{
|
||||||
struct bgp *bgp;
|
struct bgp *bgp;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user