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 ipv6 support for vApp network configuration #550

Merged
merged 16 commits into from
Mar 10, 2023

Conversation

adezxc
Copy link

@adezxc adezxc commented Feb 20, 2023

Closes #554.

This PR adds support to creating vApp networks using ipv6, as before it would not work because VAppNetworkConfiguration didn't have SubnetPrefixLength field which is needed for ipv6 handling. https://developer.vmware.com/apis/1507/vmware-cloud-director/doc/doc//types/IpScopeType.html

  • Add PrefixLength to IPScope and VappNetworkSettingsstructs
  • Create Test_AddAndRemoveIsolatedVappNetworkIpv6 which tests creation and removal of ipv6 vApp networks

Worth noting, that the VCD API returns both SubnetPrefixLength and Netmask on creation of ipv4 networks, but only SubnetPrefixLength on creation of ipv6 networks.

Also fixes a bug in UpdateNetworkAsync, that happened while trying to change fields of un-initialized networkToUpdate.Configuration.Features field

Adam Jasinski added 3 commits February 17, 2023 14:29
Adam Jasinski added 5 commits February 20, 2023 15:56
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
@adezxc adezxc marked this pull request as ready for review February 27, 2023 07:44
@adezxc adezxc self-assigned this Feb 27, 2023
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

Looks good - a few minor comments

Adam Jasinski added 2 commits February 27, 2023 15:51
@adezxc

This comment was marked as outdated.

@adezxc adezxc marked this pull request as draft March 1, 2023 16:40
Signed-off-by: Adam Jasinski <[email protected]>
@adezxc adezxc marked this pull request as ready for review March 2, 2023 11:31
@adezxc adezxc linked an issue Mar 2, 2023 that may be closed by this pull request
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

I am pretty much good to approve, but a few notes here:

Signed-off-by: Adam Jasinski <[email protected]>
@adezxc adezxc requested a review from Didainius March 6, 2023 08:37
@adezxc adezxc requested a review from adambarreiro March 6, 2023 08:37
@adezxc
Copy link
Author

adezxc commented Mar 6, 2023

I am pretty much good to approve, but a few notes here:

* changelog should have a bugfix entry about issue #554

* your description of this PR has "closes [vmware/terraform-provider-vcd#999](https://github.com/vmware/terraform-provider-vcd/issues/999)", but it this still needs to be validated that `vcd_vapp_network` and `vcd_vapp_org_network` both work afterwards. (IMO better to close it with Terraform PR if we are sure it fixes it)

Sounds good, updated.

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! Just a comment:

Signed-off-by: Adam Jasinski <[email protected]>
Adam Jasinski added 2 commits March 10, 2023 10:49
Signed-off-by: Adam Jasinski <[email protected]>
Signed-off-by: Adam Jasinski <[email protected]>
@adezxc adezxc merged commit cdc1a00 into vmware:main Mar 10, 2023
@adezxc adezxc deleted the vapp_network_ipv6 branch November 14, 2023 14:19
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.

Nil point dereference in govcd.(*VApp).UpdateNetworkAsync
6 participants