Skip to content
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

Nexthop display rework #16014

Merged
merged 2 commits into from
May 16, 2024
Merged

Conversation

pguibert6WIND
Copy link
Member

The nexthop display functions should be moved in a common place, ready to be available for whatever daemon wants to use it.
Adding to this, display SR-TE color in all cases.

The zebra_nexthop_vty_helper() and zebra_nexthop_json_helper()
functions could be very helpful to display nexthop information
from whatever daemon.

Move the core function in the nexthop_vty_helper() and the
nexthop_json_helper() function. The zebra API call remains
unchanged.

Signed-off-by: Philippe Guibert <[email protected]>
The SR-TE color of nexthop should be displayed in all situations.

Fixes: 553c804 ("zebra: fix JSON fields for 'show ip/ipv6 nht'")

Signed-off-by: Philippe Guibert <[email protected]>
@pguibert6WIND pguibert6WIND changed the title Nexthop rework Nexthop display rework May 15, 2024
@pguibert6WIND
Copy link
Member Author

ci:rerun

Copy link
Member

@ton31337 ton31337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ton31337 ton31337 merged commit 03e3da0 into FRRouting:master May 16, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants