-
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
ripd/ripngd: use common header for display command #16229
Conversation
It might be misleading output a bit, because for e.g. the output itself does not have |
@ton31337 Yes. But seems all daemons have already use this behavior. |
E.g.? |
@ton31337 |
So... just adding missing protocols would be the simplest thing to do? Or splitting SHOW_ROUTE_V4_HEADER into two parts. |
e97e6c2
to
414cd17
Compare
Done, use the simple way. |
414cd17
to
524209e
Compare
524209e
to
7250413
Compare
@frrbot rereview |
Could you split it into separate commits? |
7250413
to
82e516b
Compare
@ton31337 |
82e516b
to
4a6ac1a
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.
LGTM
4a6ac1a
to
3884690
Compare
Just rebased it. |
Couldn't it be two different show commands? |
@anlancs could you fix the tests? |
This is a bug (missing other protocols), not like a new version of the output). |
Ok. |
Both rip and ripng can import routes from other protocols, e.g. ISIS. But their header doesn't list the description for these abbreviations. Adjust `show ipv6 ripng` 's header for display command. Before: ``` Codes: R - RIPng, C - connected, S - Static, O - OSPF, B - BGP Sub-codes: ``` After: ``` Codes: K - kernel route, C - connected, L - local, S - static, R - RIPng, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR, f - OpenFabric, t - Table-Direct Sub-codes: ``` Signed-off-by: anlan_cs <[email protected]>
Continue to adjust `show ip rip` 's header for display comand. Signed-off-by: anlan_cs <[email protected]>
Since the displayed header of "show ip rip" and "show ipv6 ripng" are changed, we should update tests of ripd and ripngd. Signed-off-by: anlan_cs <[email protected]>
3884690
to
b707ed8
Compare
Done. |
ci:retry |
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
Both rip and ripng can import routes from other protocols, e.g. ISIS. But their header doesn't list the description for these abbreviations.
Let
show ip rip
(andshow ipv6 ripng
) uses the common header.Before:
After: