]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_aspath.c
bgpd: Only create json for aspath if needed
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 17 Nov 2017 00:41:58 +0000 (19:41 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 17 Nov 2017 01:46:37 +0000 (20:46 -0500)
commit68e1a55bb151f398104f43aefc66f106f6b26bae
tree6a34dc4ee21a03d107324c4f401d7c4c33fcf5ca
parent34183521907e2a99ba318928520983f388ed486c
bgpd: Only create json for aspath if needed

The creation of the json object for the aspath
is both memory intensive and expensive to
create.  Only create the json object when
it is needed and stash it for further usage
at that point.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_aspath.c
bgpd/bgp_aspath.h
bgpd/bgp_route.c