]> git.puffer.fish Git - mirror/frr.git/commit
zebra: add json support to 'show debugging label-table'
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 5 Oct 2023 07:14:45 +0000 (09:14 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 18 Oct 2023 15:45:29 +0000 (17:45 +0200)
commit0bd8a160822bf7fe4aafab6eede73b83552f32bc
treec5d50e8bdd1177add15496823f645c05b9525af5
parent8a400bb70adddd6b701ec50c10d186322e7ae45d
zebra: add json support to 'show debugging label-table'

Add the json keyword to dump the label chunks of
the zebra label manager in json format.

>dut# show debugging label-table json
> {
>   "chunks":[
>     {
>       "protocol":"bgp",
>       "instance":0,
>       "sessionId":1,
>       "start":16,
>       "end":16,
>       "dynamic":true
>     },
>     {
>       "protocol":"ldp",
>       "instance":0,
>       "sessionId":1,
>       "start":17,
>       "end":80,
>       "dynamic":true
>     }
>   ]
> }

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/label_manager.c