]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Fix usage of JSON_C_TO_STRING_NOSLASHESCAPE
authorDonald Sharp <sharpd@nvidia.com>
Tue, 7 Sep 2021 13:40:12 +0000 (09:40 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 7 Sep 2021 13:40:12 +0000 (09:40 -0400)
commit192422ef3b2e0bc533a25ca276f22f36a14265ef
treeefa64dfc4a6867b507a271f28adc1e5e321a0a5a
parente77564ccd44aa527c7a26f1642bd8e8f5a5f724a
bgpd: Fix usage of JSON_C_TO_STRING_NOSLASHESCAPE

The usage of json_object_to_json_string_ext is mean for
generation of output string and returns a `char *` pointer
to the `formatted` output.  Just calling it does nothing
and it's expensive to boot.

Modify the code in bgpd to just output with the NOSLASHESCAPE
when outputting.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_evpn_vty.c