Files
tf_provider/DEV_STAND/FullPipe/edge_network.tf
T

25 lines
1.1 KiB
Terraform
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# vcNsxt -> modify (modifier: network) — SNAT + ALB.
# ВАЖНО: resource "nubes_vc_nsxt" Update НЕ вызывает modify (у сервиса нет
# modify-набора для instance-ресурса — изменения Edge идут ТОЛЬКО через этот
# модификатор). Поэтому need_enable_avi/virtual_services_count задаются ЗДЕСЬ.
resource "nubes_vc_nsxt_network" "edge_net" {
vc_nsxt_id = nubes_vc_nsxt.edge.id
# ALB (AVI Load Balancer)
need_enable_avi = var.nsxt_need_enable_avi
virtual_services_count = var.nsxt_virtual_services_count
qos_profile = var.nsxt_qos_profile
# JSON-строка с camelCase-ключами (как в API/HAR), НЕ snake_case как в edge.tf
routed_net_configuration = jsonencode({
ipAddrPool = var.nsxt_ip_addr_pool
mainDns = var.nsxt_main_dns
secondDns = var.nsxt_second_dns
})
# SNAT: внешний IP из организации; "no-needed" — выключить SNAT
ip_space_name = var.org_ip_space_name
depends_on = [nubes_vc_org_ip_space.org_ips]
}