Detect simulated VLAN changes using Invariant
To detect changes in VLAN configurations between two network snapshots, fetch the vlan_properties
report for each snapshot and compare them.
First, retrieve the report for your current snapshot. Replace <current_snapshot_uuid>
with the actual snapshot ID.
invariant show vlan_properties --snapshot <current_snapshot_uuid> --json > current_vlan_properties.json
Next, retrieve the report for the previous or baseline snapshot. Replace <previous_snapshot_uuid>
with its ID.
invariant show vlan_properties --snapshot <previous_snapshot_uuid> --json > previous_vlan_properties.json
Use a diff tool to compare the two files. Differences will show changes in VLAN IDs, associated interfaces, or VXLAN VNIs.
diff current_vlan_properties.json previous_vlan_properties.json
# Example output might show an interface removed (-) from a VLAN:
# < "Interfaces": [
# < "dist-1[Ethernet1]",
# < "dist-1[Ethernet2]"
# < ],
# ---
# > "Interfaces": [
# > "dist-1[Ethernet1]"
# > ],
See Output > Network Information > vlan_properties for report details.