From: Don Slice Date: Wed, 17 Oct 2018 13:35:10 +0000 (+0000) Subject: bgpd: add command to display update groups for l2vpn evpn X-Git-Tag: frr-7.1-dev~264^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=43d3f4fcd3db4b8126f6a57020831acf93896378;p=matthieu%2Ffrr.git bgpd: add command to display update groups for l2vpn evpn For troubleshooting purposes, it's useful to display the update-groups for l2vpn evpn Signed-off-by: Don Slice --- diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 88025337b2..20e6a18251 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -11375,6 +11375,23 @@ DEFUN (show_bgp_instance_all_ipv6_updgrps, return CMD_SUCCESS; } +DEFUN (show_bgp_l2vpn_evpn_updgrps, + show_bgp_l2vpn_evpn_updgrps_cmd, + "show [ip] bgp l2vpn evpn update-groups", + SHOW_STR + IP_STR + BGP_STR + "l2vpn address family\n" + "evpn sub-address family\n" + "Detailed info about dynamic update groups\n") +{ + char *vrf = NULL; + uint64_t subgrp_id = 0; + + bgp_show_update_groups(vty, vrf, AFI_L2VPN, SAFI_EVPN, subgrp_id); + return CMD_SUCCESS; +} + DEFUN (show_bgp_updgrps_stats, show_bgp_updgrps_stats_cmd, "show [ip] bgp update-groups statistics", @@ -13606,6 +13623,7 @@ void bgp_vty_init(void) /* "show [ip] bgp summary" commands. */ install_element(VIEW_NODE, &show_bgp_instance_all_ipv6_updgrps_cmd); + install_element(VIEW_NODE, &show_bgp_l2vpn_evpn_updgrps_cmd); install_element(VIEW_NODE, &show_bgp_instance_updgrps_stats_cmd); install_element(VIEW_NODE, &show_bgp_updgrps_stats_cmd); install_element(VIEW_NODE, &show_ip_bgp_instance_updgrps_adj_s_cmd);