summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_vty.c
diff options
context:
space:
mode:
authorNitin Soni <nsoni@cumulusnetworks.com>2018-11-22 10:56:52 +0100
committerNitin Soni <nsoni@cumulusnetworks.com>2018-11-27 14:56:56 +0100
commite3fac9195d98fbbc8de1c83e47e701b0fa750132 (patch)
tree50cd7ac7b67cac772240cc25dee1236e26d73e37 /zebra/zebra_vty.c
parentMerge pull request #3351 from chiragshah6/ospfv3_dev (diff)
downloadfrr-e3fac9195d98fbbc8de1c83e47e701b0fa750132.tar.xz
frr-e3fac9195d98fbbc8de1c83e47e701b0fa750132.zip
zebra: Add "show evpn arp-cache vni all detail" command
Change helps display detailed output for all possible VNI neighbors without specifying VNI and ip. It helps in troubleshooting as a single command can be fired to capture detailed info on all VNIs. Ticket: CM-22832 Signed-off-by: Nitin Soni <nsoni@cumulusnetworks.com> Reviewed-by: CCR-8034
Diffstat (limited to 'zebra/zebra_vty.c')
-rw-r--r--zebra/zebra_vty.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index 536fdabcb..ad6bfe575 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -2181,6 +2181,23 @@ DEFUN (show_evpn_neigh_vni_all,
return CMD_SUCCESS;
}
+DEFUN (show_evpn_neigh_vni_all_detail, show_evpn_neigh_vni_all_detail_cmd,
+ "show evpn arp-cache vni all detail [json]",
+ SHOW_STR
+ "EVPN\n"
+ "ARP and ND cache\n"
+ "VxLAN Network Identifier\n"
+ "All VNIs\n"
+ "Neighbor details for all vnis in detail\n" JSON_STR)
+{
+ struct zebra_vrf *zvrf;
+ bool uj = use_json(argc, argv);
+
+ zvrf = vrf_info_lookup(VRF_DEFAULT);
+ zebra_vxlan_print_neigh_all_vni_detail(vty, zvrf, false, uj);
+ return CMD_SUCCESS;
+}
+
DEFUN (show_evpn_neigh_vni_neigh,
show_evpn_neigh_vni_neigh_cmd,
"show evpn arp-cache vni " CMD_VNI_RANGE " ip WORD [json]",
@@ -2892,6 +2909,7 @@ void zebra_vty_init(void)
install_element(VIEW_NODE, &show_evpn_mac_vni_all_dad_cmd);
install_element(VIEW_NODE, &show_evpn_neigh_vni_cmd);
install_element(VIEW_NODE, &show_evpn_neigh_vni_all_cmd);
+ install_element(VIEW_NODE, &show_evpn_neigh_vni_all_detail_cmd);
install_element(VIEW_NODE, &show_evpn_neigh_vni_neigh_cmd);
install_element(VIEW_NODE, &show_evpn_neigh_vni_vtep_cmd);
install_element(VIEW_NODE, &show_evpn_neigh_vni_dad_cmd);