From fb8384733f1865dbec3a8def0fb18ab4d78f0b47 Mon Sep 17 00:00:00 2001 From: Mitesh Kanjariya Date: Wed, 29 Nov 2017 17:50:42 -0800 Subject: [PATCH] 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 --- bgpd/bgp_evpn_vty.c | 2 -- 1 file changed, 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) -- 2.39.5