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 IP Prefix lists #488

Merged
merged 5 commits into from
Jul 27, 2022

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Jul 4, 2022

This PR continues to add support for BGP configuration (as PR #480) for BGP and adds support for IP Prefix Lists. These list can be consumed when defining BGP neighbors (a PR yet to be done)

It adds types EdgeBgpIpPrefixList and types.EdgeBgpIpPrefixList with functions CreateBgpIpPrefixList, GetAllBgpIpPrefixLists, GetBgpIpPrefixListByName, GetBgpIpPrefixListById, Update and Delete

Note. VCD 10.2 versions have a problem - they do not return a new entity ID when it is created. Function CreateBgpIpPrefixList 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 by Name and return it with the corresponding ID. There is a risk that - if more than one entity with such a name exists - it will fail to find a correct object and return an error.

VCD Docs -> https://docs.vmware.com/en/VMware-Cloud-Director/10.3/VMware-Cloud-Director-Service-Provider-Admin-Portal-Guide/GUID-F2A3BC91-036A-4E29-A1C9-6EAB8602562E.html

Signed-off-by: Dainius Serplis <[email protected]>
Didainius added 2 commits July 5, 2022 11:25
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
@Didainius Didainius marked this pull request as ready for review July 5, 2022 12:51
@Didainius Didainius self-assigned this Jul 5, 2022
@lvirbalas lvirbalas removed the request for review from vbauzys July 13, 2022 13:38
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.

Looks great, just some suggestions here and there.

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! I've pending to run the tests.

Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
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.

LGTM!

@Didainius Didainius merged commit 43c1890 into vmware:main Jul 27, 2022
@Didainius Didainius deleted the bgp-configuration-ip-prefixes-pr branch July 27, 2022 09:11
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