Skip to content

Conversation

@akinross
Copy link
Collaborator

fixes #1385

…tor, fex_profile. leaf_interface_profile, spine_interface_profile and spine_access_port_selector
…, 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
@akinross akinross requested a review from lhercot November 11, 2025 19:44
@akinross akinross requested a review from shrsr November 12, 2025 19:36
shrsr
shrsr previously approved these changes Nov 12, 2025
Copy link
Collaborator

@shrsr shrsr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

* `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.
* `to_card` (toCard) - (string) The end of the line card range for the Access Port Block object.
* `to_port` (toPort) - (string) The end of the port range for the Access Port Block object.
* `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)).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* `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)).
* `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)).

* `to_card` (toCard) - (string) The end of the line card range for the Access Port Block object.
* `to_port` (toPort) - (string) The end of the port range for the Access Port Block object.
* `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)).
* `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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* `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.
* `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.

* `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)) which can be configured using the [aci_leaf_access_bundle_policy_sub_group](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/leaf_access_bundle_policy_sub_group) resource.
#### Optional ####

* `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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* `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.
* `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.

- Default: `"1"`
* `to_port` (toPort) - (string) The end of the port range for the Access Port Block object.
- Default: `"1"`
* `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)) which can be configured using the [aci_leaf_access_bundle_policy_sub_group](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/leaf_access_bundle_policy_sub_group) resource.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* `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)) which can be configured using the [aci_leaf_access_bundle_policy_sub_group](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/leaf_access_bundle_policy_sub_group) resource.
* `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)) which can be configured using the [aci_leaf_access_bundle_policy_sub_group](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/leaf_access_bundle_policy_sub_group) resource.

properties = append(properties, getChildTarget(model, childKey, childValue, false))
} else if property.PropertyName == "tDn" {
return getChildTarget(model, child.PkgName, "target_dn_0", true)
return getChildTarget(model, child.PkgName, "", true)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this change intended? I don't see that it has changed any other test files so it looks good to me.
I noticed the tDn of infraRsAccBndlSubgrp is set to an empty string hence double checking to make sure this change was also intended.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this was intended and related to https://github.com/CiscoDevNet/terraform-provider-aci/pull/1400/files#diff-8ea0c6b1fb855545bb9a92dbc70b451672e8d463dd49b622e0ad1e22d25785acR2839-R2841, since target_dn_0 would never be accepted properly as a DN.

Copy link
Collaborator

@anvitha-jain anvitha-jain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@shrsr shrsr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@lhercot lhercot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@samiib samiib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate aci_access_port_block to terraform plugin framework (DCNE-556)

5 participants