-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Isis show route paths json #16182
Isis show route paths json #16182
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignoring (all other old fields not using this format also) camelCase for JSON, LGTM.
Could you fix the tests also? |
9a66d51
to
216b8af
Compare
a88e98c
to
760b793
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good ... waiting on ci fixes
code is ok, please, @pguibert6WIND , can you fix the commit log's title of: |
need to look at ietf yang model |
760b793
to
b4e3159
Compare
b4e3159
to
3fe7706
Compare
done |
Lets us see if CI passes. |
ci:rerun lets rerun |
@riw777 , I found that, but it appears it does not seem to match our model at all. https://datatracker.ietf.org/doc/html/draft-ietf-isis-yang-isis-cfg
|
e5c5be1
to
13d350d
Compare
ci:rerun |
This is a preliminary commit, so that route paths are visible from json. Before: > IS-IS paths to level-1 routers that speak IPv6 > Vertex Type Metric Next-Hop Interface Parent > rt1 > 2001:db8:1000::1/128 IP6 internal 0 rt1(4) > rt2 TE-IS 10 rt2 eth-rt2 rt1(4) > rt3 TE-IS 10 rt3 eth-rt3 rt1(4) > 2001:db8:1000::2/128 IP6 internal 20 rt2 eth-rt2 rt2(4) > 2001:db8:1000::3/128 IP6 internal 20 rt3 eth-rt3 rt3(4) After: > Vertex Type Metric Next-Hop Interface Parent > ------------------------------------------------------------------------- > rt1 > 2001:db8:1000::1/128 IP6 internal 0 rt1(4) > rt2 TE-IS 10 rt2 eth-rt2 rt1(4) > rt3 TE-IS 10 rt3 eth-rt3 rt1(4) > 2001:db8:1000::2/128 IP6 internal 20 rt2 eth-rt2 rt2(4) > 2001:db8:1000::3/128 IP6 internal 20 rt3 eth-rt3 rt3(4) Signed-off-by: Philippe Guibert <[email protected]>
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 <[email protected]>
Add the json keyword for dumping isis topology. Signed-off-by: Philippe Guibert <[email protected]>
Add the json support from ISIS vty command. Signed-off-by: Philippe Guibert <[email protected]>
… command Add the json support from ISIS vty command. > show isis vrf vrf1 topology json Signed-off-by: Philippe Guibert <[email protected]>
The json output for isis route paths should use caml format. Signed-off-by: Philippe Guibert <[email protected]>
The json format for json routes should be compliant with caml format. Before: > "Prefix|Metric|Interface|Nexthop|SID|LabelOp|Algo": > "Prefix|Metric|Interface|Nexthop|Label(s)"); After: > "prefix|metric|interface|nextHop|segmentIdentifier|labelOperation|Algorithm": > "prefix|metric|interface|nextHop|label(s)"); Signed-off-by: Philippe Guibert <[email protected]>
13d350d
to
611f83f
Compare
With respect to this comment, the ietf-isis.yang model only includes read-only retrieval of the IS-IS local RIB. There is no collary for the SPF tree - refer to https://datatracker.ietf.org/doc/rfc9130/ (see grouping local-rib). |
Thanks @aceelindem for feedback. This pull request has an ultimate commit that modified the route entry json format. (see [0]). [0] 611f83f |
Add json support for 'show isis route' , paths part.