summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_vty.c
diff options
context:
space:
mode:
authorSri Mohana Singamsetty <srimohans@gmail.com>2018-12-04 19:19:18 +0100
committerGitHub <noreply@github.com>2018-12-04 19:19:18 +0100
commitad31e8d39872e373a014d78779b1cdd0ae283554 (patch)
treebb6227f4e2ff4e750a35a32c851ac43b2644b8dc /zebra/zebra_vty.c
parentMerge pull request #3174 from opensourcerouting/feature/isis-triggered-hello (diff)
parentzebra: Add "show evpn mac vni all detail" command (diff)
downloadfrr-ad31e8d39872e373a014d78779b1cdd0ae283554.tar.xz
frr-ad31e8d39872e373a014d78779b1cdd0ae283554.zip
Merge pull request #3372 from nitinsoniism/show_evpn_mac_vni_all_detail
zebra: Add "show evpn mac vni all detail" command
Diffstat (limited to 'zebra/zebra_vty.c')
-rw-r--r--zebra/zebra_vty.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index 3eaf0270d..7052fab01 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -1990,6 +1990,24 @@ DEFUN (show_evpn_mac_vni_all,
return CMD_SUCCESS;
}
+DEFUN (show_evpn_mac_vni_all_detail, show_evpn_mac_vni_all_detail_cmd,
+ "show evpn mac vni all detail [json]",
+ SHOW_STR
+ "EVPN\n"
+ "MAC addresses\n"
+ "VxLAN Network Identifier\n"
+ "All VNIs\n"
+ "Detailed Information On Each VNI MAC\n"
+ JSON_STR)
+{
+ struct zebra_vrf *zvrf;
+ bool uj = use_json(argc, argv);
+
+ zvrf = vrf_info_lookup(VRF_DEFAULT);
+ zebra_vxlan_print_macs_all_vni_detail(vty, zvrf, false, uj);
+ return CMD_SUCCESS;
+}
+
DEFUN (show_evpn_mac_vni_all_vtep,
show_evpn_mac_vni_all_vtep_cmd,
"show evpn mac vni all vtep A.B.C.D [json]",
@@ -2922,6 +2940,7 @@ void zebra_vty_init(void)
install_element(VIEW_NODE, &show_evpn_nh_vni_all_cmd);
install_element(VIEW_NODE, &show_evpn_mac_vni_cmd);
install_element(VIEW_NODE, &show_evpn_mac_vni_all_cmd);
+ install_element(VIEW_NODE, &show_evpn_mac_vni_all_detail_cmd);
install_element(VIEW_NODE, &show_evpn_mac_vni_all_vtep_cmd);
install_element(VIEW_NODE, &show_evpn_mac_vni_mac_cmd);
install_element(VIEW_NODE, &show_evpn_mac_vni_vtep_cmd);