Skip to content

NSX Logical Switch Resource

Sandeep Sidhu edited this page Jul 6, 2017 · 4 revisions

The LOGICAL_SWITCH resource allows the creation and management of a logical switch (sometimes virtual wire, port group or universal switch).

Example Usage

resource "nsx_logical_switch" "virtual_wire" {
    desc = "Terraform managed Logical Switch"
    name = "tf_test"
    tenantid = "tf_testid"
    scopeid = "vdnscope-19"
    controlplanemode = "UNICAST_MODE"
}

Argument Reference

The following arguments are supported:

  • desc - (Required) A longer description for the logical switch.
  • name - (Required) The name of the logical switch to be created.
  • tenantid - (Required) The ID of the tenant that logical switch is to be associated with.
  • scopeid - (Required) The ID of transport zone that the logical switch is to be associated with.
  • controlplanemode - (Required) The control plane mode to use with the logical switch. Typically this will be UNICAST_MODE. Other valid options are HYBRID_MODE and MULTICAST_MODE