Skip to content
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

Add BGP confederation support in BGPPolicy #6905

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hongliangl
Copy link
Contributor

@hongliangl hongliangl commented Jan 8, 2025

For #6567

Depends on #6914

@hongliangl hongliangl added action/release-note Indicates a PR that should be included in release notes. area/transit/bgp Issues or PRs related to BGP support. labels Jan 8, 2025
@hongliangl hongliangl added this to the Antrea v2.3 release milestone Jan 8, 2025
@hongliangl hongliangl force-pushed the 20241205-bgp-confederation branch from a61659d to dc54219 Compare January 8, 2025 08:27
@hongliangl hongliangl changed the title Add BGP confederation definition in BGPPolicy Add BGP confederation support in BGPPolicy Jan 8, 2025
Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please link to the corresponding issue (#6567).

Identifier int32 `json:"identifier,omitempty"`

// Peers lists the ASNs of other members in the confederation.
Peers []int32 `json:"peers,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the term "members" is typically used for BGP confederation. Should we name this field MemberASNs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I selected the term "peers" because it is used by the commands of some well-known vendors like Cisco. For example:

router bgp 65000
  bgp confederation identifier 65000
  bgp confederation peers 65001 65002
  neighbor 192.168.1.1 remote-as 65001
  neighbor 192.168.2.1 remote-as 65002

The term "peers" is not very readable. I'm fine with MemberASN, and it is more readable.

Comment on lines +64 to +66
identifier:
type: integer
format: int32
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the range of valid values?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The range should be 1-4294967295 if we can merge #6914

peers:
type: array
items:
type: integer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should there be a minimum and maximum value here like for asn (and also we are missing format)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, will update.

Comment on lines +296 to +297
// Enabled indicates whether BGP confederation is enabled.
Enabled bool `json:"enabled,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need an "enabled" field or should the confederation field be a pointer / optional in BGPPolicySpec?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/release-note Indicates a PR that should be included in release notes. area/transit/bgp Issues or PRs related to BGP support.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants