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 metadata support for VDC networks #804

Merged
merged 21 commits into from
Mar 28, 2022

Conversation

adambarreiro
Copy link
Collaborator

@adambarreiro adambarreiro commented Mar 15, 2022

This PR aims to enhance the VCD network resources and datasources to support metadata creation, read and update.

⚠️ Depends on: vmware/go-vcloud-director#442
Related issue: #372

Changes:

  • Added metadata field in direct, routed and isolated network datasources/resources.
  • Removed redundant code.
  • Updated to the most recent Terraform SDK method signatures, with *Context methods and diag.Diagnostics.
  • Updated tests accordingly to check metadata behaviour is correct.

Note: v2 networks will come in another PR as I noticed too late that they would require an OpenAPI implementation in go-vcloud-director.

Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro adambarreiro self-assigned this Mar 15, 2022
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
#
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
#
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
#
Signed-off-by: abarreiro <abarreiro@vmware.com>
#
Signed-off-by: abarreiro <abarreiro@vmware.com>
#
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro adambarreiro marked this pull request as ready for review March 22, 2022 09:34
@adambarreiro adambarreiro removed the request for review from dataclouder March 22, 2022 09:34
@vbauzys
Copy link
Contributor

vbauzys commented Mar 22, 2022

PR has conflicts :)

vcd/resource_vcd_network_isolated.go Outdated Show resolved Hide resolved
vcd/resource_vcd_network_test.go Outdated Show resolved Hide resolved
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
#
Signed-off-by: abarreiro <abarreiro@vmware.com>
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.

Very clean :)

Signed-off-by: abarreiro <abarreiro@vmware.com>
Copy link
Contributor

@mikeletux mikeletux left a comment

Choose a reason for hiding this comment

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

LGTM! Approved!

Signed-off-by: abarreiro <abarreiro@vmware.com>
…ider-vcd into add-network-metadata

Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro adambarreiro merged commit dc40d85 into vmware:main Mar 28, 2022
@adambarreiro adambarreiro deleted the add-network-metadata branch October 3, 2022 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants