Skip to content

Commit 60215fb

Browse files
committed
[ignore] Add relation attributes to macsec interface policy
1 parent c9e97d7 commit 60215fb

File tree

11 files changed

+3038
-20
lines changed

11 files changed

+3038
-20
lines changed

docs/data-sources/macsec_interface_policy.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,24 @@ data "aci_macsec_interface_policy" "example" {
5151
* `name_alias` (nameAlias) - (string) The name alias of the MACsec Interface Policy object.
5252
* `owner_key` (ownerKey) - (string) The key for enabling clients to own their data for entity correlation.
5353
* `owner_tag` (ownerTag) - (string) A tag for enabling clients to add their own data. For example, to indicate who created this object.
54+
* `relation_to_macsec_key_chain` - (map) A map of Relation To MACsec Key Chain (ACI object [macsecRsToKeyChainPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/macsecRsToKeyChainPol/overview)) pointing to MACsec Key Chain (ACI Object [macsecKeyChainPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/macsecKeyChainPol/overview)).
55+
* `annotation` (annotation) - (string) The annotation of the Relation To MACsec Key Chain object. This attribute is supported in ACI versions: 3.2(1l) and later.
56+
* `target_dn` (tDn) - (string) The distinguished name of the target.
57+
* `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.
58+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
59+
* `value` (value) - (string) The value of the property.
60+
* `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.
61+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
62+
* `value` (value) - (string) The value of the property.
63+
* `relation_to_macsec_parameters` - (map) A map of Relation To MACsec Parameters (ACI object [macsecRsToParamPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/macsecRsToParamPol/overview)) pointing to MACsec Parameters (ACI Object [macsecParamPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/macsecParamPol/overview)).
64+
* `annotation` (annotation) - (string) The annotation of the Relation To MACsec Parameters object. This attribute is supported in ACI versions: 3.2(1l) and later.
65+
* `target_dn` (tDn) - (string) The distinguished name of the target.
66+
* `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.
67+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
68+
* `value` (value) - (string) The value of the property.
69+
* `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.
70+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
71+
* `value` (value) - (string) The value of the property.
5472
* `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.
5573
* `key` (key) - (string) The key used to uniquely identify this configuration object.
5674
* `value` (value) - (string) The value of the property.

docs/resources/macsec_interface_policy.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,38 @@ resource "aci_macsec_interface_policy" "full_example" {
5353
name_alias = "name_alias_1"
5454
owner_key = "owner_key_1"
5555
owner_tag = "owner_tag_1"
56+
relation_to_macsec_key_chain = {
57+
annotation = "annotation_1"
58+
target_dn = aci_macsec_key_chain.test_macsec_key_chain_0.id
59+
annotations = [
60+
{
61+
key = "key_0"
62+
value = "value_1"
63+
}
64+
]
65+
tags = [
66+
{
67+
key = "key_0"
68+
value = "value_1"
69+
}
70+
]
71+
}
72+
relation_to_macsec_parameters = {
73+
annotation = "annotation_1"
74+
target_dn = aci_macsec_parameters.test_macsec_parameters_0.id
75+
annotations = [
76+
{
77+
key = "key_0"
78+
value = "value_1"
79+
}
80+
]
81+
tags = [
82+
{
83+
key = "key_0"
84+
value = "value_1"
85+
}
86+
]
87+
}
5688
annotations = [
5789
{
5890
key = "key_0"
@@ -92,6 +124,38 @@ All examples for the MACsec Interface Policy resource can be found in the [examp
92124
* `name_alias` (nameAlias) - (string) The name alias of the MACsec Interface Policy object.
93125
* `owner_key` (ownerKey) - (string) The key for enabling clients to own their data for entity correlation.
94126
* `owner_tag` (ownerTag) - (string) A tag for enabling clients to add their own data. For example, to indicate who created this object.
127+
* `relation_to_macsec_key_chain` - (map) A map of Relation To MACsec Key Chain (ACI object [macsecRsToKeyChainPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/macsecRsToKeyChainPol/overview)) pointing to MACsec Key Chain (ACI Object [macsecKeyChainPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/macsecKeyChainPol/overview)) which can be configured using the [aci_macsec_key_chain](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/macsec_key_chain) resource.
128+
#### Optional ####
129+
130+
* `annotation` (annotation) - (string) The annotation of the Relation To MACsec Key Chain object. This attribute is supported in ACI versions: 3.2(1l) and later.
131+
- Default: `"orchestrator:terraform"`
132+
* `target_dn` (tDn) - (string) The distinguished name of the target.
133+
* `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.
134+
#### Required ####
135+
136+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
137+
* `value` (value) - (string) The value of the property.
138+
* `tags` - (list) A list of Tags (ACI object [tagTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagTag/overview)). Tags can also be configured using a separate [aci_tag](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/tag) resource. This attribute is supported in ACI versions: 3.2(1l) and later.
139+
#### Required ####
140+
141+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
142+
* `value` (value) - (string) The value of the property.
143+
* `relation_to_macsec_parameters` - (map) A map of Relation To MACsec Parameters (ACI object [macsecRsToParamPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/macsecRsToParamPol/overview)) pointing to MACsec Parameters (ACI Object [macsecParamPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/macsecParamPol/overview)) which can be configured using the [aci_macsec_parameters](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/macsec_parameters) resource.
144+
#### Optional ####
145+
146+
* `annotation` (annotation) - (string) The annotation of the Relation To MACsec Parameters object. This attribute is supported in ACI versions: 3.2(1l) and later.
147+
- Default: `"orchestrator:terraform"`
148+
* `target_dn` (tDn) - (string) The distinguished name of the target.
149+
* `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.
150+
#### Required ####
151+
152+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
153+
* `value` (value) - (string) The value of the property.
154+
* `tags` - (list) A list of Tags (ACI object [tagTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagTag/overview)). Tags can also be configured using a separate [aci_tag](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/tag) resource. This attribute is supported in ACI versions: 3.2(1l) and later.
155+
#### Required ####
156+
157+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
158+
* `value` (value) - (string) The value of the property.
95159
* `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.
96160
#### Required ####
97161

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,38 @@ resource "aci_macsec_interface_policy" "full_example" {
77
name_alias = "name_alias_1"
88
owner_key = "owner_key_1"
99
owner_tag = "owner_tag_1"
10+
relation_to_macsec_key_chain = {
11+
annotation = "annotation_1"
12+
target_dn = aci_macsec_key_chain.test_macsec_key_chain_0.id
13+
annotations = [
14+
{
15+
key = "key_0"
16+
value = "value_1"
17+
}
18+
]
19+
tags = [
20+
{
21+
key = "key_0"
22+
value = "value_1"
23+
}
24+
]
25+
}
26+
relation_to_macsec_parameters = {
27+
annotation = "annotation_1"
28+
target_dn = aci_macsec_parameters.test_macsec_parameters_0.id
29+
annotations = [
30+
{
31+
key = "key_0"
32+
value = "value_1"
33+
}
34+
]
35+
tags = [
36+
{
37+
key = "key_0"
38+
value = "value_1"
39+
}
40+
]
41+
}
1042
annotations = [
1143
{
1244
key = "key_0"

gen/definitions/classes.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,6 +1276,16 @@ macsecIfPol:
12761276
- "polUni"
12771277
rn_prepend: "infra"
12781278

1279+
macsecRsToKeyChainPol:
1280+
resource_name: "relation_to_macsec_key_chain"
1281+
relationship_classes:
1282+
- "macsecKeyChainPol"
1283+
1284+
macsecRsToParamPol:
1285+
resource_name: "relation_to_macsec_parameters"
1286+
relationship_classes:
1287+
- "macsecParamPol"
1288+
12791289
macsecParamPol:
12801290
resource_name: "macsec_parameters"
12811291
sub_category: "Access Policies"

gen/definitions/properties.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2900,6 +2900,27 @@ macsecIfPol:
29002900
overwrites:
29012901
admin_st: admin_state
29022902

2903+
macsecRsToKeyChainPol:
2904+
targets:
2905+
- class_name: "macsecKeyChainPol"
2906+
target_dn: "uni/infra/macsecpcont/keychainp-macsec_key_chain_0"
2907+
relation_resource_name: "macsec_key_chain"
2908+
properties:
2909+
name: "macsec_key_chain_0"
2910+
- class_name: "macsecKeyChainPol"
2911+
target_dn: "uni/infra/macsecpcont/keychainp-macsec_key_chain_1"
2912+
relation_resource_name: "macsec_key_chain"
2913+
properties:
2914+
name: "macsec_key_chain_1"
2915+
2916+
macsecRsToParamPol:
2917+
targets:
2918+
- class_name: "macsecParamPol"
2919+
target_dn: "uni/infra/macsecpcont/paramp-macsec_parameters_0"
2920+
relation_resource_name: "macsec_parameters"
2921+
properties:
2922+
name: "macsec_parameters_0"
2923+
29032924
macsecParamPol:
29042925
ignores:
29052926
- "sakExpiryTime"
@@ -2945,4 +2966,4 @@ macsecKeyPol:
29452966
key_name: "aa"
29462967
start_time: "2025-11-28T03:12:09.452-08:00"
29472968
datasource_required:
2948-
key_name: "aa"
2969+
key_name: "aa"

0 commit comments

Comments
 (0)