Skip to content

Commit 2016396

Browse files
committed
[minor_change] Migrate resources and datasource aci_access_port_block, aci_access_port_selector, aci_fex_profile. aci_leaf_interface_profile, aci_spine_interface_profile and aci_spine_access_port_selector to terrform plugin framework
1 parent 5ad5ce6 commit 2016396

File tree

89 files changed

+20989
-221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+20989
-221
lines changed
Lines changed: 52 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
# Documentation generated by "gen/generator.go"; DO NOT EDIT.
3+
# In order to regenerate this file execute `go generate` from the repository root.
4+
# More details can be found in the [README](https://github.com/CiscoDevNet/terraform-provider-aci/blob/master/README.md).
25
subcategory: "Access Policies"
36
layout: "aci"
47
page_title: "ACI: aci_access_port_block"
@@ -7,44 +10,72 @@ description: |-
710
Data source for ACI Access Port Block
811
---
912

10-
# aci_access_port_block
13+
# aci_access_port_block #
1114

1215
Data source for ACI Access Port Block
1316

1417
## API Information ##
1518

16-
* `Class` - infraPortBlk
17-
* `Distinguished Name` - uni/infra/accportprof-{leaf_interface_profile_name}/hports-{leaf_interface_profile_dn}-typ-{type}/portblk-{name}
19+
* Class: [infraPortBlk](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/infraPortBlk/overview)
20+
21+
* Supported in ACI versions: 1.0(1e) and later.
22+
23+
* Distinguished Name Formats:
24+
- `uni/infra/accportprof-{name}/hports-{name}-typ-{type}/portblk-{name}`
25+
- `uni/infra/fexprof-{name}/hports-{name}-typ-{type}/portblk-{name}`
26+
- `uni/infra/spaccportprof-{name}/shports-{name}-typ-{type}/portblk-{name}`
1827

1928
## GUI Information ##
2029

21-
* `Location` - Fabric -> Access Policies -> Interfaces -> Profiles -> Create Leaf Interface Profile -> Interface Selectors -> Port Blocks
30+
* Location: `Fabric -> Access Policies -> Interfaces -> Leaf/Spine Interfaces -> Profiles -> Interface Selectors -> Port Blocks`
2231

23-
## Example Usage
32+
## Example Usage ##
2433

2534
```hcl
2635
27-
data "aci_access_port_block" "dev_port_blk" {
28-
access_port_selector_dn = aci_access_port_selector.example.id
29-
name = "foo_port_blk"
36+
data "aci_access_port_block" "example_access_port_selector" {
37+
parent_dn = aci_access_port_selector.example.id
38+
name = "test_name"
39+
}
40+
41+
data "aci_access_port_block" "example_spine_access_port_selector" {
42+
parent_dn = aci_spine_access_port_selector.example.id
43+
name = "test_name"
3044
}
3145
3246
```
3347

34-
## Argument Reference
48+
## Schema ##
3549

36-
- `access_port_selector_dn` - (Required) Distinguished name of the parent Access Port Selector or Spine Access Port Selector object.
37-
- `name` - (Required) Name of the Access Port Block object.
50+
### Required ###
3851

39-
## Attribute Reference
52+
* `parent_dn` - (string) The distinguished name (DN) of the parent object, possible resources:
53+
- [aci_access_port_selector](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/access_port_selector) ([infraHPortS](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/infraHPortS/overview))
54+
- [aci_spine_access_port_selector](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/spine_access_port_selector) ([infraSHPortS](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/infraSHPortS/overview))
55+
* `name` (name) - (string) The name of the Access Port Block object.
4056

41-
- `id` - Attribute id set to the Dn of the Access Port Block.
42-
- `description` - (Optional) Description of the Access Port Block object.
43-
- `annotation` - (Optional) Annotation of the Access Port Block object.
44-
- `from_card` - (Optional) The beginning (from-range) of the card range block for the leaf Access Port Block.
45-
- `from_port` - (Optional) The beginning (from-range) of the port range block for the leaf Access Port Block.
46-
- `name_alias` - (Optional) Name alias of the Access Port Block object.
47-
- `to_card` - (Optional) The end (to-range) of the card range block for the leaf Access Port Block.
48-
- `to_port` - (Optional) The end (to-range) of the port range block for the leaf Access Port Block.
57+
### Read-Only ###
4958

50-
- `relation_infra_rs_acc_bndl_subgrp` - (Optional) Relation to class infraAccBndlSubgrp. Cardinality - N_TO_ONE. Type - String.
59+
* `id` - (string) The distinguished name (DN) of the Access Port Block object.
60+
* `annotation` (annotation) - (string) The annotation of the Access Port Block object. This attribute is supported in ACI versions: 3.2(1l) and later.
61+
* `description` (descr) - (string) The description of the Access Port Block object. This attribute is supported in ACI versions: 1.0(4g) and later.
62+
* `from_card` (fromCard) - (string) The start of the line card range for the Access Port Block object.
63+
* `from_port` (fromPort) - (string) The start of the port range for the Access Port Block object.
64+
* `name_alias` (nameAlias) - (string) The name alias of the Access Port Block object. This attribute is supported in ACI versions: 2.2(1k) and later.
65+
* `to_card` (toCard) - (string) The end of the line card range for the Access Port Block object.
66+
* `to_port` (toPort) - (string) The end of the port range for the Access Port Block object.
67+
* `relation_to_pc_vpc_override_policy` - (map) A map of Relation To Pc Vpc Override Policy (ACI object [infraRsAccBndlSubgrp](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/infraRsAccBndlSubgrp/overview)) pointing to PC VPC Override Policy (ACI Object [infraAccBndlSubgrp](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/infraAccBndlSubgrp/overview)).
68+
* `annotation` (annotation) - (string) The annotation of the Relation To Pc Vpc Override Policy object. This attribute is supported in ACI versions: 3.2(1l) and later.
69+
* `target_dn` (tDn) - (string) The distinguished name (DN) of the target PC VPC Override Policy.
70+
* `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.
71+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
72+
* `value` (value) - (string) The value of the property.
73+
* `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.
74+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
75+
* `value` (value) - (string) The value of the property.
76+
* `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.
77+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
78+
* `value` (value) - (string) The value of the property.
79+
* `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.
80+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
81+
* `value` (value) - (string) The value of the property.
Lines changed: 63 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
# Documentation generated by "gen/generator.go"; DO NOT EDIT.
3+
# In order to regenerate this file execute `go generate` from the repository root.
4+
# More details can be found in the [README](https://github.com/CiscoDevNet/terraform-provider-aci/blob/master/README.md).
25
subcategory: "Access Policies"
36
layout: "aci"
47
page_title: "ACI: aci_access_port_selector"
@@ -7,29 +10,74 @@ description: |-
710
Data source for ACI Access Port Selector
811
---
912

10-
# aci_access_port_selector
13+
# aci_access_port_selector #
1114

1215
Data source for ACI Access Port Selector
1316

14-
## Example Usage
17+
## API Information ##
18+
19+
* Class: [infraHPortS](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/infraHPortS/overview)
20+
21+
* Supported in ACI versions: 1.0(1e) and later.
22+
23+
* Distinguished Name Formats:
24+
- `uni/infra/accportprof-{name}/hports-{name}-typ-{type}`
25+
- `uni/infra/fexprof-{name}/hports-{name}-typ-{type}`
26+
27+
## GUI Information ##
28+
29+
* Location: `Fabric -> Access Policies -> Interfaces -> Leaf Interfaces -> Profiles -> Interface Selectors`
30+
31+
## Example Usage ##
1532

1633
```hcl
17-
data "aci_access_port_selector" "dev_acc_port_select" {
18-
leaf_interface_profile_dn = aci_leaf_interface_profile.example.id
19-
name = "foo_acc_port_select"
20-
access_port_selector_type = "ALL"
34+
35+
data "aci_access_port_selector" "example_leaf_interface_profile" {
36+
parent_dn = aci_leaf_interface_profile.example.id
37+
name = "test_name"
38+
port_selector_type = "range"
39+
}
40+
41+
data "aci_access_port_selector" "example_fex_profile" {
42+
parent_dn = aci_fex_profile.example.id
43+
name = "test_name"
44+
port_selector_type = "range"
2145
}
46+
2247
```
2348

24-
## Argument Reference
49+
## Schema ##
50+
51+
### Required ###
2552

26-
- `leaf_interface_profile_dn` - (Required) Distinguished name of parent Leaf Interface Profile object.
27-
- `name` - (Required) Name of Object Access Port Selector.
28-
- `access_port_selector_type` - (Required) The host port selector type. Allowed values are "ALL" and "range". Default is "ALL".
53+
* `parent_dn` - (string) The distinguished name (DN) of the parent object, possible resources:
54+
- [aci_leaf_interface_profile](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/leaf_interface_profile) ([infraAccPortP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/infraAccPortP/overview))
55+
- [aci_fex_profile](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/fex_profile) ([infraFexP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/infraFexP/overview))
56+
* `name` (name) - (string) The name of the Access Port Selector object.
57+
* `port_selector_type` (type) - (string) The port selector type of the Access Port Selector object.
58+
- Valid Values: `ALL`, `range`.
2959

30-
## Attribute Reference
60+
### Read-Only ###
3161

32-
- `id` - Attribute id set to the Dn of the Access Port Selector.
33-
- `annotation` - (Optional) Annotation for object Access Port Selector.
34-
- `description` - (Optional) Description for object Access Port Selector.
35-
- `name_alias` - (Optional) Name alias for object Access Port Selector.
62+
* `id` - (string) The distinguished name (DN) of the Access Port Selector object.
63+
* `annotation` (annotation) - (string) The annotation of the Access Port Selector object. This attribute is supported in ACI versions: 3.2(1l) and later.
64+
* `description` (descr) - (string) The description of the Access Port Selector object.
65+
* `name_alias` (nameAlias) - (string) The name alias of the Access Port Selector object. This attribute is supported in ACI versions: 2.2(1k) and later.
66+
* `owner_key` (ownerKey) - (string) The key for enabling clients to own their data for entity correlation.
67+
* `owner_tag` (ownerTag) - (string) A tag for enabling clients to add their own data. For example, to indicate who created this object.
68+
* `relation_to_leaf_access_port_policy_group` - (map) A map of Relation To Leaf Access Port Policy Group (ACI object [infraRsAccBaseGrp](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/infraRsAccBaseGrp/overview)) pointing to Access Interface Policy Group (ACI Object [infraAccBaseGrp](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/infraAccBaseGrp/overview)).
69+
* `annotation` (annotation) - (string) The annotation of the Relation To Leaf Access Port Policy Group object. This attribute is supported in ACI versions: 3.2(1l) and later.
70+
* `fex_id` (fexId) - (string) The interface policy group FEX ID.
71+
* `target_dn` (tDn) - (string) Select or create an interface policy group to associate to the Access Port selector.
72+
* `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.
73+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
74+
* `value` (value) - (string) The value of the property.
75+
* `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.
76+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
77+
* `value` (value) - (string) The value of the property.
78+
* `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.
79+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
80+
* `value` (value) - (string) The value of the property.
81+
* `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.
82+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
83+
* `value` (value) - (string) The value of the property.

docs/data-sources/fex_profile.md

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
# Documentation generated by "gen/generator.go"; DO NOT EDIT.
3+
# In order to regenerate this file execute `go generate` from the repository root.
4+
# More details can be found in the [README](https://github.com/CiscoDevNet/terraform-provider-aci/blob/master/README.md).
25
subcategory: "Access Policies"
36
layout: "aci"
47
page_title: "ACI: aci_fex_profile"
@@ -7,27 +10,57 @@ description: |-
710
Data source for ACI FEX Profile
811
---
912

10-
# aci_fex_profile
13+
# aci_fex_profile #
1114

1215
Data source for ACI FEX Profile
1316

14-
## Example Usage
17+
## API Information ##
18+
19+
* Class: [infraFexP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/infraFexP/overview)
20+
21+
* Supported in ACI versions: 1.0(1e) and later.
22+
23+
* Distinguished Name Format: `uni/infra/fexprof-{name}`
24+
25+
## GUI Information ##
26+
27+
* Location: `Fabric -> Access Policies -> Interfaces -> Leaf Interfaces -> Profiles -> Fex Interfaces`
28+
29+
## Example Usage ##
1530

1631
```hcl
1732
1833
data "aci_fex_profile" "example" {
19-
name = "example"
34+
name = "test_name"
2035
}
2136
2237
```
2338

24-
## Argument Reference
39+
## Schema ##
40+
41+
### Required ###
42+
43+
* `name` (name) - (string) The name of the FEX Profile object.
44+
45+
### Optional ###
46+
47+
* `parent_dn` - (string) The distinguished name (DN) of the parent object, possible resources:
48+
- The distinguished name (DN) of classes below can be used but currently there is no available resource for it:
49+
- [infraInfra](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/infraInfra/overview)
2550

26-
- `name` - (Required) The fex profile name.
51+
- Default: `uni/infra`
2752

28-
## Attribute Reference
53+
### Read-Only ###
2954

30-
- `id` - Attribute id set to the Dn of the FEX Profile.
31-
- `annotation` - (Optional) Specifies the annotation of the policy definition.
32-
- `name_alias` - (Optional) Specifies the description of the policy definition.
33-
- `name_alias` - (Optional) Specifies the alias name of the policy definition.
55+
* `id` - (string) The distinguished name (DN) of the FEX Profile object.
56+
* `annotation` (annotation) - (string) The annotation of the FEX Profile object. This attribute is supported in ACI versions: 3.2(1l) and later.
57+
* `description` (descr) - (string) The description of the FEX Profile object.
58+
* `name_alias` (nameAlias) - (string) The name alias of the FEX Profile object. This attribute is supported in ACI versions: 2.2(1k) and later.
59+
* `owner_key` (ownerKey) - (string) The key for enabling clients to own their data for entity correlation.
60+
* `owner_tag` (ownerTag) - (string) A tag for enabling clients to add their own data. For example, to indicate who created this object.
61+
* `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.
62+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
63+
* `value` (value) - (string) The value of the property.
64+
* `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.
65+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
66+
* `value` (value) - (string) The value of the property.
Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
# Documentation generated by "gen/generator.go"; DO NOT EDIT.
3+
# In order to regenerate this file execute `go generate` from the repository root.
4+
# More details can be found in the [README](https://github.com/CiscoDevNet/terraform-provider-aci/blob/master/README.md).
25
subcategory: "Access Policies"
36
layout: "aci"
47
page_title: "ACI: aci_leaf_interface_profile"
@@ -8,23 +11,56 @@ description: |-
811
---
912

1013
# aci_leaf_interface_profile #
14+
1115
Data source for ACI Leaf Interface Profile
1216

17+
## API Information ##
18+
19+
* Class: [infraAccPortP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/infraAccPortP/overview)
20+
21+
* Supported in ACI versions: 1.0(1e) and later.
22+
23+
* Distinguished Name Format: `uni/infra/accportprof-{name}`
24+
25+
## GUI Information ##
26+
27+
* Location: `Fabric -> Access Policies -> Interfaces -> Leaf Interfaces -> Profiles -> Interfaces`
28+
1329
## Example Usage ##
1430

1531
```hcl
16-
data "aci_leaf_interface_profile" "dev_leaf_int_prof" {
17-
name = "foo_leaf_int_prof"
32+
33+
data "aci_leaf_interface_profile" "example" {
34+
name = "test_name"
1835
}
36+
1937
```
20-
## Argument Reference ##
21-
* `name` - (Required) Name of Object Leaf Interface Profile.
2238

39+
## Schema ##
40+
41+
### Required ###
42+
43+
* `name` (name) - (string) The name of the Leaf Interface Profile object.
44+
45+
### Optional ###
46+
47+
* `parent_dn` - (string) The distinguished name (DN) of the parent object, possible resources:
48+
- The distinguished name (DN) of classes below can be used but currently there is no available resource for it:
49+
- [infraInfra](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/infraInfra/overview)
2350

51+
- Default: `uni/infra`
2452

25-
## Attribute Reference
53+
### Read-Only ###
2654

27-
* `id` - Attribute id set to the Dn of the Leaf Interface Profile.
28-
* `description` - (Optional) Description for object Leaf Interface Profile.
29-
* `annotation` - (Optional) Annotation for object Leaf Interface Profile.
30-
* `name_alias` - (Optional) Name alias for object Leaf Interface Profile.
55+
* `id` - (string) The distinguished name (DN) of the Leaf Interface Profile object.
56+
* `annotation` (annotation) - (string) The annotation of the Leaf Interface Profile object. This attribute is supported in ACI versions: 3.2(1l) and later.
57+
* `description` (descr) - (string) The description of the Leaf Interface Profile object.
58+
* `name_alias` (nameAlias) - (string) The name alias of the Leaf Interface Profile object. This attribute is supported in ACI versions: 2.2(1k) and later.
59+
* `owner_key` (ownerKey) - (string) The key for enabling clients to own their data for entity correlation.
60+
* `owner_tag` (ownerTag) - (string) A tag for enabling clients to add their own data. For example, to indicate who created this object.
61+
* `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.
62+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
63+
* `value` (value) - (string) The value of the property.
64+
* `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.
65+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
66+
* `value` (value) - (string) The value of the property.

0 commit comments

Comments
 (0)