-
Notifications
You must be signed in to change notification settings - Fork 85
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
Implement host transport node collection resource #965
Implement host transport node collection resource #965
Conversation
18c5454
to
a8d27e4
Compare
de0f64c
to
b7a0a38
Compare
"transport_node_profile_id": { | ||
Type: schema.TypeString, | ||
Optional: true, | ||
Description: "Transport Node Profile Path", |
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.
is this path or id?
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.
This is a path - as this is a policy resource, it requires paths as object references. I followed the API naming where this attribute is called transport_node_profile_id
but maybe it makes more sense to name it transport_node_profile_path
.
21cd5ee
to
8d994e8
Compare
resource "nsxt_policy_host_transport_node_collection" "htnc1" { | ||
display_name = "HostTransportNodeCollection1" | ||
compute_collection_id = data.vsphere_compute_cluster.compute_cluster.id | ||
transport_node_profile_path = nsxt_policy_host_transport_node_profile.tnp.id |
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.
shouldn't this be nsxt_policy_host_transport_node_profile.tnp.path
?
9e1ba7f
to
952b07e
Compare
/test-all |
1 similar comment
/test-all |
952b07e
to
04ff267
Compare
/test-all |
090e0fe
to
49512a2
Compare
"tag": getTagsSchema(), | ||
"site_path": { | ||
Type: schema.TypeString, | ||
Description: "Path to the site this Transport Zone belongs to", |
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.
Transport Zone
=> resource
?
}, | ||
"enforcement_point": { | ||
Type: schema.TypeString, | ||
Description: "ID of the enforcement point this Transport Zone belongs to", |
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.
Transport Zone => resource ?
Update: resourceNsxtPolicyHostTransportNodeCollectionUpdate, | ||
Delete: resourceNsxtPolicyHostTransportNodeCollectionDelete, | ||
Importer: &schema.ResourceImporter{ | ||
State: nsxtPolicyPathResourceImporter, |
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.
I don't think this can work out of the box here, since enforcement point and site need to be set before Read is called?
Is it too complex to add a test for this? perhaps with env variable indicating VC compute ID? |
It means that we'll need a cluster on VC which isn't configured with NSX. We can create such with the LM topology but it'll require an additional ESXi node per topology. |
49512a2
to
9c05e13
Compare
Signed-off-by: Kobi Samoray <[email protected]>
9c05e13
to
7b1ff98
Compare
/test-all |
No description provided.