Patch Contains 1. Addition of show ip bgp dampening command tree 2. Addition of show ip bgp dampening parameters to display BGP dampening parameters
Signed-off-by: Balaji.G <[email protected]> --- bgpd/bgp_route.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 77ee1c2..d537058 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -10134,6 +10134,29 @@ DEFUN (ipv6_mbgp_neighbor_advertised_route, } #endif /* HAVE_IPV6 */ + +DEFUN (show_ip_bgp_dampening_info, + show_ip_bgp_dampening_info_cmd, + "show ip bgp dampening (dampened-paths|flap-statistics|parameters)", + IP_STR + BGP_STR + "Display detailed information about dampening\n" + "Display paths suppressed due to dampening\n" + "Display flap-statistics of routes\n" + "Display detailed of configured dampening parameters\n") +{ + if (strncmp (argv[0], "d", 1) == 0) + return bgp_show (vty, NULL, AFI_IP, SAFI_UNICAST, + bgp_show_type_dampend_paths, NULL); + else if (strncmp (argv[0], "pa", 1) == 0) + return bgp_show_dampening_parameters (vty, AFI_IP, SAFI_UNICAST); + else if (strncmp (argv[0], "f", 1) == 0) + return bgp_show (vty, NULL, AFI_IP, SAFI_UNICAST, + bgp_show_type_flap_statistics, NULL); + + return CMD_SUCCESS; +} + DEFUN (show_ip_bgp_view_neighbor_received_routes, show_ip_bgp_view_neighbor_received_routes_cmd, "show ip bgp view WORD neighbors (A.B.C.D|X:X::X:X) received-routes", -- 1.9.1 _______________________________________________ Quagga-dev mailing list [email protected] https://lists.quagga.net/mailman/listinfo/quagga-dev
