diff options
author | vivek <vivek@cumulusnetworks.com> | 2016-03-07 01:08:49 +0100 |
---|---|---|
committer | vivek <vivek@cumulusnetworks.com> | 2016-03-07 01:08:49 +0100 |
commit | 50ef26d42f65cca6d225cb6a7b19432148335eda (patch) | |
tree | 72fd8bfe34f6f9f9a89163a36b28dbdc9728fddf /bgpd/bgp_nexthop.c | |
parent | quagga-reload should not call vtysh for every command that needs to be (diff) | |
download | frr-50ef26d42f65cca6d225cb6a7b19432148335eda.tar.xz frr-50ef26d42f65cca6d225cb6a7b19432148335eda.zip |
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
Diffstat (limited to 'bgpd/bgp_nexthop.c')
-rw-r--r-- | bgpd/bgp_nexthop.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c index a5e56725a..586a63686 100644 --- a/bgpd/bgp_nexthop.c +++ b/bgpd/bgp_nexthop.c @@ -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 |