Skip to content

Commit 75d5474

Browse files
shrsrlhercot
authored andcommitted
[ignore] Changed id_attribute to fabric_id in the aci_fabric_external_connection_policy
1 parent cba2e01 commit 75d5474

File tree

12 files changed

+71
-65
lines changed

12 files changed

+71
-65
lines changed

docs/data-sources/fabric_external_connection_policy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Data source for ACI Fabric External Connection Policy
3131
```hcl
3232
3333
data "aci_fabric_external_connection_policy" "example_tenant" {
34-
parent_dn = aci_tenant.example.id
35-
id_attribute = "1"
34+
parent_dn = aci_tenant.example.id
35+
fabric_id = "1"
3636
}
3737
3838
```
@@ -41,7 +41,7 @@ data "aci_fabric_external_connection_policy" "example_tenant" {
4141

4242
### Required ###
4343

44-
* `id_attribute` (id) - (string) The identifier of the Fabric External Connection Policy object.
44+
* `fabric_id` (id) - (string) A unique identifier of the fabric, associated with the Fabric External Connection Policy object.
4545

4646
### Optional ###
4747

docs/resources/fabric_external_connection_policy.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ The configuration snippet below creates a Fabric External Connection Policy with
3535
```hcl
3636
3737
resource "aci_fabric_external_connection_policy" "example_tenant" {
38-
parent_dn = aci_tenant.example.id
39-
id_attribute = "1"
38+
parent_dn = aci_tenant.example.id
39+
fabric_id = "1"
4040
}
4141
4242
```
@@ -47,16 +47,16 @@ The configuration snippet below shows all possible attributes of the Fabric Exte
4747
```hcl
4848
4949
resource "aci_fabric_external_connection_policy" "full_example_tenant" {
50-
parent_dn = aci_tenant.example.id
51-
annotation = "annotation"
52-
description = "description_1"
53-
id_attribute = "1"
54-
name = "name_1"
55-
name_alias = "name_alias_1"
56-
owner_key = "owner_key_1"
57-
owner_tag = "owner_tag_1"
58-
community = "extended:as2-nn4:5:16"
59-
site_id = "0"
50+
parent_dn = aci_tenant.example.id
51+
annotation = "annotation"
52+
description = "description_1"
53+
fabric_id = "1"
54+
name = "name_1"
55+
name_alias = "name_alias_1"
56+
owner_key = "owner_key_1"
57+
owner_tag = "owner_tag_1"
58+
community = "extended:as2-nn4:5:16"
59+
site_id = "0"
6060
peering_profile = {
6161
annotation = "annotation_1"
6262
description = "description_1"
@@ -101,7 +101,7 @@ All examples for the Fabric External Connection Policy resource can be found in
101101

102102
### Required ###
103103

104-
* `id_attribute` (id) - (string) The identifier of the Fabric External Connection Policy object.
104+
* `fabric_id` (id) - (string) A unique identifier of the fabric, associated with the Fabric External Connection Policy object.
105105

106106
### Read-Only ###
107107

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
data "aci_fabric_external_connection_policy" "example_tenant" {
3-
parent_dn = aci_tenant.example.id
4-
id_attribute = "1"
3+
parent_dn = aci_tenant.example.id
4+
fabric_id = "1"
55
}

examples/resources/aci_fabric_external_connection_policy/resource-all-attributes.tf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

22
resource "aci_fabric_external_connection_policy" "full_example_tenant" {
3-
parent_dn = aci_tenant.example.id
4-
annotation = "annotation"
5-
description = "description_1"
6-
id_attribute = "1"
7-
name = "name_1"
8-
name_alias = "name_alias_1"
9-
owner_key = "owner_key_1"
10-
owner_tag = "owner_tag_1"
11-
community = "extended:as2-nn4:5:16"
12-
site_id = "0"
3+
parent_dn = aci_tenant.example.id
4+
annotation = "annotation"
5+
description = "description_1"
6+
fabric_id = "1"
7+
name = "name_1"
8+
name_alias = "name_alias_1"
9+
owner_key = "owner_key_1"
10+
owner_tag = "owner_tag_1"
11+
community = "extended:as2-nn4:5:16"
12+
site_id = "0"
1313
peering_profile = {
1414
annotation = "annotation_1"
1515
description = "description_1"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
resource "aci_fabric_external_connection_policy" "example_tenant" {
3-
parent_dn = aci_tenant.example.id
4-
id_attribute = "1"
3+
parent_dn = aci_tenant.example.id
4+
fabric_id = "1"
55
}

gen/definitions/properties.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2530,11 +2530,13 @@ l3extRsInstPToProfile:
25302530

25312531
fvFabricExtConnP:
25322532
documentation:
2533+
id: "A unique identifier of the fabric, associated with the Fabric External Connection Policy object"
25332534
rt: "A global route target used to define communities for route leaking or redistribution in multi-pod or multi-site deployments to manage routing policies across fabrics."
25342535
siteId: "A unique identifier for the site associated with the Fabric External Connection Policy object."
25352536
default_values:
25362537
parent_dn: "uni/tn-infra"
25372538
overwrites:
2539+
id: "fabric_id"
25382540
rt: "community"
25392541
resource_required:
25402542
- "rt"
@@ -2544,12 +2546,12 @@ fvFabricExtConnP:
25442546
all:
25452547
community: "extended:as2-nn4:5:16"
25462548
resource_required:
2547-
id_attribute: "1"
2549+
fabric_id: "1"
25482550
community: "extended:as2-nn4:5:16"
25492551
datasource_non_existing:
2550-
id_attribute: "2"
2552+
fabric_id: "2"
25512553
datasource_required:
2552-
id_attribute: "1"
2554+
fabric_id: "1"
25532555

25542556
fvPeeringP:
25552557
documentation:

gen/templates/testvars.yaml.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,9 @@ child_targets:
366366
{{- end }}
367367
{{- end}}
368368

369+
test_type: {{ .TestType }}
370+
{{- end }}
371+
{{- if and .ContainedBy (not .MultiParentFormats) (.ContainsDefaultParentDn) (.DocumentationExamples)}}
369372
test_type: {{ .TestType }}
370373
{{- end }}
371374
class_version: {{.ClassVersion}}

gen/testvars/fvFabricExtConnP.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ default:
1414
site_id: "0"
1515

1616
datasource_non_existing:
17-
id_attribute: "2"
17+
fabric_id: "2"
1818

1919
datasource_required:
20-
id_attribute: "1"
20+
fabric_id: "1"
2121

2222
resource_required:
23-
id_attribute: "1"
23+
fabric_id: "1"
2424
community: "extended:as2-nn4:5:16"
2525

2626
all:
@@ -74,4 +74,5 @@ children:
7474
- key: "key_1"
7575
value: "test_value"
7676

77+
test_type: both
7778
class_version: 2.0(1m)-

internal/provider/data_source_aci_fabric_external_connection_policy.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/data_source_aci_fabric_external_connection_policy_test.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)