-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add new show command to display only failed routes #20343
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
base: master
Are you sure you want to change the base?
Add new show command to display only failed routes #20343
Conversation
riw777
left a comment
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.
code looks fine ... needs a documentation change?
Thanks @riw777 . modified the documentation. |
ton31337
left a comment
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.
Please fix the commits to comply with our contribution guidelines.
| [" FRR_IP6_REDIST_STR_ZEBRA "$type_str]\ | ||
| >\ | ||
| [nexthop-group$ng [summary$ng_summary [ecmp-count <gt$ecmp_gt|lt$ecmp_lt|eq$ecmp_eq> (1-256)$ecmp_count]]] [json$json]", | ||
| [nexthop-group$ng [summary$ng_summary [ecmp-count <gt$ecmp_gt|lt$ecmp_lt|eq$ecmp_eq> (1-256)$ecmp_count]]] [json$json] [failed$failed]", |
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.
I really don't want the failed modifier to be after the json command. I believe it belongs before the json sub-command.
Additionally this new change needs a topotest to show that the code is working properly. Please add one.
|
can you add "signed off by" in each commit? I don't think the other lints need to be fixed (depfy). |
Why I did it
To catch/dump failed routes, during periodic route_check, Need a new show command to display only failed routes, instead of displaying the whole routing table and then filtering failed routes). Display of whole routing table on scaled setups causes high memory spikes, and is not suitable for a periodic route_check on failed routes
How I did it
Added a new additional option parameter and in the implementation, filter routes early if the ROUTE_INSTALL_FAILED flag is not set.
How to verify it
Loaded the image on the chassis, and could verify that the device is stable.
the new command is available. the output is as expected.
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)
signed-off by: Deepak Singhal [deepsinghal@microsoft.com]