]> git.puffer.fish Git - matthieu/frr.git/commit
pceplib: add json string option to subgroup counter
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 10 Jan 2024 14:26:05 +0000 (15:26 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 18 Jan 2024 21:04:05 +0000 (22:04 +0100)
commit09047d2bf614d7794fb855923caa94cbfeb94ceb
tree3550cb1119ba8a4c598f2e245f33355e84eab447
parent94178edac3b36c6b2ebc09173a589b14419cf04e
pceplib: add json string option to subgroup counter

The created counters in pceplib library are structures with
a string attribute which is used for further display. This
string information is not formatted for json output.

Add a second option in the create_subgroup_counter() creation
API to provide the json attribute output.

Create a json naming compatible with caml format for each
subgroup counter used.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
pceplib/pcep_session_logic_counters.c
pceplib/pcep_utils_counters.c
pceplib/pcep_utils_counters.h
pceplib/test/pcep_utils_counters_test.c