Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of recursive logic in the templates to incorporate grand children of the parent class as nested children within the immediate child of the parent (DCNE-145) #1186

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
a48b2e0
[minor_change] Addition of recursive logic in the templates to incorp…
shrsr Mar 22, 2024
a65c959
[ignore] Changed go template format
shrsr Mar 28, 2024
7d537eb
[ignore] Made changes to resource template to accommodate recursion f…
shrsr Apr 11, 2024
1b2300d
[ignore] Made changes to resource for testing Read function
shrsr Apr 16, 2024
b006621
[ignore] Made changes to resource for testing custom function for ele…
shrsr Apr 16, 2024
5d0881a
[ignore] Made changes to resource template to accommodate rsp sub tre…
shrsr Apr 18, 2024
b3fa0da
[ignore] Made changes to resource template to include child attribute…
shrsr Apr 23, 2024
43f96ad
[ignore] Changed full identifier to parent hierarchy
shrsr Apr 30, 2024
1c8bfcc
[ignore] Moved declaration of childmap under loop over plan
shrsr May 6, 2024
15c736a
[ignore] Changed element type of set attributes which is part of a an…
shrsr May 8, 2024
4b7c03d
[ignore] Modified resource docs template to incorporate grandchildren…
shrsr May 15, 2024
c23da5f
[ignore] Modified generartor to exclude resources that don't have the…
shrsr May 16, 2024
c69352e
[ignore] Go-generate rendered files to match with the latest
shrsr May 16, 2024
c340d0f
[ignore] Made changes to the generator to exclude objects that don't …
shrsr May 17, 2024
37e2f49
[ignore] Modified resource examples template to incorporate grandchil…
shrsr May 22, 2024
5b213a0
[ignore] Modified resource test template to remove child at the right…
shrsr May 22, 2024
2146e83
[ignore] Added recursive sub templates in testvars.yml to accommodate…
shrsr Jun 7, 2024
5b3eaaf
[ignore] Added children identifier in testvars for nested children
shrsr Jun 10, 2024
f16ca88
[ignore] Addition of recursive sub-templates for removing one child a…
shrsr Jun 20, 2024
4973055
[ignore] Addition of recursive sub-templates for rendering test check…
shrsr Jul 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion docs/data-sources/annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ data "aci_annotation" "example_application_epg" {

* `parent_dn` - (string) The distinguished name (DN) of the parent object, possible resources:
- Too many parent DNs to display, see model documentation for all possible parents of [tagAnnotation](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagAnnotation/overview).
- [aci_communication_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/communication_policy) ([commPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/commPol/overview))
- [aci_application_epg](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/application_epg) ([fvAEPg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvAEPg/overview))
- [aci_vrf](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/vrf) ([fvCtx](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvCtx/overview))
- [aci_endpoint_tag_ip](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_tag_ip) ([fvEpIpTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpIpTag/overview))
Expand All @@ -73,7 +74,6 @@ data "aci_annotation" "example_application_epg" {
- [aci_relation_to_consumed_out_of_band_contract](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_consumed_out_of_band_contract) ([mgmtRsOoBCons](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/mgmtRsOoBCons/overview))
- [aci_external_management_network_subnet](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/external_management_network_subnet) ([mgmtSubnet](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/mgmtSubnet/overview))
- [aci_l3out_node_sid_profile](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/l3out_node_sid_profile) ([mplsNodeSidP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/mplsNodeSidP/overview))
- [aci_netflow_exporter_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/netflow_exporter_policy) ([netflowExporterPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/netflowExporterPol/overview))
* `key` (key) - (string) The key used to uniquely identify this configuration object.

### Read-Only ###
Expand Down
85 changes: 85 additions & 0 deletions docs/data-sources/communication_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
# Documentation generated by "gen/generator.go"; DO NOT EDIT.
# In order to regenerate this file execute `go generate` from the repository root.
# More details can be found in the [README](https://github.com/CiscoDevNet/terraform-provider-aci/blob/master/README.md).
subcategory: "Generic"
layout: "aci"
page_title: "ACI: aci_communication_policy"
sidebar_current: "docs-aci-data-source-aci_communication_policy"
description: |-
Data source for Communication Policy
---

# aci_communication_policy #

Data source for Communication Policy

## API Information ##

* Class: [commPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/commPol/overview)

* Supported in ACI versions: 1.0(1e) and later.

* Distinguished Name Format: `uni/fabric/comm-{name}`

## GUI Information ##

* Location: `Generic`

## Example Usage ##

```hcl

data "aci_communication_policy" "example" {
name = "test_name"
}

```

## Schema ##

### Required ###

* `name` (name) - (string) The name of the Communication Policy object.

### Read-Only ###

* `id` - (string) The distinguished name (DN) of the Communication Policy object.
* `annotation` (annotation) - (string) The annotation of the Communication Policy object.
* `description` (descr) - (string) The description of the Communication Policy object.
* `name_alias` (nameAlias) - (string) The name alias of the Communication Policy object.
* `owner_key` (ownerKey) - (string) The key for enabling clients to own their data for entity correlation.
* `owner_tag` (ownerTag) - (string) A tag for enabling clients to add their own data. For example, to indicate who created this object.
* `strict_security_on_apic_oob_subnet` (strictSecurityOnApicOOBSubnet) - (string) remove implicit access on apic oob from any apic OOB subnet IP.

* `http_ssl_configuration` - (list) A list of Http Ssl Configuration (ACI object [commHttps](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/commHttps/overview)).
* `access_control_allow_credential` (accessControlAllowCredential) - (string) accessControlAllowCredential.
* `access_control_allow_origins` (accessControlAllowOrigins) - (string)
* `admin_st` (adminSt) - (string) The state of HTTPS communication service. This can be enabled or disabled.
* `annotation` (annotation) - (string) The annotation of the Http Ssl Configuration object.
* `cli_only_mode` (cliOnlyMode) - (string) CLI only mode.
* `client_cert_auth_state` (clientCertAuthState) - (string) Client Cert Auth State.
* `description` (descr) - (string) The description of the Http Ssl Configuration object.
* `dh_param` (dhParam) - (string) DH Parameter.
* `global_throttle_rate` (globalThrottleRate) - (string) The maximum MO api calls allowed per unit time.
* `global_throttle_st` (globalThrottleSt) - (string) Throttle state for all clients without tag0 in header.
* `global_throttle_unit` (globalThrottleUnit) - (string) Unit of rate limit.
* `max_request_status_count` (maxRequestStatusCount) - (string) The maximum number of request status objects to keep.
* `name` (name) - (string) The name of the Http Ssl Configuration object.
* `name_alias` (nameAlias) - (string) The name alias of the Http Ssl Configuration object.
* `node_exporter` (nodeExporter) - (string) Node Exporter service.
* `port` (port) - (string) The port used for HTTPS communication service.
* `referer` (referer) - (string) Allowed HTTP referer space separated list.
* `server_header` (serverHeader) - (string) Server Header.
* `ssl_protocols` (sslProtocols) - (list) The Secure Socket Layer (SSL) protocol.
* `throttle_rate` (throttleRate) - (string) The maximum login/refresh allowed per second.
* `throttle_st` (throttleSt) - (string) Login/refresh throttle state.
* `visore_access` (visoreAccess) - (string) Visore Access.

* `annotations` - (list) A list of Annotations (ACI object [tagAnnotation](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagAnnotation/overview)). This attribute is supported in ACI versions: 3.2(1l) and later.
* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `value` (value) - (string) The value of the property.

* `tags` - (list) A list of Tags (ACI object [tagTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagTag/overview)). This attribute is supported in ACI versions: 3.2(1l) and later.
* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `value` (value) - (string) The value of the property.
2 changes: 1 addition & 1 deletion docs/data-sources/tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ data "aci_tag" "example_application_epg" {

* `parent_dn` - (string) The distinguished name (DN) of the parent object, possible resources:
- Too many parent DNs to display, see model documentation for all possible parents of [tagTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagTag/overview).
- [aci_communication_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/communication_policy) ([commPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/commPol/overview))
- [aci_application_epg](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/application_epg) ([fvAEPg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvAEPg/overview))
- [aci_vrf](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/vrf) ([fvCtx](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvCtx/overview))
- [aci_endpoint_tag_ip](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_tag_ip) ([fvEpIpTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpIpTag/overview))
Expand All @@ -73,7 +74,6 @@ data "aci_tag" "example_application_epg" {
- [aci_relation_to_consumed_out_of_band_contract](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_consumed_out_of_band_contract) ([mgmtRsOoBCons](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/mgmtRsOoBCons/overview))
- [aci_external_management_network_subnet](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/external_management_network_subnet) ([mgmtSubnet](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/mgmtSubnet/overview))
- [aci_l3out_node_sid_profile](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/l3out_node_sid_profile) ([mplsNodeSidP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/mplsNodeSidP/overview))
- [aci_netflow_exporter_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/netflow_exporter_policy) ([netflowExporterPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/netflowExporterPol/overview))
* `key` (key) - (string) The key used to uniquely identify this configuration object.

### Read-Only ###
Expand Down
4 changes: 3 additions & 1 deletion docs/resources/annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ All examples for the Annotation resource can be found in the [examples](https://

* `parent_dn` - (string) The distinguished name (DN) of the parent object, possible resources:
- Too many parent DNs to display, see model documentation for all possible parents of [tagAnnotation](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagAnnotation/overview).
- [aci_communication_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/communication_policy) ([commPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/commPol/overview))
- [aci_application_epg](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/application_epg) ([fvAEPg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvAEPg/overview))
- [aci_vrf](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/vrf) ([fvCtx](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvCtx/overview))
- [aci_endpoint_tag_ip](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_tag_ip) ([fvEpIpTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpIpTag/overview))
Expand All @@ -82,7 +83,6 @@ All examples for the Annotation resource can be found in the [examples](https://
- [aci_relation_to_consumed_out_of_band_contract](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_consumed_out_of_band_contract) ([mgmtRsOoBCons](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/mgmtRsOoBCons/overview))
- [aci_external_management_network_subnet](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/external_management_network_subnet) ([mgmtSubnet](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/mgmtSubnet/overview))
- [aci_l3out_node_sid_profile](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/l3out_node_sid_profile) ([mplsNodeSidP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/mplsNodeSidP/overview))
- [aci_netflow_exporter_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/netflow_exporter_policy) ([netflowExporterPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/netflowExporterPol/overview))
* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `value` (value) - (string) The value of the property.

Expand All @@ -107,3 +107,5 @@ import {
to = aci_annotation.example_tenant
}
```


Loading