mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 06:14:35 +00:00
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>
This commit is contained in:
parent
a58e6e0c27
commit
fb8384733f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user