https://github.com/netascode/terraform-hyperfabric-nac-hyperfabric
Terraform Cisco Hyperfabric Network-as-Code Module
https://github.com/netascode/terraform-hyperfabric-nac-hyperfabric
cisco hyperfabric iac nac network-as-code terraform terraform-module
Last synced: 2 months ago
JSON representation
Terraform Cisco Hyperfabric Network-as-Code Module
- Host: GitHub
- URL: https://github.com/netascode/terraform-hyperfabric-nac-hyperfabric
- Owner: netascode
- License: apache-2.0
- Created: 2025-02-19T20:23:47.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-12T06:37:27.000Z (2 months ago)
- Last Synced: 2025-03-12T07:28:20.092Z (2 months ago)
- Topics: cisco, hyperfabric, iac, nac, network-as-code, terraform, terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/netascode/nac-hyperfabric/hyperfabric
- Size: 11.7 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
# Terraform Network-as-Code Cisco Hyperfabric Module
A Terraform module to configure Cisco Hyperfabric.
## Usage
This module supports an inventory driven approach, where a complete Hyperfabric configuration or parts of it are either modeled in one or more YAML files or natively using Terraform variables.
## Examples
Configuring a Fabric using YAML:
#### `fabric.yaml`
```yaml
---
hyperfabric:
fabrics:
- name: My Fabric 01
description: My first HyperFabric
address: 170 West Tasman Dr.
city: San Jose
country: USA
location: sj01-1-101-AAA01
```#### `main.tf`
```hcl
module "hyperfabric" {
source = "netascode/nac-hyperfabric/hyperfabric"
version = ">= 0.1.0"yaml_files = ["fabric.yaml"]
}
```## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.8.0 |
| [hyperfabric](#requirement\_hyperfabric) | >= 0.1.0 |
| [local](#requirement\_local) | >= 2.3.0 |
| [utils](#requirement\_utils) | >= 0.2.5 |
## Inputs| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [model](#input\_model) | As an alternative to YAML files, a native Terraform data structure can be provided as well. | `map(any)` | `{}` | no |
| [write\_default\_values\_file](#input\_write\_default\_values\_file) | Write all default values to a YAML file. Value is a path pointing to the file to be created. | `string` | `""` | no |
| [yaml\_directories](#input\_yaml\_directories) | List of paths to YAML directories. | `list(string)` | `[]` | no |
| [yaml\_files](#input\_yaml\_files) | List of paths to YAML files. | `list(string)` | `[]` | no |
## Outputs| Name | Description |
|------|-------------|
| [default\_values](#output\_default\_values) | All default values. |
| [model](#output\_model) | Full model. |
## Resources| Name | Type |
|------|------|
| [hyperfabric_connection.connection](https://registry.terraform.io/providers/CiscoDevNet/hyperfabric/latest/docs/resources/connection) | resource |
| [hyperfabric_fabric.fabric](https://registry.terraform.io/providers/CiscoDevNet/hyperfabric/latest/docs/resources/fabric) | resource |
| [hyperfabric_node.node](https://registry.terraform.io/providers/CiscoDevNet/hyperfabric/latest/docs/resources/node) | resource |
| [hyperfabric_node_loopback.node_loopback](https://registry.terraform.io/providers/CiscoDevNet/hyperfabric/latest/docs/resources/node_loopback) | resource |
| [hyperfabric_node_management_port.node_management_port](https://registry.terraform.io/providers/CiscoDevNet/hyperfabric/latest/docs/resources/node_management_port) | resource |
| [hyperfabric_node_port.node_port](https://registry.terraform.io/providers/CiscoDevNet/hyperfabric/latest/docs/resources/node_port) | resource |
| [hyperfabric_node_sub_interface.node_sub_interface](https://registry.terraform.io/providers/CiscoDevNet/hyperfabric/latest/docs/resources/node_sub_interface) | resource |
| [hyperfabric_user.user](https://registry.terraform.io/providers/CiscoDevNet/hyperfabric/latest/docs/resources/user) | resource |
| [hyperfabric_vni.vni](https://registry.terraform.io/providers/CiscoDevNet/hyperfabric/latest/docs/resources/vni) | resource |
| [hyperfabric_vrf.vrf](https://registry.terraform.io/providers/CiscoDevNet/hyperfabric/latest/docs/resources/vrf) | resource |
| [local_sensitive_file.defaults](https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/sensitive_file) | resource |
| [terraform_data.validation](https://registry.terraform.io/providers/hashicorp/terraform/latest/docs/resources/data) | resource |
## ModulesNo modules.