Skip to content

Validate VPC switches before ADD/REMOVE operation in network_attach_groups #726

@skaszlik

Description

@skaszlik

Which role would this new feature be associated?

cisco.nac_dc_vxlan.validate

New feature description:

This rule ensures that any VPC switch referenced in overlay network attachments
(network_attach_groups) is also defined in topology.vpc_peers. This prevents the scenario where a user removes a VPC pairing but forgets to remove the network attachments, which would cause NDFC API failures with: "Switches [serial] have overlays. Please undeploy and try again"

Validation sequence matters:
    - When ADDING a VPC peer: First add to vpc_peers, then add to network_attach_groups
    - When REMOVING a VPC peer: First remove from network_attach_groups, then remove from vpc_peers

Would this be a new feature requiring a new role?

No

Which section of the data model is the new feature related?

vxlan.topology

Would this be a new feature requiring a new addition to the data model?

New or Affected Documentation for New Feature

Potential Ansible Task Config

Validation role

Ansible Version

Ansible Collection Versions

Cisco Nexus Dashboard Version

Cisco NX-OS Version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions