Skip to content

Commit

Permalink
[ignore] Modified resource examples template to incorporate grandchil…
Browse files Browse the repository at this point in the history
…dren using recursive sub-templates
  • Loading branch information
shrsr committed May 22, 2024
1 parent 0e2e345 commit ca451a3
Show file tree
Hide file tree
Showing 32 changed files with 337 additions and 129 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,13 @@ jobs:
terraform_version: '1.7.*'
terraform_wrapper: false
- name: Terraform Acceptance Test (APIC ${{ matrix.apic_host.name }})
run: go test github.com/CiscoDevNet/terraform-provider-aci/v2/internal/provider -v -timeout 300m -coverprofile=coverage.out -covermode=atomic
run: go test github.com/CiscoDevNet/terraform-provider-aci/v2/internal/provider -v -timeout 300m -race -coverprofile=coverage.out -covermode=atomic
env:
TF_ACC: '1'
TF_ACC_STATE_LINEAGE: '1'
ACI_VAL_REL_DN: false
ACI_URL: ${{ matrix.apic_host.url }}
GOMAXPROCS: '1'
- name: Upload coverage to Codecov
# Upload Coverage on latest only
if: ${{ matrix.apic_host.name == 'v6.0'}}
Expand Down
98 changes: 74 additions & 24 deletions docs/resources/communication_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,44 +55,94 @@ resource "aci_communication_policy" "full_example" {
strict_security_on_apic_oob_subnet = "no"
http_ssl_configuration = [
{
access_control_allow_credential = "disabled"
access_control_allow_origins = "access_control_allow_origins_1"
admin_st = "disabled"
annotation = "annotation_1"
cli_only_mode = "disabled"
client_cert_auth_state = "disabled"
description = "description_1"
dh_param = "1024"
global_throttle_rate = "global_throttle_rate_1"
global_throttle_st = "disabled"
global_throttle_unit = "global_throttle_unit_1"
max_request_status_count = "max_request_status_count_1"
name = "name_1"
name_alias = "name_alias_1"
node_exporter = "disabled"
port = "port_1"
referer = "referer_1"
server_header = "disabled"
ssl_protocols = "TLSv1"
throttle_rate = "throttle_rate_1"
throttle_st = "disabled"
visore_access = "disabled"
access_control_allow_credential = "access_control_allow_credential_0"
access_control_allow_origins = "access_control_allow_origins_0"
admin_st = "admin_st_0"
annotation = "annotation_0"
cli_only_mode = "cli_only_mode_0"
client_cert_auth_state = "client_cert_auth_state_0"
description = "description_0"
dh_param = "dh_param_0"
global_throttle_rate = "global_throttle_rate_0"
global_throttle_st = "global_throttle_st_0"
global_throttle_unit = "global_throttle_unit_0"
max_request_status_count = "max_request_status_count_0"
name = "name_0"
name_alias = "name_alias_0"
node_exporter = "node_exporter_0"
port = "port_0"
referer = "referer_0"
server_header = "server_header_0"
ssl_protocols = "ssl_protocols_0"
throttle_rate = "throttle_rate_0"
throttle_st = "throttle_st_0"
visore_access = "visore_access_0"
tp = [
{
annotation = "annotation_0"
target_dn = "target_dn_0"
annotations = [
{
key = "key_0"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_0"
}
]
}
]
key_ring = [
{
annotation = "annotation_0"
tn_pki_key_ring_name = aci_.example.name
annotations = [
{
key = "key_0"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_0"
}
]
}
]
annotations = [
{
key = "key_0"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_0"
}
]
}
]
annotations = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
}
```

All examples for the Communication Policy resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_communication_policy) folder.
Expand Down
6 changes: 4 additions & 2 deletions docs/resources/endpoint_tag_ip.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,19 @@ resource "aci_endpoint_tag_ip" "full_example_tenant" {
annotations = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
}
```

All examples for the Endpoint Tag Ip resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_endpoint_tag_ip) folder.
Expand Down
6 changes: 4 additions & 2 deletions docs/resources/endpoint_tag_mac.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,19 @@ resource "aci_endpoint_tag_mac" "full_example_tenant" {
annotations = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
}
```

All examples for the Endpoint Tag Mac resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_endpoint_tag_mac) folder.
Expand Down
22 changes: 18 additions & 4 deletions docs/resources/external_management_network_instance_profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,39 @@ resource "aci_external_management_network_instance_profile" "full_example" {
priority = "level1"
relation_to_consumed_out_of_band_contracts = [
{
annotation = "annotation_1"
priority = "level1"
annotation = "annotation_0"
priority = "priority_0"
out_of_band_contract_name = aci_out_of_band_contract.example.name
annotations = [
{
key = "key_0"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_0"
}
]
}
]
annotations = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
}
```

All examples for the External Management Network Instance Profile resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_external_management_network_instance_profile) folder.
Expand Down
6 changes: 4 additions & 2 deletions docs/resources/external_management_network_subnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,19 @@ resource "aci_external_management_network_subnet" "full_example_external_managem
annotations = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
}
```

All examples for the External Management Network Subnet resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_external_management_network_subnet) folder.
Expand Down
6 changes: 4 additions & 2 deletions docs/resources/l3out_consumer_label.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,19 @@ resource "aci_l3out_consumer_label" "full_example_l3_outside" {
annotations = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
}
```

All examples for the L3out Consumer Label resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_l3out_consumer_label) folder.
Expand Down
6 changes: 4 additions & 2 deletions docs/resources/l3out_provider_label.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,19 @@ resource "aci_l3out_provider_label" "full_example_l3_outside" {
annotations = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
}
```

All examples for the L3out Provider Label resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_l3out_provider_label) folder.
Expand Down
6 changes: 4 additions & 2 deletions docs/resources/l3out_redistribute_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,19 @@ resource "aci_l3out_redistribute_policy" "full_example_l3_outside" {
annotations = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
}
```

All examples for the L3out Redistribute Policy resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_l3out_redistribute_policy) folder.
Expand Down
6 changes: 4 additions & 2 deletions docs/resources/out_of_band_contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,19 @@ resource "aci_out_of_band_contract" "full_example" {
annotations = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
}
```

All examples for the Out Of Band Contract resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_out_of_band_contract) folder.
Expand Down
6 changes: 4 additions & 2 deletions docs/resources/pim_route_map_entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,19 @@ resource "aci_pim_route_map_entry" "full_example_pim_route_map_policy" {
annotations = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
}
```

All examples for the Pim Route Map Entry resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_pim_route_map_entry) folder.
Expand Down
6 changes: 4 additions & 2 deletions docs/resources/pim_route_map_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,19 @@ resource "aci_pim_route_map_policy" "full_example_tenant" {
annotations = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
}
```

All examples for the Pim Route Map Policy resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_pim_route_map_policy) folder.
Expand Down
6 changes: 4 additions & 2 deletions docs/resources/relation_to_consumed_out_of_band_contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,19 @@ resource "aci_relation_to_consumed_out_of_band_contract" "full_example_external_
annotations = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
tags = [
{
key = "key_0"
value = "value_1"
value = "value_0"
}
]
}
```

All examples for the Relation To Consumed Out Of Band Contract resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_relation_to_consumed_out_of_band_contract) folder.
Expand Down
Loading

0 comments on commit ca451a3

Please sign in to comment.