Auto-Correction Validation
After subscribing to events, use the procedures in this page to validate that auto-correction is working in Bridge. Auto-correction automatically rectifies network configuration changes to maintain compliance with the desired configuration.
What Auto-Correction Addresses
- Link Down — Interface failure
- BGP — BGP configuration changes (IP deletion)
- ConfigDiff — Configuration file modifications (for example,
frr.confupdates) - NetQ Agent Status — Switch reboot or shutdown
Prerequisites
- NetQ server onboarding — A NetQ server must be onboarded in Bridge.
- Event subscription — The relevant events must be subscribed before running each validation scenario.
When a validation scenario triggers a configuration change on a switch, open and resolved events appear on the Events panel on the Dashboard. You must add the Events panel manually before running validation — see Add Events Panel to Dashboard.
Add Events Panel to Dashboard
The Events panel must be added manually to the Dashboard before you can verify auto-correction events.
- In the sidebar, click Dashboard.
- Click Edit Dashboard.

- Click Add widgets.

- Select Events, then select the Events dashboard widget.
- Click Update Dashboard.

- The Events panel appears on the Dashboard.

Validate Link Down Event
Ensure that you have subscribed to the Link Down event before proceeding.

-
Log in to a switch device:
ssh <username>@<switch-hostname>Example:
ssh cumulus@leaf-pod00-su01-r1 -
Retrieve interface information:
ip a -
Bring down an interface:
sudo ip link set <interface> downExample:
sudo ip link set swp1 down -
Verify the result:
- The interface state shows as Down.
- Bridge auto-corrects the Link Down event.
- Open and resolved events appear on the Events Panel in the Dashboard sidebar.

Validate BGP State Change Event
Ensure that you have subscribed to the BGP event before proceeding.

-
Log in to a switch device:
ssh cumulus@leaf-pod00-su01-r1 -
Retrieve interface information:
ip a -
Unset the IP address of an interface (excluding
172.x.x.xaddresses):nv unset interface <interface> ip address
nv config applyExample:
nv unset interface swp68 ip address
nv config apply -
Verify the result:
- The IP address is removed from the unset interface.
- Bridge auto-corrects the BGP session state change event.
- Open and resolved events appear on the Events Panel in the Dashboard sidebar.
When changes are made on the switch, the ConfigDiff event may also appear, indicating that the configuration was modified and corrected.

Validate ConfigDiff Event
Ensure that you have subscribed to the ConfigDiff event before proceeding.

Scenario 1: Create a VRF
-
Log in to a switch device:
ssh <username>@<switch-hostname>Example:
ssh cumulus@leaf-pod00-su01-r1 -
Create a VRF to generate ConfigDiff events:
nv set vrf <vrf_name>
nv config applyExample:
nv set vrf test-config
nv config apply -
Verify VRF creation:
nv show vrf
-
Verify the result:
- The newly created VRF (for example,
test-config) is auto-corrected (deleted) by Bridge. - An open state event appears on the Events Panel in the Dashboard sidebar.
- The newly created VRF (for example,
When a VRF is created, a virtual interface is also created on the switch. This triggers both Link Down and ConfigDiff events.

Scenario 2: Delete frr.conf
-
Log in to a switch device:
ssh <username>@<switch-hostname>Example:
ssh cumulus@leaf-pod00-su01-r1 -
Switch to the root user:
sudo su -
Delete the
frr.conffile to generate ConfigDiff errors:rm /etc/frr/frr.conf -
Verify the result:
- Bridge auto-corrects the ConfigDiff error event.
- The deleted
frr.conffile is recreated automatically. - ConfigDiff Error and ConfigDiff Info events (indicating that
frr.confhas been restored) appear on the Events Panel.

Validate NetQ Agent Status Event
Ensure that you have subscribed to the NetQ Agent Status event before proceeding.

-
Log in to a switch device:
ssh <username>@<switch-hostname>Example:
ssh cumulus@leaf-pod00-su01-r1 -
Reboot the switch to generate a NetQ Agent info event:
sudo reboot -
After the switch comes back up, log in again and shut down the switch to generate a NetQ Agent error event:
sudo shutdown -h nownoteShutting down the switch takes it offline. Power the switch back on before running additional validation scenarios.
-
Verify that the Events dashboard shows the events as illustrated below.


Next Steps
- Unsubscribe Events — Disable auto-correction when validation is complete.