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:
vivek 2016-03-07 00:08:49 +00:00
parent 4a2587c6dc
commit 50ef26d42f
3 changed files with 657 additions and 94 deletions

View File

@ -483,6 +483,32 @@ DEFUN (show_ip_bgp_nexthop_detail,
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
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_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

File diff suppressed because it is too large Load Diff

View File

@ -10940,7 +10940,7 @@ DEFUN (show_ip_bgp_attr_info,
}
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;