Skip to content

Commit

Permalink
[ignore] added required attributes pc_tag and vrf_pc_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahammughal committed Jul 10, 2024
1 parent d2a10fa commit d46c36f
Show file tree
Hide file tree
Showing 15 changed files with 124 additions and 101 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/remote_site_id_mappings.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Data source for Remote Site Id Mappings
data "aci_remote_site_id_mappings" "example_associated_site" {
parent_dn = aci_associated_site.example.id
site_id = "0"
site_id = "100"
}
```
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/associated_site.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ resource "aci_associated_site" "full_example_application_epg" {
name_alias = "name_alias"
owner_key = "owner_key"
owner_tag = "owner_tag"
site_id = "0"
site_id = "100"
annotations = [
{
key = "key_0"
Expand All @@ -85,7 +85,7 @@ resource "aci_associated_site" "full_example_bridge_domain" {
name_alias = "name_alias"
owner_key = "owner_key"
owner_tag = "owner_tag"
site_id = "0"
site_id = "100"
annotations = [
{
key = "key_0"
Expand Down
16 changes: 9 additions & 7 deletions docs/resources/remote_site_id_mappings.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ The configuration snippet below creates a Remote Site Id Mappings with only requ
```hcl
resource "aci_remote_site_id_mappings" "example_associated_site" {
parent_dn = aci_associated_site.example.id
site_id = "0"
parent_dn = aci_associated_site.example.id
remote_vrf_pc_tag = "2818057"
remote_pc_tag = "16386"
site_id = "100"
}
```
Expand All @@ -60,9 +62,9 @@ resource "aci_remote_site_id_mappings" "full_example_associated_site" {
name_alias = "name_alias"
owner_key = "owner_key"
owner_tag = "owner_tag"
remote_vrf_pc_tag = "remote_vrf_pc_tag"
remote_pc_tag = "remote_pc_tag"
site_id = "0"
remote_vrf_pc_tag = "2818057"
remote_pc_tag = "16386"
site_id = "100"
annotations = [
{
key = "key_0"
Expand All @@ -87,6 +89,8 @@ All examples for the Remote Site Id Mappings resource can be found in the [examp

* `parent_dn` - (string) The distinguished name (DN) of the parent object, possible resources:
- [aci_associated_site](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/associated_site) ([fvSiteAssociated](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvSiteAssociated/overview))
* `remote_vrf_pc_tag` (remoteCtxPcTag) - (string) Remote context's *pcTag*, mapping required for default route case.
* `remote_pc_tag` (remotePcTag) - (string) Remote Class ID.
* `site_id` (siteId) - (string) A number between 0 and 1000 to identify the remote site being associated with the primary site.

### Read-Only ###
Expand All @@ -102,8 +106,6 @@ All examples for the Remote Site Id Mappings resource can be found in the [examp
* `name_alias` (nameAlias) - (string) The name alias of the Remote Site Id Mappings 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.
* `remote_vrf_pc_tag` (remoteCtxPcTag) - (string) Remote context's *pcTag*, mapping required for default route case.
* `remote_pc_tag` (remotePcTag) - (string) Remote Class ID.

* `annotations` - (list) A list of Annotations (ACI object [tagAnnotation](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagAnnotation/overview)). Annotations can also be configured using a separate [aci_annotation](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/annotation) resource. This attribute is supported in ACI versions: 3.2(1l) and later.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

data "aci_remote_site_id_mappings" "example_associated_site" {
parent_dn = aci_associated_site.example.id
site_id = "0"
site_id = "100"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "aci_associated_site" "full_example_application_epg" {
name_alias = "name_alias"
owner_key = "owner_key"
owner_tag = "owner_tag"
site_id = "0"
site_id = "100"
annotations = [
{
key = "key_0"
Expand All @@ -30,7 +30,7 @@ resource "aci_associated_site" "full_example_bridge_domain" {
name_alias = "name_alias"
owner_key = "owner_key"
owner_tag = "owner_tag"
site_id = "0"
site_id = "100"
annotations = [
{
key = "key_0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ resource "aci_remote_site_id_mappings" "full_example_associated_site" {
name_alias = "name_alias"
owner_key = "owner_key"
owner_tag = "owner_tag"
remote_vrf_pc_tag = "remote_vrf_pc_tag"
remote_pc_tag = "remote_pc_tag"
site_id = "0"
remote_vrf_pc_tag = "2818057"
remote_pc_tag = "16386"
site_id = "100"
annotations = [
{
key = "key_0"
Expand Down
6 changes: 4 additions & 2 deletions examples/resources/aci_remote_site_id_mappings/resource.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

resource "aci_remote_site_id_mappings" "example_associated_site" {
parent_dn = aci_associated_site.example.id
site_id = "0"
parent_dn = aci_associated_site.example.id
remote_vrf_pc_tag = "2818057"
remote_pc_tag = "16386"
site_id = "100"
}
35 changes: 21 additions & 14 deletions gen/definitions/properties.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@ fvSiteAssociated:
- "site_id"
test_values:
all:
site_id: "0"
site_id: "100"
default:
site_id: "0"
site_id: "100"
resource_required:
site_id: "0"
site_id: "100"
datasource_required:
- "site_id"
parents:
Expand All @@ -247,21 +247,28 @@ fvRemoteId:
remote_ctx_pc_tag: "remote_vrf_pc_tag"
documentation:
siteId: "A number between 0 and 1000 to identify the remote site being associated with the primary site"
default_values:
siteId: "100"
remote_ctx_pc_tag: "2818057"
remote_pc_tag: "16386"
resource_required:
- "remoteCtxPcTag"
- "remotePcTag"
test_values:
all:
site_id: "0"
site_id: "100"
remote_vrf_pc_tag: "2818057"
remote_pc_tag: "16386"
default:
site_id: "0"
site_id: "100"
remote_vrf_pc_tag: "2818057"
remote_pc_tag: "16386"
resource_required:
site_id: "0"
datasource_required:
site_id: "0"
resource_required:
- "site_id"
datasource_required:
- "site_id"
default_values:
siteId: "0"
site_id: "100"
remote_vrf_pc_tag: "2818057"
remote_pc_tag: "16386"
datasource_non_existing:
site_id: "102"
parents:
- class_name: "fvSiteAssociated"
parent_dependency: "fvCtx"
Expand Down
20 changes: 11 additions & 9 deletions gen/testvars/fvRemoteId.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,20 @@ default:
name_alias: ""
owner_key: ""
owner_tag: ""
remote_vrf_pc_tag: ""
remote_pc_tag: ""
site_id: "0"
remote_vrf_pc_tag: "2818057"
remote_pc_tag: "16386"
site_id: "100"

datasource_non_existing:
site_id: "non_existing_site_id"
site_id: "102"

datasource_required:
site_id: "0"
site_id: "test_site_id"

resource_required:
site_id: "0"
remote_vrf_pc_tag: "2818057"
remote_pc_tag: "16386"
site_id: "100"

all:
annotation: "annotation"
Expand All @@ -29,9 +31,9 @@ all:
name_alias: "name_alias"
owner_key: "owner_key"
owner_tag: "owner_tag"
remote_vrf_pc_tag: "remote_vrf_pc_tag"
remote_pc_tag: "remote_pc_tag"
site_id: "0"
remote_vrf_pc_tag: "2818057"
remote_pc_tag: "16386"
site_id: "100"

children:
annotations:
Expand Down
4 changes: 2 additions & 2 deletions gen/testvars/fvSiteAssociated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ default:
name_alias: ""
owner_key: ""
owner_tag: ""
site_id: "0"
site_id: "100"


all:
Expand All @@ -19,7 +19,7 @@ all:
name_alias: "name_alias"
owner_key: "owner_key"
owner_tag: "owner_tag"
site_id: "0"
site_id: "100"

children:
annotations:
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/data_source_aci_associated_site_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d46c36f

Please sign in to comment.