diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-11-25 16:49:25 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-11-25 16:49:25 +0100 |
commit | f615ecb96d2793f4b22680dc0ccafa8ce51c6ebe (patch) | |
tree | 756d2019ea4071288c664600c7211629edf0fc7f /tools/coccinelle | |
parent | Merge pull request #10115 from donaldsharp/bgp_route_server_convergence (diff) | |
download | frr-f615ecb96d2793f4b22680dc0ccafa8ce51c6ebe.tar.xz frr-f615ecb96d2793f4b22680dc0ccafa8ce51c6ebe.zip |
tools: Convert vty_out to vty_json for JSON
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'tools/coccinelle')
-rw-r--r-- | tools/coccinelle/vty_json.cocci | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/coccinelle/vty_json.cocci b/tools/coccinelle/vty_json.cocci new file mode 100644 index 000000000..481dac540 --- /dev/null +++ b/tools/coccinelle/vty_json.cocci @@ -0,0 +1,9 @@ +@@ +identifier vty; +identifier json; +@@ + +-vty_out(vty, "%s\n", json_object_to_json_string_ext(json, ...)); +... +-json_object_free(json); ++vty_json(vty, json); |