-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add support for NSX-T Edge Gateway BGP IP Prefix lists #488
Conversation
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
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.
Looks great, just some suggestions here and there.
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! I've pending to run the tests.
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
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!
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
andtypes.EdgeBgpIpPrefixList
with functionsCreateBgpIpPrefixList
,GetAllBgpIpPrefixLists
,GetBgpIpPrefixListByName
,GetBgpIpPrefixListById
,Update
andDelete
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