]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Only build json for community when needed
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 17 Nov 2017 01:43:56 +0000 (20:43 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 4 Dec 2017 13:48:15 +0000 (08:48 -0500)
commitc0d638ab2f7f593eebd1c43b44d5d8531035e145
treeea47ed529cbd511e26603acb747f56c703a95424
parent41647b79fb2aa3b80e85125f04acad6b30b0149b
bgpd: Only build json for community when needed

Building a communities json object every time is
both expensive and memory wasteful.  Modify
code to only build the json object when needed.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_clist.c
bgpd/bgp_community.c
bgpd/bgp_community.h
bgpd/bgp_debug.c
bgpd/bgp_route.c
bgpd/bgp_routemap.c
bgpd/bgp_vty.c