Skip to content

netascode/terraform-nxos-interface-loopback

Tests

Terraform NX-OS Loopback Interface Module

Manages NX-OS Loopback Interface

Model Documentation: Link

Examples

module "nxos_interface_loopback" {
  source  = "netascode/interface-loopback/nxos"
  version = ">= 0.1.1"

  id           = 10
  admin_state  = true
  vrf          = "VRF1"
  ipv4_address = "2.1.1.1/24"
  ipv4_secondary_addresses = [
    "2.1.2.1/24",
    "2.1.3.1/24"
  ]
  description = "Terraform was here"
}

Requirements

Name Version
terraform >= 1.0.0
nxos >= 0.5.0

Providers

Name Version
nxos >= 0.5.0

Inputs

Name Description Type Default Required
device A device name from the provider configuration. string null no
id Interface ID. Allowed format: 1. number n/a yes
admin_state Administrative port state. Set true for up or false for down. bool true no
description Interface description. string "" no
vrf VRF Name. string "default" no
ipv4_address Interface IPv4 address. Allowed format: 192.168.0.1/24. string null no
ipv4_secondary_addresses List of Interface IPv4 secondary addresses. Allowed format: 192.168.0.1/24. list(string) [] no

Outputs

Name Description
dn Distinguished name of the object.
device A device name from the provider configuration.
id Interface ID.
ipv4_address Interface IPv4 address.

Resources

Name Type
nxos_ipv4_interface.ipv4If resource
nxos_ipv4_interface_address.ipv4Addr resource
nxos_ipv4_interface_address.secondary_ipv4Addr resource
nxos_loopback_interface.l3LbRtdIf resource
nxos_loopback_interface_vrf.nwRtVrfMbr resource