-
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
Routemap debugging #12796
Routemap debugging #12796
Conversation
Let's make it easier to debug instead of guessing Signed-off-by: Donald Sharp <sharpd@nvidia.com>
When using `match ip[v6] next-hop <Access-list>` warn when creating the access-list that the access list does not yet exist and nothing can be done with it yet. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Change the bool to a uint32_t and setup a flag to test for and set against. Future commits will allow a debug detail which should be used by match/set statements to give further context of what is going on. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Add the ability to turn on `debug routemap detail` for FRR. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Let's give the operator some inkling as to why a routemap is not working the way they thing it should be when something goes wrong using it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
When a routemap lookup of the prefix fails, add some useful data to the end operator about what has just gone wrong when they are using `debug routemap detail` Signed-off-by: Donald Sharp <sharpd@nvidia.com>
When using access-list and the access-list is not specified let's give the operator some clue about what is going on. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
All in all I hit the major bits of FRR(bgp, ospf and zebra) for access-list and prefix-list lookup failures. |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-PULLREQ2-9641/ This is a comment from an automated CI system. |
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
See individual commits but end goal is to see stuff like this:
Effectively I spent a bunch of time tracking down why the ip address I was using was not matching the nexthop. Turns out that I had specified a accesslist instead of an ip address and it took me forever to figure it out. Debug routemap gives no clue as to what is going on with the system. So I was left with manual debugging w/ gdb. How can an operator figure this out?