-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add track lists and track members (#75)
- Loading branch information
Showing
28 changed files
with
678 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: ">= 0.14.0" | ||
|
||
formatter: markdown table | ||
|
||
content: |- | ||
# Terraform ACI Track List Module | ||
Manages ACI Track List | ||
Location in GUI: | ||
`Tenants` » `XXX` » `Policies` » `Protocol` » `IP SLA` » `Track Lists` | ||
## Examples | ||
```hcl | ||
{{ include "./examples/complete/main.tf" }} | ||
``` | ||
{{ .Requirements }} | ||
{{ .Providers }} | ||
{{ .Inputs }} | ||
{{ .Outputs }} | ||
{{ .Resources }} | ||
output: | ||
file: README.md | ||
mode: replace | ||
|
||
sort: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<!-- BEGIN_TF_DOCS --> | ||
# Terraform ACI Track List Module | ||
|
||
Manages ACI Track List | ||
|
||
Location in GUI: | ||
`Tenants` » `XXX` » `Policies` » `Protocol` » `IP SLA` » `Track Lists` | ||
|
||
## Examples | ||
|
||
```hcl | ||
module "aci_track_list" { | ||
source = "netascode/nac-aci/aci//modules/terraform-aci-track-list" | ||
version = ">= 0.8.0" | ||
tenant = "ABC" | ||
name = "TRACK1" | ||
description = "My Description" | ||
percentage_down = 10 | ||
percentage_up = 20 | ||
type = "percentage" | ||
track_members = ["mem1", "mem2"] | ||
} | ||
``` | ||
|
||
## Requirements | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0.0 | | ||
| <a name="requirement_aci"></a> [aci](#requirement\_aci) | >= 2.0.0 | | ||
|
||
## Providers | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="provider_aci"></a> [aci](#provider\_aci) | >= 2.0.0 | | ||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|------|---------|:--------:| | ||
| <a name="input_tenant"></a> [tenant](#input\_tenant) | Tenant name. | `string` | n/a | yes | | ||
| <a name="input_name"></a> [name](#input\_name) | Track List name. | `string` | n/a | yes | | ||
| <a name="input_description"></a> [description](#input\_description) | Description. | `string` | `""` | no | | ||
| <a name="input_type"></a> [type](#input\_type) | Type of Track List. Allowed values: `percentage`, `weight`. | `string` | `"percentage"` | no | | ||
| <a name="input_percentage_down"></a> [percentage\_down](#input\_percentage\_down) | Down Threshold percentage. Minimum value: 0. Maximum value: 100. | `number` | `0` | no | | ||
| <a name="input_percentage_up"></a> [percentage\_up](#input\_percentage\_up) | Up Threshold percentage. Minimum value: 0. Maximum value: 100. | `number` | `0` | no | | ||
| <a name="input_weight_down"></a> [weight\_down](#input\_weight\_down) | Down Threshold weight. Minimum value: 0. Maximum value: 255. | `number` | `0` | no | | ||
| <a name="input_weight_up"></a> [weight\_up](#input\_weight\_up) | Up Threshold weight. Minimum value: 0. Maximum value: 255. | `number` | `0` | no | | ||
| <a name="input_track_members"></a> [track\_members](#input\_track\_members) | Track List members. | `list(string)` | `[]` | no | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| <a name="output_dn"></a> [dn](#output\_dn) | Distinguished name of `fvTrackList` object. | | ||
| <a name="output_name"></a> [name](#output\_name) | Track List name. | | ||
|
||
## Resources | ||
|
||
| Name | Type | | ||
|------|------| | ||
| [aci_rest_managed.fvRsOtmListMember](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/rest_managed) | resource | | ||
| [aci_rest_managed.fvTrackList](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/rest_managed) | resource | | ||
<!-- END_TF_DOCS --> |
24 changes: 24 additions & 0 deletions
24
modules/terraform-aci-track-list/examples/complete/.terraform-docs.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: ">= 0.14.0" | ||
|
||
formatter: markdown table | ||
|
||
content: |- | ||
# Track List Example | ||
To run this example you need to execute: | ||
```bash | ||
$ terraform init | ||
$ terraform plan | ||
$ terraform apply | ||
``` | ||
Note that this example will create resources. Resources can be destroyed with `terraform destroy`. | ||
```hcl | ||
{{ include "./main.tf" }} | ||
``` | ||
output: | ||
file: README.md | ||
mode: replace |
29 changes: 29 additions & 0 deletions
29
modules/terraform-aci-track-list/examples/complete/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!-- BEGIN_TF_DOCS --> | ||
# ND RA Prefix Policy Example | ||
|
||
To run this example you need to execute: | ||
|
||
```bash | ||
$ terraform init | ||
$ terraform plan | ||
$ terraform apply | ||
``` | ||
|
||
Note that this example will create resources. Resources can be destroyed with `terraform destroy`. | ||
|
||
```hcl | ||
module "aci_nd_ra_prefix_policy" { | ||
source = "netascode/nac-aci/aci//modules/terraform-aci-nd-ra-prefix-policy" | ||
version = ">= 0.8.0" | ||
tenant = "ABC" | ||
name = "NDRA1" | ||
description = "My Description" | ||
valid_lifetime = 1000 | ||
preferred_lifetime = 10000 | ||
auto_configuration = false | ||
on_link = false | ||
router_address = false | ||
} | ||
``` | ||
<!-- END_TF_DOCS --> |
12 changes: 12 additions & 0 deletions
12
modules/terraform-aci-track-list/examples/complete/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module "aci_track_list" { | ||
source = "netascode/nac-aci/aci//modules/terraform-aci-track-list" | ||
version = ">= 0.8.0" | ||
|
||
tenant = "ABC" | ||
name = "TRACK1" | ||
description = "My Description" | ||
percentage_down = 10 | ||
percentage_up = 20 | ||
type = "percentage" | ||
track_members = ["mem1", "mem2"] | ||
} |
11 changes: 11 additions & 0 deletions
11
modules/terraform-aci-track-list/examples/complete/versions.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
terraform { | ||
required_version = ">= 1.0.0" | ||
|
||
required_providers { | ||
aci = { | ||
source = "CiscoDevNet/aci" | ||
version = ">= 2.0.0" | ||
} | ||
} | ||
} |
Oops, something went wrong.