Aruba CX (AOS-CX) โ Deployment
Stage, diff, commit and roll back fabric changes for Aruba CX (AOS-CX) data center fabrics (VXLAN/EVPN). Part of the multi-vendor Data Center automation guide.
Setup, key commands & run examples
The Aruba CX (AOS-CX) change workflow. AOS-CX is REST-first: the pyaoscx SDK (and the community napalm-aoscx driver) drive the box over the REST API. Use checkpoints to snapshot, diff and roll back changes.
# 1. stage: checkpoint / configure (candidate via REST checkpoints)
# 2. diff: checkpoint diff <pre> <post> / show running-config
# 3. commit: write memory (or REST PUT to running config)
# 4. revert: checkpoint rollback <name>Render config from intent, stage it on Aruba, preview the diff and only commit when it matches what you expect.
dev.load_merge_candidate(config=rendered) # checkpoint / configure (candidate via REST checkpoints)
diff = dev.compare_config() # checkpoint diff <pre> <post> / show running-config
print(diff)
if diff and "vlan 120" in diff:
dev.commit_config() # write memory (or REST PUT to running config)
else:
dev.discard_config()Best practices
Diff before every commit
Always review checkpoint diff <pre> <post> / show running-config (or gate it in CI) so no Aruba change is applied blind.
Deploy leaf-pairs, not rows
Roll one MLAG/ESI pair at a time and verify before moving on, so redundancy survives a bad change.
Confirmed commits
Aruba has no confirmed-commit โ keep a rollback (checkpoint rollback <name>) one command away and watch the session.
Post-change verification
Re-read EVPN/VTEP state after each commit and abort the rollout if anything regressed.
Hands-on exercises
Guided practice tasks โ copy the starter snippet, run it against a lab device, and extend it to meet the goal.
Goal: Add an L2VNI to one Aruba leaf pair: stage, print the diff, commit only if it contains the expected VLAN id.
rendered = render_l2vni(vlan=120, vni=10120)
# TODO: stage -> diff -> commit only if "120" in diff, else discardGoal: Apply a bad change, detect the EVPN peer drop, and roll back with: checkpoint rollback <name>
# apply change, then on failure:
checkpoint rollback <name>Curated videos & guides
Checklist โ pitfalls, gotchas & verification
Common pitfalls
- โขCommitting without reviewing the diff first.
- โขDeploying both leaves of an MLAG/ESI pair at once and dropping the redundant path.
- โขAssuming Aruba commit semantics match other vendors โ they differ.
Gotchas to watch
- โขcompare_config() returns an empty string (not None) when there is no change โ test truthiness.
- โขLosing your management session mid-commit can lock you out without confirmed-commit.
Verify it works
- โขAfter deploy, re-read EVPN neighbors and confirm every peer returned to up.
- โขDiff running-config against intent post-change to prove zero unexpected drift.