Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue(s)
Resolves #257
Proposed Changes
Add two new Ansible modules for managing Nexus Dashboard multi-tenancy resources using the new pydantic-based architecture:
nd_infra_tenant— Manage tenants on Cisco Nexus Dashboard/api/v1/infra/tenants)/api/v1/manage/tenantFabricAssociations)merged,replaced,overridden, anddeletedstatesnd_infra_tenant_domain— Manage tenant domains on Cisco Nexus Dashboard/api/v1/infra/tenantDomains)merged,replaced,overridden, anddeletedstatesNew files:
plugins/modules/nd_infra_tenant.pyplugins/modules/nd_infra_tenant_domain.pyplugins/module_utils/models/infra_tenant/infra_tenant.pyplugins/module_utils/models/infra_tenant_domain/infra_tenant_domain.pyplugins/module_utils/orchestrators/infra_tenant.pyplugins/module_utils/orchestrators/infra_tenant_domain.pyplugins/module_utils/endpoints/v1/infra/tenants.pyplugins/module_utils/endpoints/v1/infra/tenant_domains.pyplugins/module_utils/endpoints/v1/manage/tenant_fabric_associations.pytests/unit/module_utils/endpoints/test_endpoints_api_v1_infra_tenants.pytests/unit/module_utils/endpoints/test_endpoints_api_v1_infra_tenant_domains.pytests/unit/module_utils/endpoints/test_endpoints_api_v1_manage_tenant_fabric_associations.pytests/integration/targets/nd_infra_tenant/tasks/main.ymltests/integration/targets/nd_infra_tenant_domain/tasks/main.ymlTest Notes
pytest tests/unit/ -v), including 38 new endpoint tests covering infra tenants (16), infra tenant domains (16), and manage tenant fabric associations (6)merged,replaced,overridden,deleted) with check mode, normal mode, and idempotency assertions for both modulesnd_infra_tenantintegration tests include fabric association scenarios: create with associations, update associations, replace with associations, override with associations, and delete with association cleanupCisco Nexus Dashboard Version
4.2.1
Related ND API Resource Category
Checklist