https://github.com/netascode/terraform-nxos-ethernet-interface
https://github.com/netascode/terraform-nxos-ethernet-interface
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/netascode/terraform-nxos-ethernet-interface
- Owner: netascode
- License: apache-2.0
- Archived: true
- Created: 2021-09-10T08:22:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-20T20:18:18.000Z (over 2 years ago)
- Last Synced: 2025-03-21T18:04:18.865Z (2 months ago)
- Language: HCL
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- 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-ethernet-interface/actions/workflows/test.yml)
# Terraform NXOS Ethernet Interface Module
Manages Ethernet Interfaces
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-an-ethernet-interface)
## Examples
```hcl
module "nxos_ethernet_interface" {
source = "netascode/ethernet-interface/nxos"
version = ">= 0.0.1"id = "eth1/10"
description = "My Description"
mode = "trunk"
}
```## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0.0 |
| [nxos](#requirement\_nxos) | >= 0.1.0 |## Providers
| Name | Version |
|------|---------|
| [nxos](#provider\_nxos) | >= 0.1.0 |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [id](#input\_id) | Interface ID. Must match first field in the output of `show intf brief`. Example: `eth1/1`. | `string` | n/a | yes |
| [description](#input\_description) | Interface description. | `string` | `""` | no |
| [mode](#input\_mode) | Interface mode. Choices: `access`, `trunk`, `fex-fabric`, `dot1q-tunnel`, `promiscuous`, `host`, `trunk_secondary`, `trunk_promiscuous`, `vntag`. | `string` | `"access"` | no |## Outputs
| Name | Description |
|------|-------------|
| [dn](#output\_dn) | Distinguished name of `l1PhysIf` object. |
| [id](#output\_id) | Interface ID. |## Resources
| Name | Type |
|------|------|
| [nxos_rest.l1PhysIf](https://registry.terraform.io/providers/netascode/nxos/latest/docs/resources/rest) | resource |