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
BGPv1: Adds Peer Port Support #25809
Conversation
1508c56
to
cd9ec69
Compare
Successfully tested on kind using port
|
@YutaroHayakawa PTAL when you have a moment. |
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 for this change.
Can you also please update component tests to use correct peer-port. Tests are in pkg/bgpv1/test directory.
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 for working on this! I made some comments.
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.
Sorry, I mistakenly approved.
Note: I created #25869 for updating user docs. |
d559e66
to
a21d720
Compare
Thanks @rastislavs, @harsimran-pabla, and @YutaroHayakawa for the review. Commit a21d720 resolves your feedback and allows |
e092c80
to
841ae0f
Compare
52d6816
to
78a4ff4
Compare
Commit 78a4ff4 rebases to resolve merge conflicts. |
Commit db847a1 resolved merge conflicts. |
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.
Approved for API.
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.
Now looks good to me 👍 Thanks for your contribution!
/test |
Ugh, we still need rebase |
A user can annotate a node with `local-port` to have BGPRouterManager listen on a port other than 179. However, the BgpServerInstance only creates a peering connection using port 179. This means either passive mode is required when one node specifies a non standard port or two Cilium nodes cannot establish a BGP neighbor relationship when both specify a non-standard port. This PR adds an optional `PeerPort` field to the CiliumBGPVirtualRouter API type, allowing a user to specify the BGP peer's TCP port. When unspecified, the BgpServerInstance continues to use port 179. Signed-off-by: Daneyon Hansen <daneyon.hansen@solo.io>
/test |
A user can annotate a node with
local-port
to have BGPRouterManager listen on a port other than 179. However, the BgpServerInstance only creates a peering connection using port 179. This means either passive mode is required when one node specifies a non standard port or two Cilium nodes cannot establish a BGP neighbor relationship when both specify a non-standard port.This PR adds an optional
PeerPort
field to the CiliumBGPVirtualRouter API type, allowing a user to specify the BGP peer's TCP port. When unspecified, the BgpServerInstance continues to use port 179.Fixes: #24737
Fixes: #25683