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 DNS settings in NSX-T backed external networks #984

Merged
merged 8 commits into from
Jan 31, 2023

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Jan 13, 2023

Closes #964

External network V2 resource can handle NSX-V and NSX-T based external networks (using the same API), however, DNS fields (dns1, dns2, dns_suffix) were only available for NSX-V based networks in UI. We also had a Terraform schema validation to prevent setting these fields for NSX-T networks.

Apparently, there are some use cases for having these fields set for NSX-T networks as well (DNS settings can be inherited for direct networks).

This PR - improves tests to test these fields and also removes schema validation. It turns out that the dns_suffix can be set, but is never returned by API which is a VCD bug. It should be fixed in future versions, but that test part remains commented for now as it doesn't work up to VCD 10.4.1.

Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
@Didainius Didainius marked this pull request as ready for review January 16, 2023 13:46
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
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!

@Didainius Didainius merged commit 00062c0 into vmware:main Jan 31, 2023
@Didainius Didainius deleted the 964-extend-dns branch January 31, 2023 14:18
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.

Add DNS field for external networks backed by NSX-t Segment
4 participants