Removing config is easy; removing it safely in a PCI scope is not. Here's the three-plan approach I use for every decommission.
A cardholder data environment (CDE) was being retired, and its dedicated VRF had to be removed from two switch pairs in two data centers. Deleting a VRF takes one command. Proving to change management and to auditors that you removed everything and broke nothing takes a plan.

1. Discovery: find every reference
A VRF touches far more than vrf instance:
- SVIs / routed interfaces assigned to the VRF
- VLANs and VXLAN VNI mappings
- BGP VRF stanzas, route-targets and route leaking to other VRFs
- Prefix-lists and route-maps used only by that VRF
- Static routes, ACLs, DHCP helpers, SNMP/syslog sources

Before removing anything, confirm the VRF is truly idle: no learned routes, no ARP, no MAC entries, no traffic counters moving.
2. Change plan
- Save
show running-configand state outputs (routes, ARP, BGP) as evidence. - Remove route-leak imports in other VRFs first, so nothing depends on the PCI VRF.
- Remove BGP VRF config, then SVIs, then VLAN/VNI mappings, then the VRF itself.
- Clean up orphaned prefix-lists and route-maps.
- Do one switch of the pair at a time.
3. Backout plan
A pre-built config snippet that re-adds everything in reverse order, tested in the lab, with the expected route counts written down so you know what "restored" looks like.
4. Test plan
- Neighboring VRFs: same route counts as the pre-change snapshot
- BGP EVPN peers: all Established
- MLAG: config-sanity clean
- Sample application reachability from the remaining zones
Why this matters for PCI
Auditors want evidence that scope was reduced. The before/after outputs plus the change record are exactly what they ask for. Save them with the ticket.
Note: device names, IP addresses, AS numbers and user names in this post are pseudonyms or lab values. The problem and the fix are real.
0 Comments
Post a Comment