Skip to content

Terraform module which manages NSX-T/V backed routed VDC network ressources on VMWare Cloud Director.

Notifications You must be signed in to change notification settings

noris-network/terraform-vcd-network-routed-v2

Repository files navigation

terraform-vcd-network-routed-v2

Terraform module which manages NSX-T/V backed routed VDC network ressources on VMWare Cloud Director.

Requirements

Name Version
terraform >= 1.1.9
vcd >= 3.10.0

Providers

Name Version
vcd 3.10.0

Modules

No modules.

Resources

Name Type
vcd_network_routed_v2.network_routed_v2 resource
vcd_nsxt_network_dhcp.pool resource
vcd_nsxt_edgegateway.nsxt_edgegateway data source
vcd_vdc_group.vdc_group data source

Inputs

Name Description Type Default Required
gateway The IP-address of the gateway in this network. string n/a yes
name Name for the network. string n/a yes
prefix_length The prefix length for the new network. number n/a yes
vdc_edgegateway_name The name for the Edge Gateway this network connects to. string n/a yes
vdc_group_name The name of the VDC group. string n/a yes
vdc_org_name The name of the organization to use. string n/a yes
description An optional description of the network. string null no
dhcp_pool IP ranges to configure DHCP for.
object({
listener_ip_address = optional(string)
pool_ranges = optional(list(map(string)), [{start_address = "192.168.1.150", end_address = "192.168.1.199"}])
dns_servers = optional(list(string))
dhcp_mode = optional(string, "EDGE")
lease_time = optional(number, 4294967295)
})
null no
dns1 First DNS server to use. string null no
dns2 Second DNS server to use. string null no
dns_suffix A FQDN for the virtual machines on this network. string null no
dual_stack_enabled Enables Dual-Stack mode so that one can configure one IPv4 and one IPv6 networks. Note In such case IPv4 addresses must be used in gateway, prefix_length and static_ip_pool while IPv6 addresses in secondary_gateway, secondary_prefix_length and secondary_static_ip_pool fields. bool false no
interface_type An interface for the network. One of internal, subinterface, distributed (requires the edge gateway to support distributed networks). NSX-T supports only internal. string "internal" no
metadata_entry A set of metadata entries to assign. list(map(string)) [] no
secondary_gateway IPv6 gateway when Dual-Stack mode is enabled. string null no
secondary_prefix_length IPv6 prefix length when Dual-Stack mode is enabled. number null no
secondary_static_ip_pool One or more IPv6 static pools when Dual-Stack mode is enabled. list(map(string)) [] no
static_ip_pool Static IP-pools create for this network. list(map(string)) [] no

Outputs

Name Description
id The ID of this network.
name The Name of this network.

Examples

module "org_network" {
  source               = "git::https://github.com/noris-network/terraform-vcd-network-routed-v2?ref=1.1.0"
  name                 = "myNet"
  vdc_org_name         = "myORG"
  vdc_edgegateway_name = "T1-myORG"
  vdc_group_name       = "myDCGroup"
  prefix_length        = 24
  gateway              = "192.168.0.1"
  static_ip_pool       = [
    {
      start_address = "192.168.0.100"
      end_address   = "192.168.0.149"
    }
  ]
  dhcp_pool =  {
    pool_ranges = [
      {
        start_address = "192.168.0.150"
        end_address   = "192.168.0.199"
      }
    ]
    listener_ip_address = "192.168.0.1"
    dns_servers = ["8.8.8.8", "8.8.8.8"]
    dhcp_mode   = "EDGE"
    lease_time  = 86400
  }
}

Changelog

  • v1.1.0 - Add posibility to add DHCP scopes to Org Network
  • v1.0.0 - Initial release

About

Terraform module which manages NSX-T/V backed routed VDC network ressources on VMWare Cloud Director.

Topics

Resources

Stars

Watchers

Forks

Languages