]> git.puffer.fish Git - matthieu/frr.git/commit
isisd: add json support to display spf paths in 'show isis route'
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 6 Jun 2024 15:08:56 +0000 (17:08 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 21 Jun 2024 13:40:23 +0000 (15:40 +0200)
commit3a2554e4a23a69c6030253f78644f4f03b3bdcab
tree3e72c9df6a2a57094b0c81c61915db59d12c5701
parentdf723ccfb70e4c416bb74fc52cfc8b9dd1384314
isisd: add json support to display spf paths in 'show isis route'

The 'show isis route json' command never displays the list of
paths. Add the json support for this sub-part.

> # show isis route json
> [..]
> "ipv6-paths":[
>  {
>   "Vertex":"rt1",
>   "Type":"",
>   "Metric":0,
>   "Next-Hop":"",
>   "Interface":"",
>   "Parent":""
>  },
>  {
>    "Vertex":"2001:db8:1000::1\/128",
>    "Type":"IP6 internal",
>    "Metric":0,
>    "Next-Hop":"",
>    "Interface":"",
>    "Parent":"rt1(4)"
>  },

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
isisd/isis_spf.c
isisd/isis_spf.h
tests/isisd/test_isis_spf.c