https://github.com/netascode/terraform-nxos-interface-vlan
Terraform NX-OS VLAN Interface Module
https://github.com/netascode/terraform-nxos-interface-vlan
cisco nx-os nxos terraform terraform-module
Last synced: 7 months ago
JSON representation
Terraform NX-OS VLAN Interface Module
- Host: GitHub
- URL: https://github.com/netascode/terraform-nxos-interface-vlan
- Owner: netascode
- License: apache-2.0
- Created: 2022-04-26T16:07:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-10T12:06:04.000Z (over 1 year ago)
- Last Synced: 2025-01-14T14:14:06.715Z (9 months ago)
- Topics: cisco, nx-os, nxos, terraform, terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/netascode/interface-vlan/nxos
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/netascode/terraform-nxos-interface-vlan/actions/workflows/test.yml)
# Terraform NX-OS Vlan Interface Module
Manages NX-OS Vlan Interface
Model Documentation: [Link](https://developer.cisco.com/docs/cisco-nexus-3000-and-9000-series-nx-api-rest-sdk-user-guide-and-api-reference-release-9-3x/#!configuring-a-vlan-interface)
## Examples
```hcl
module "nxos_interface_vlan" {
source = "netascode/interface-vlan/nxos"
version = ">= 0.1.1"id = 10
admin_state = true
vrf = "VRF1"
ipv4_address = "3.1.1.1/24"
ipv4_secondary_addresses = [
"2.1.2.1/24",
"2.1.3.1/24"
]
description = "Terraform was here"
mtu = 9216
}
```## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0.0 |
| [nxos](#requirement\_nxos) | >= 0.5.0 |## Providers
| Name | Version |
|------|---------|
| [nxos](#provider\_nxos) | >= 0.5.0 |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [device](#input\_device) | A device name from the provider configuration. | `string` | `null` | no |
| [id](#input\_id) | Interface ID. Allowed format: `1`. | `number` | n/a | yes |
| [admin\_state](#input\_admin\_state) | Administrative port state. Set `true` for `up` or `false` for `down`. | `bool` | `true` | no |
| [delay](#input\_delay) | The administrative port delay time. Minimum value: 1. Maximum value: 16777215. | `number` | `1` | no |
| [description](#input\_description) | Interface description. | `string` | `""` | no |
| [bandwidth](#input\_bandwidth) | Interface bandwidth. Minimum value: 1. Maximum value: 400000000. | `number` | `1000000` | no |
| [ip\_forward](#input\_ip\_forward) | Enable/disable command `ip forward`. | `bool` | `false` | no |
| [ip\_drop\_glean](#input\_ip\_drop\_glean) | Enable/disable command `ip drop-glean`. | `bool` | `false` | no |
| [medium](#input\_medium) | Administrative port medium type. | `string` | `"bcast"` | no |
| [mtu](#input\_mtu) | Administrative port MTU. Minimum value: 576. Maximum value: 9216. | `number` | `1500` | no |
| [vrf](#input\_vrf) | VRF Name. | `string` | `"default"` | no |
| [ipv4\_address](#input\_ipv4\_address) | Interface IPv4 address. Allowed format: `192.168.0.1/24`. | `string` | `null` | no |
| [ipv4\_secondary\_addresses](#input\_ipv4\_secondary\_addresses) | List of Interface IPv4 secondary addresses. Allowed format: `192.168.0.1/24`. | `list(string)` | `[]` | no |## Outputs
| Name | Description |
|------|-------------|
| [dn](#output\_dn) | Distinguished name of the object. |## Resources
| Name | Type |
|------|------|
| [nxos_ipv4_interface.ipv4If](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/ipv4_interface) | resource |
| [nxos_ipv4_interface_address.ipv4Addr](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/ipv4_interface_address) | resource |
| [nxos_ipv4_interface_address.secondary_ipv4Addr](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/ipv4_interface_address) | resource |
| [nxos_svi_interface.sviIf](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/svi_interface) | resource |
| [nxos_svi_interface_vrf.nwRtVrfMbr](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/svi_interface_vrf) | resource |