Skip to content

Instantly share code, notes, and snippets.

@gowatana
Last active October 23, 2023 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gowatana/bc4b6808ddceed203dc502a57067490b to your computer and use it in GitHub Desktop.
Save gowatana/bc4b6808ddceed203dc502a57067490b to your computer and use it in GitHub Desktop.
data "nsxt_policy_tier1_gateway" "t1gw" {
display_name = "t1-gw-21"
}
resource "nsxt_policy_fixed_segment" "segment1" {
display_name = "seg-overlay-03"
description = "Terraform provisioned Segment"
connectivity_path = data.nsxt_policy_tier1_gateway.t1gw.path
subnet {
cidr = "172.16.3.1/24"
dhcp_ranges = ["172.16.3.100-172.16.3.199"]
dhcp_v4_config {
server_address = "172.16.3.254/24"
dns_servers = ["192.168.1.101", "192.168.1.102"]
}
}
}
@gowatana
Copy link
Author

下記の投稿むけ。

NSX 4.1 に Terraform でオーバーレイ セグメントを追加してみる。
https://vm.gowatana.jp/entry/2023/10/23/090654

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment