https://github.com/netascode/terraform-nxos-route-target-helper
https://github.com/netascode/terraform-nxos-route-target-helper
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/netascode/terraform-nxos-route-target-helper
- Owner: netascode
- License: apache-2.0
- Created: 2022-04-11T08:28:52.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-10T12:04:21.000Z (over 1 year ago)
- Last Synced: 2025-01-14T14:14:06.767Z (4 months ago)
- Language: HCL
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- 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-route-target-helper/actions/workflows/test.yml)
# Terraform NXOS Route Target helper
Description
Translates Route Target values from NXOS CLI format to NX-OS DME model format. This module does not create any resources.
Translation examples:
```
route-target 65535:1 --> "route-target:as2-nn2:65535:1"
route-target 65536:1 --> "route-target:as4-nn2:65536:1"
route-target 1.1.1.1:1 --> "route-target:ipv4-nn2:1.1.1.1:1"
route-target auto --> "route-target:unknown:0:0"
```## Examples
```hcl
module "main" {
source = "netascode/route-target-helper/nxos"
version = ">= 0.0.1"values = ["auto", "65535:1", "65536:1"]
}
```## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0.0 |## Providers
No providers.
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [values](#input\_values) | List of Route Target values. | `list(string)` | n/a | yes |## Outputs
| Name | Description |
|------|-------------|
| [result](#output\_result) | List of Route Targets in NX-OS DME format. |## Resources
No resources.