Skip to content

[Staged configuration audit] vPC Access interface module #482

Description

@sivakasi-cisco

Parent Scope

Sub-issue of #453: staged configuration addition and removal audit.

This issue must evaluate both staged additions and staged removals for replaced, overridden, and deleted wherever those states are supported. An unsupported state must be recorded as Not Applicable with a technical reason; it must not be silently skipped.

Applicability Assessment - Required First

Before implementation, first evaluate whether staged configuration addition and removal are technically applicable to this module and its Nexus Dashboard endpoints.

  • Identify whether the operation produces deployable switch intent, controller-only inventory or topology state, or an automatically deployed action.
  • Identify whether ND provides a separate save or recalculation boundary and a separate deploy boundary.
  • Record the applicability result as Applicable, Partially Applicable, or Not Applicable, with technical evidence.
  • If staging is not applicable, document the endpoint limitation and obtain agreement in parent issue Support staged removal for all modules  #453; do not force unsupported behavior into the module.

Module Scope

  • nd_interface_vpc_access

Module-Specific Problem Statement

vPC Access interface intent affects paired switch ports and access policy. Determine whether changes and removals can be staged consistently across both peers without deployment.

The audit must establish the current behavior for additions, updates, removals, detachments, and deletions that this module supports. Pass or fail must be based on observed controller state, switch synchronization state, and API evidence rather than only the Ansible input flags.

Required State Validation

State Required validation for this module
replaced Validate staged additions and updates, plus any setting removal or reset caused by replacement.
overridden Validate staged additions and removal or detachment of existing resources omitted from the desired configuration.
deleted Validate whether the module deletes or detaches the selected resource, creates pending intent, performs dependency cleanup, or deploys automatically.

For a state the module does not support, record Not Applicable, the technical reason, and any endpoint or architecture limitation.

Save and Deploy Validation

  • If save is supported, test save=false and deploy=false: no save or deploy action should run, and associated switches should remain inSync. Record whether controller data still changes.
  • If save is supported, test save=true and deploy=false: intent should be saved without deployment, the first expected switch state is pending, and no deploy endpoint should run.
  • Preserve and validate the existing save=true and deploy=true behavior.
  • If save is not supported, verify whether controller intent can be added or removed while deployment remains disabled.
  • Test a later explicit deployment when staging succeeds.

Module-Specific Scenarios

  • Stage creation and replacement and confirm both vPC peers are targeted.
  • Remove policy or interface intent through overridden and deleted.
  • Confirm no automatic deployment or asymmetric peer state.
  • Verify later explicit deployment and idempotency on both peers.

Evidence to Record

  • Branch, commit, or PR tested.
  • ND version, topology, and resource associations used.
  • Results for replaced, overridden, and deleted, where supported.
  • Explicit save and deploy values, where supported.
  • Controller state before and after each operation.
  • Immediate switch state: inSync, pending, or outOfSync.
  • Switch state after a compliance or configuration-difference evaluation.
  • API trace showing whether save, deploy, detach, undeploy, or delete endpoints ran.
  • Result of a later explicit deployment.
  • Idempotency result from repeating the staged operation.
  • Classification: Supported, Partially Supported, Unsupported, or Not Applicable.
  • Required rework, effort estimate, dependencies, and initial-release impact.

Completion Criteria

  • Applicability is explicitly decided before implementation.
  • Both staged addition and staged removal are tested.
  • replaced, overridden, and deleted are tested where supported, with technical reasons for every exception.
  • No deployment occurs while deployment is disabled.
  • Current behavior is demonstrated with controller, switch-state, and API evidence.
  • A later explicit deployment and an idempotent rerun are tested where staging succeeds.
  • Required rework and release impact are recorded in parent issue Support staged removal for all modules  #453.

References

Metadata

Metadata

Assignees

Labels

2.0.0Release 2.0.0nac01NaC ND release 0.0.1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions