Comments (2)
Hello,
I am facing exactly the same issue, but on a host transport node, an esxi host, prepared for nsx can have more than on VDSs prepared. I dont seem to be able to add a second one in the nsxt_policy_host_transport_node_profile, it seems the last standard_host_switch defined overwrites the previous.
resource "nsxt_policy_host_transport_node_profile" "host-transport-node-profile" {
for_each = { for display_name in var.host-transport-nodes : display_name.display_name => display_name }
display_name = "${each.value.display_name}_host-transport-node-profile"
description = "${each.value.display_name}_host-transport-node-profile"
standard_host_switch {
host_switch_mode = "ENS_INTERRUPT"
host_switch_type = "VDS"
# Use "path" rather than "id", with "id" it falls apart.
host_switch_profile = [data.nsxt_policy_uplink_host_switch_profile.host-uplink-profile[each.value.display_name].path]
# In order to find the host_switch_id you need to you use the vsphere provider, use a data block for vsphere_distributed_virtual_switch
host_switch_id = data.vsphere_distributed_virtual_switch.overlay-vds[each.value.display_name].id
ip_assignment {
assigned_by_dhcp = false
static_ip_pool = data.nsxt_policy_ip_pool.host-ip-tep-pool[each.value.display_name].path
}
transport_zone_endpoint {
transport_zone = data.nsxt_policy_transport_zone.overlay-transport-zone.path
}
# transport_zone_endpoint {
# transport_zone = data.nsxt_policy_transport_zone.vlan-transport-zone.path
# }
is_migrate_pnics = false
#################################################################################################################################
uplink {
uplink_name = "uplink-1"
vds_uplink_name = "Uplink 1"
}
uplink {
uplink_name = "uplink-2"
vds_uplink_name = "Uplink 2"
}
}
#################################################################################################################################
standard_host_switch {
host_switch_mode = "ENS_INTERRUPT"
host_switch_type = "VDS"
# Use "path" rather than "id", with "id" it falls apart.
host_switch_profile = [data.nsxt_policy_uplink_host_switch_profile.host-uplink-profile[each.value.display_name].path]
# In order to find the host_switch_id you need to you use the vsphere provider, use a data block for vsphere_distributed_virtual_switch
host_switch_id = data.vsphere_distributed_virtual_switch.uplink-vds[each.value.display_name].id
ip_assignment {
assigned_by_dhcp = false
static_ip_pool = data.nsxt_policy_ip_pool.host-ip-tep-pool[each.value.display_name].path
}
transport_zone_endpoint {
transport_zone = data.nsxt_policy_transport_zone.vlan-transport-zone.path
}
is_migrate_pnics = false
#################################################################################################################################
uplink {
uplink_name = "uplink-1"
vds_uplink_name = "Uplink 1"
}
uplink {
uplink_name = "uplink-2"
vds_uplink_name = "Uplink 2"
}
}
#################################################################################################################################
}
from terraform-provider-nsxt.
@msyretis fix should apply to nsxt_transport_node
, nsxt_policy_host_transport_node
, and nsxt_policy_host_transport_node_profile
resources.
from terraform-provider-nsxt.
Related Issues (20)
- Importing T1 information failing on VMC-NSX-T HOT 17
- Is there a way to import an existing DFW policy set into terraform ? HOT 2
- Interoperability with NSX-T v4.1 HOT 2
- Inter VRF Routing HOT 2
- nsxt_transport_node resource fails to create edge node when using a VLAN segment path in data_network_id HOT 13
- Add host_switch_name under standard_host_switch specification for nsxt_transport_node resource HOT 2
- IDS profile product list - bad support HOT 3
- Allow IDS/IPS policies to leverage the 'applied to' field HOT 1
- Bulk import feature for nsx-t - [services and groups] into terraform
- Infos of data.nsxt_policy_segment_realization can't export/show via output at least in terraform plan HOT 2
- BGP AS Number in VRF Tier-0 Gateway HOT 4
- Tier-1 gateway is deployed in SR mode when cluster path defined and HA_MODE set to NONE instead of DR. HOT 3
- Datasource for transport node collections state
- Multi-TEP High Availability HOT 1
- Error: Failed to retrieve NSX version (com.vmware.vapi.std.errors.service_unavailable). HOT 4
- Problem to import segment created by HCX in NSX in VMC HOT 4
- Role binding update for local users need identity_source_type HOT 2
- nsxt_policy_dhcp_v4_static_binding.static_ip_mac_stage0 HOT 4
- Possibility to create firewall rules with protocol and port HOT 1
- Segment with "None" QoS Profile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-nsxt.