-
Notifications
You must be signed in to change notification settings - Fork 16
NSX Edge Interface Resource
Marco Masetti edited this page Jul 14, 2017
·
7 revisions
The EDGE_INTERFACE resource allows the creation and management of an edge interface on the Distributed Logical Router (DLR).
resource "nsx_logical_switch" "virtual_wire1" {
desc = "Terraform managed Logical Switch"
name = "logical_switch1"
tenantid = "tf_testid"
scopeid = "vdnscope-1"
controlplanemode = "UNICAST_MODE"
}
resource "nsx_edge_interface" "testInterface" {
edgeid = "edge-7"
name = "edge_interface200"
isconnected = true
connectedtoid = "${nsx_logical_switch.virtual_wire1.id}"
interfacetype = "internal"
mtu = 1500
addressgroups = [
{
"primaryaddress" = "10.152.182.1"
"subnetmask" = "255.255.255.0"
},
]
}
The following arguments are supported:
-
edgeid
- (Required) The NSX Edge ID for the Distributed Logical Router (DLR) we wish to use. -
name
- (Required) The name of the edge interface we want to create on the DLR. -
connectedtoid
- (Required) The ID of the virtual wire/logical switch (see NSX Logical Switch. -
isconnected
- (optional, false by default) - if the interface is connected to the virtual wire/logical switch -
interfacetype
- (Required) The interface type. -
mtu
- (Required) Max transfer unit for the network. -
index
- (Computed) the vnic index of the interface -
label
- (Computed) a unique label associated to the interface -
addressgroups
- (Required) - a list of network IP addresses (actually only 1 address can be defined per vnic), the unique entry has this data model:-
primaryaddress
- (Required) Gateway for network. -
subnetmask
- (Required) Subnet mask for network.
-