]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: evpn json cli bug fix
authorLakshman Krishnamoorthy <lkrishnamoor@vmware.com>
Sat, 11 May 2019 16:33:10 +0000 (09:33 -0700)
committerLakshman Krishnamoorthy <lkrishnamoor@vmware.com>
Sat, 11 May 2019 16:33:10 +0000 (09:33 -0700)
commit0ac811af6074f6815514d231ff71ad5a0fb23611
treedb000e56ea8ed29f93c574615db8497d7fc4f5f1
parent764252d0ab48563eb171e09ce9d53e249e6e8a27
bgpd: evpn json cli bug fix

Bug: If there are 2 different prefixes under an rd, the
output of "show bgp l2vpn evpn json" would print only one of the
prefixes.

RCA: prefix info was added to the json_object once per rd. Hence,
prefix and rd were added just once, as the loop iterated over all
the prefixes and paths.

This is related to my earlier commit that went in via PR 4283:
https://github.com/FRRouting/frr/pull/4283

Signed-off-by: Lakshman Krishnamoorthy <lkrishnamoor@vmware.com>
bgpd/bgp_evpn_vty.c