Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mso_schema_site_contract_service_graph incorrectly imports redirect policy name (DCNE-204) #297

Closed
juchowan opened this issue Oct 9, 2024 · 1 comment · Fixed by #300
Labels
bug Something isn't working jira-sync Sync this issue to Jira

Comments

@juchowan
Copy link
Contributor

juchowan commented Oct 9, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.7.3

MSO version

  • V 4.2.3k

APIC version and APIC Platform for Site Level Resources

  • V 5.2/6.0

Affected Resource(s)

  • mso_schema_site_contract_service_graph

Terraform Configuration Files

terraform import mso_schema_site_contract_service_graph.service_graph_contract <schema id>/sites/<site id>/templates/UpgradeTemplate22/contracts/CONTRACT

Debug Output

resource "mso_schema_site_contract_service_graph" "service_graph_contract" {
    contract_name               = "CONTRACT"
    id                          = "<schema id>/sites/<site id>/templates/UpgradeTemplate22/contracts/CONTRACT"
    schema_id                   = "<schema id>"
    service_graph_name          = "SG"
    service_graph_schema_id     = "66f275b586669d8c4c40deb6"
    service_graph_template_name = "UpgradeTemplate22"
    site_id                     = "<site id>"
    template_name               = "UpgradeTemplate22"

    node_relationship {
        consumer_connector_cluster_interface      = "ONE_ARM"
        consumer_connector_redirect_policy        = "REDIRECT"  <====== name cut before "-" should be REDIRECT-POLICY
        consumer_connector_redirect_policy_tenant = <tenant>
        consumer_subnet_ips                       = []
        provider_connector_cluster_interface      = "ONE_ARM"
    }
}

Panic Output

Expected Behavior

should import the full name REDIRECT-POLICY but it is cutting the string after "-" character

Actual Behavior

is cutting the string after "-" character

Steps to Reproduce

  1. terraform import mso_schema_site_contract_service_graph.service_graph_contract <schema id>/sites/<site id>/templates/UpgradeTemplate22/contracts/CONTRACT

Important Factoids

References

  • #0000
@akinross akinross added bug Something isn't working jira-sync Sync this issue to Jira labels Oct 9, 2024
@github-actions github-actions bot changed the title mso_schema_site_contract_service_graph incorrectly imports redirect policy name mso_schema_site_contract_service_graph incorrectly imports redirect policy name (DCNE-204) Oct 9, 2024
@juchowan
Copy link
Contributor Author

juchowan commented Oct 9, 2024

Additionally due to #273 we are not able to configure redirect policy via Terraform, and we have to workaround this by setting redirect policy manually on NDO. Would be good to have a possibility to not import that single attribute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jira-sync Sync this issue to Jira
Projects
None yet
2 participants