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 vrf_transit_subnets to nsxt_policy_tier0_gateway (#1002) #1026

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

salv-orlando
Copy link
Member

The vrf_transit_subnets attribute is supported for NSX>=4.1.0.

@salv-orlando
Copy link
Member Author

/test-all

2 similar comments
@salv-orlando
Copy link
Member Author

/test-all

@salv-orlando
Copy link
Member Author

/test-all

Copy link
Collaborator

@ksamoray ksamoray left a comment

Choose a reason for hiding this comment

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

LGTM

@annakhm
Copy link
Collaborator

annakhm commented Nov 14, 2023

I think the part where this new attribute is set in schema is missing (in resourceNsxtPolicyTier0GatewayRead)?

@salv-orlando
Copy link
Member Author

/test-all

@salv-orlando
Copy link
Member Author

/test-all

@salv-orlando
Copy link
Member Author

@annakhm can you have another look, please?

@@ -109,6 +109,17 @@ func resourceNsxtPolicyTier0Gateway() *schema.Resource {
Computed: true,
ForceNew: true, // Modification of transit subnet not allowed after Tier-0 deployment
},
"vrf_transit_subnets": {
Type: schema.TypeList,
MaxItems: 1,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm guessing we expect the API to allow more subnets in future (such as ipv6 support?)
In this case, I would remove the MaxItems here to allow native support for this in the future, and rely on NSX validation in the time being.
If we don't expect the list to grow, we should remove the list here as well, to avoid confusion.

Copy link
Member Author

Choose a reason for hiding this comment

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

sounds good

The vrf_transit_subnets attribute is supported for NSX>=4.1.0.

Signed-off-by: Salvatore Orlando <sorlando@vmware.com>
@annakhm
Copy link
Collaborator

annakhm commented Nov 24, 2023

/test-all

@salv-orlando salv-orlando merged commit 43df0d5 into vmware:master Nov 27, 2023
5 checks passed
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

3 participants