]> git.puffer.fish 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)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 16 May 2019 20:35:06 +0000 (16:35 -0400)
commit0093f833393b522a601dc26d99f7d973ebd6f137
tree2dd2c21553e638610400c6944e0745b92fbe8118
parent0e4c75d6d96cc823d86f48910dac51b5fe9834c3
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