From e0604fd9f9d8526c835c3421b2dde1fd15b5dbba Mon Sep 17 00:00:00 2001 From: Repinoid Date: Tue, 22 Sep 2026 18:10:12 +0300 Subject: [PATCH] =?UTF-8?q?feat(fullpipe):=20=D0=B4=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D1=82=D1=8C=20=D0=BC=D0=BE=D0=B4=D0=B8=D1=84=D0=B8?= =?UTF-8?q?=D0=BA=D0=B0=D1=82=D0=BE=D1=80=20vc=5Fnsxt=20network=20(SNAT=20?= =?UTF-8?q?=D1=81=20=D0=B2=D0=BD=D0=B5=D1=88=D0=BD=D0=B8=D0=BC=20IP=20?= =?UTF-8?q?=D0=B8=D0=B7=20vc=5Forg)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DEV_STAND/FullPipe/edge_network.tf | 21 +++++++++++++++++++++ DEV_STAND/FullPipe/variables.tf | 6 ++++++ 2 files changed, 27 insertions(+) create mode 100644 DEV_STAND/FullPipe/edge_network.tf diff --git a/DEV_STAND/FullPipe/edge_network.tf b/DEV_STAND/FullPipe/edge_network.tf new file mode 100644 index 0000000..cd530b3 --- /dev/null +++ b/DEV_STAND/FullPipe/edge_network.tf @@ -0,0 +1,21 @@ +# vcNsxt -> modify (modifier: network) — включение SNAT / сетевые настройки Edge. +# Внешний IP берём из организации (тот же ipSpace, что выделен в vc_org). +resource "nubes_vc_nsxt_network" "edge_net" { + vc_nsxt_id = nubes_vc_nsxt.edge.id + + # 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 + + qos_profile = var.nsxt_qos_profile + need_enable_avi = var.nsxt_need_enable_avi + virtual_services_count = var.nsxt_virtual_services_count + + depends_on = [nubes_vc_org_ip_space.org_ips] +} diff --git a/DEV_STAND/FullPipe/variables.tf b/DEV_STAND/FullPipe/variables.tf index 52d5053..29f60fb 100644 --- a/DEV_STAND/FullPipe/variables.tf +++ b/DEV_STAND/FullPipe/variables.tf @@ -102,6 +102,12 @@ variable "nsxt_second_dns" { description = "Второй DNS" } +variable "nsxt_qos_profile" { + type = string + default = "QoS-100Mbit" + description = "Профиль пропускной способности Edge" +} + # --- vc_org (Организация в Cloud Director) — модификатор ip_space --- variable "org_ip_space_name" {