diff options
author | Igor Ryzhov <idryzhov@gmail.com> | 2021-11-29 00:11:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 00:11:29 +0100 |
commit | cb3fa0a61242e542734362918e6afa974c00ce06 (patch) | |
tree | b3e8d090202e56829af3248acfa35878bba74be0 /tools/coccinelle | |
parent | Merge pull request #10134 from donaldsharp/isis_topo1_vrf_fix (diff) | |
parent | *: Remove redundand braces for single statement blocks (diff) | |
download | frr-cb3fa0a61242e542734362918e6afa974c00ce06.tar.xz frr-cb3fa0a61242e542734362918e6afa974c00ce06.zip |
Merge pull request #10124 from ton31337/feature/vty_json
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); |