]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_route.c
bgpd: Fixing "show bgp l2vpn evpn neighbors x.x.x.x advertised-routes json
authorLakshman Krishnamoorthy <lkrishnamoor@vmware.com>
Fri, 27 Sep 2019 18:45:38 +0000 (11:45 -0700)
committerLakshman Krishnamoorthy <lkrishnamoor@vmware.com>
Fri, 27 Sep 2019 19:04:13 +0000 (12:04 -0700)
commitdc387b0fea1809aa082d40e497eb46a466c213b3
tree040d05cf536e64833a262b96180d8b4372e55718
parent5c256b572ca09b5d15b67ba0236c8a2678dda19c
bgpd: Fixing "show bgp l2vpn evpn neighbors x.x.x.x advertised-routes json

Display output from adj_out instead of the rib table.

Also fixes crash for the json output. RCA: prefix is written to json object
using inet_ntop. But, this api returns null buffer for AF_EVPN address family
(it works only for AF_INET and AF_INET6).  This null buffer is then deref'd
by json-object-to string api.

Full output shown in PR: https://github.com/FRRouting/frr/pull/5078
Crash issue: https://github.com/FRRouting/frr/issues/5010

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