» aci_subnet

Manages ACI Subnet

» Example Usage

    resource "aci_subnet" "foosubnet" {
        bridge_domain_dn = "${aci_bridge_domain.bd_for_subnet.id}"
        description      = "%s"
        ip               = "10.0.3.28/27"
        annotation       = "tag_subnet"
        ctrl             = "%s"
        name_alias       = "alias_subnet"
        preferred        = "no"
        scope            = "private"
        virtual          = "yes"
    } 

» Argument Reference

  • bridge_domain_dn - (Required) Distinguished name of parent BridgeDomain object.
  • ip - (Required) The IP address and mask of the default gateway.
  • annotation - (Optional) annotation for object subnet.
  • ctrl - (Optional) The subnet control state. The control can be specific protocols applied to the subnet such as IGMP Snooping. Allowed values are "unspecified", "querier", "nd" and "no-default-gateway". Default is "nd".
  • name_alias - (Optional) name_alias for object subnet.
  • preferred - (Optional) Indicates if the subnet is preferred (primary) over the available alternatives. Only one preferred subnet is allowed. Allowed values are "yes" and "no". Default is "no".
  • scope - (Optional) The network visibility of the subnet. Allowed values are "private", "public" and "shared". Default is "private".
  • virtual - (Optional) Treated as virtual IP address. Used in case of BD extended to multiple sites. Allowed values are "yes" and "no". Default is "no".

  • relation_fv_rs_bd_subnet_to_out - (Optional) Relation to class l3extOut. Cardinality - N_TO_M. Type - Set of String.

  • relation_fv_rs_nd_pfx_pol - (Optional) Relation to class ndPfxPol. Cardinality - N_TO_ONE. Type - String.

  • relation_fv_rs_bd_subnet_to_profile - (Optional) Relation to class rtctrlProfile. Cardinality - N_TO_ONE. Type - String.

» Attribute Reference

The only attribute that this resource exports is the id, which is set to the Dn of the Subnet.

» Importing

An existing Subnet can be imported into this resource via its Dn, via the following command:

terraform import aci_subnet.example <Dn>