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 support for NSX-T Edge Gateway BGP Neighbor configuration #489

Merged
merged 5 commits into from
Jul 27, 2022

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Jul 7, 2022

This PR continues on the track of PRs #480 and #488 and completes coverage of NSX-T Edge Gateway BGP Configuration by adding Neighbor configuration support.

Add support for managing NSX-T Edge Gateway BGP Neighbor. It is done by adding types EdgeBgpNeighbor and
types.EdgeBgpNeighbor with functions CreateBgpNeighbor, GetAllBgpNeighbors,
GetBgpNeighborByIp, GetBgpNeighborById, Update and Delete

Note. VCD 10.2 versions have a problem - they do not return a new entity ID when it is created. Function CreateBgpNeighbor handles this internally by waiting for task completion and checking if ID was returned (it is returned in 10.3). If the ID is not returned - the function will lookup the entity Neighbor IP address. This should be safe (as opposed to lookup by name in CreateBgpIpPrefixList) as the uniqueness of this IP is enforced by API

Signed-off-by: Dainius Serplis <dserplis@vmware.com>
@Didainius Didainius self-assigned this Jul 7, 2022
Didainius added 2 commits July 7, 2022 22:59
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
@Didainius Didainius marked this pull request as ready for review July 8, 2022 06:29
@lvirbalas lvirbalas removed the request for review from vbauzys July 13, 2022 13:44
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

Few polishes and LGTM!

types/v56/constants.go Outdated Show resolved Hide resolved
types/v56/nsxt_types.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@adambarreiro adambarreiro left a comment

Choose a reason for hiding this comment

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

LGTM! Will run tests once I have an environment ready.

Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
@Didainius Didainius merged commit 744588a into vmware:main Jul 27, 2022
@Didainius Didainius deleted the bgp-config-neighbor branch July 27, 2022 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants