summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>2017-11-29 17:50:42 -0800
committermitesh <mitesh@cumulusnetworks.com>2018-01-23 16:23:31 -0800
commitfb8384733f1865dbec3a8def0fb18ab4d78f0b47 (patch)
tree66aeef82fe04a663ea8ed0f0dea35ef612f7ad7e
parenta58e6e0c27a1798200ea0b8bb13f52edb5824a71 (diff)
bgpd: fix show bgp l2vpn evpn vni command
We bail in the command if no l2vnis are present. This is incorrect as we now print both l2 and l3 vnis together. Ticket: CM-19022 Review: Trivial Testing: Manual Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
-rw-r--r--bgpd/bgp_evpn_vty.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c
index 7d4a199f02..607a058184 100644
--- a/bgpd/bgp_evpn_vty.c
+++ b/bgpd/bgp_evpn_vty.c
@@ -2864,8 +2864,6 @@ DEFUN(show_bgp_l2vpn_evpn_vni,
if ((uj && argc == ((idx + 1) + 2)) || (!uj && argc == (idx + 1) + 1)) {
num_l2vnis = hashcount(bgp_def->vnihash);
- if (!num_l2vnis)
- return CMD_SUCCESS;
for (ALL_LIST_ELEMENTS_RO(bm->bgp, node, bgp_temp)) {
if (bgp_temp->l3vni)