]> git.puffer.fish Git - mirror/frr.git/commit
BGP: "show ip bgp neighbor json" keys are stepping all over each other
authorDaniel Walton <dwalton@cumulusnetworks.com>
Wed, 18 May 2016 13:31:59 +0000 (13:31 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Wed, 18 May 2016 13:31:59 +0000 (13:31 +0000)
commite8f7da3a90c2fd0fbbff438665301d78d7773a40
treebae2ac71c88961bb1d9562e12b819d6ff7a60f3e
parentb1e0634c964d81eb6c5d81d69e4f89759302dce3
BGP: "show ip bgp neighbor json" keys are stepping all over each other

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-11007

bgp_show_neighbor() was allocating a json_neigh struct and using that
for every single peer...so the resulting json was a munge of state from
all peers

We need to allocate a new json_neigh for each neighbor.
bgpd/bgp_vty.c