-
Notifications
You must be signed in to change notification settings - Fork 3.4k
bgpv1: Add cilium-dbg bgp route-policies
command & include it in the bugtool
#28973
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
Conversation
a994e1c
to
bc49a90
Compare
/test |
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.
Doc changes (are minimal and) look good. I only gave a quick look at the implementation, didn't look at the details.
Thanks!
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.
change looks good, some minor comments.
2199fda
to
ff72849
Compare
/test |
ff72849
to
9b3bbc0
Compare
/test |
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.
thanks, lgtm!
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.
@rastislavs Nice work!
9b3bbc0
to
b73c8fd
Compare
/test |
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.
@rastislavs LG. Thanks for the updates!
@nathanjsweet could you please take a look when you have some time? This PR now requires only the |
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 for API
Adds a new GetRoutePolicies() method for retrieving configured route policies to the Router interface and implements it in the GoBGP Router implementation. Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>
Add a new API endpoint `/bgp/route-policies` to retrieve route policies configured in the BGP Control Plane. Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>
Implement `/bgp/route-policies` API by wiring-up API call with BGPRouterManager and GetRoutePolicies API of the Router implementation. Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>
Implement `cilium-dbg bgp route-policies` command that retrieves route policies from the `/bgp/route-policies` API and displays the response. Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>
Includes BGP route policies output in the bugtool to have this BGP Control Plane information included in the sysdumps. Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>
b73c8fd
to
7c65158
Compare
/test |
Adds a new
/bgp/route-policies
API endpoint and thecilium-dbg bgp route-policies
command that can be used for retrieval of BGP route policies configured in the BGP Control Plane's Router implementation. Also adds this command's output in the bugtool.This is a debug-ability enhancement for the CiliumBGPPeeringPolicy's
AdvertisedPathAttributes
feature added by #27705The command prints the route-policies generated internally by the BGP Control Plane - these are not directly configurable by the user.
Example usage:
Config used for this example:
Excerpt from
CiliumBGPPeeringPolicy
:LB Pool: