Network Configuration Management Rollbacks
Overview
Network Configuration Management (NCM) rollbacks let you restore a network device to a previous configuration directly from Datadog. Rollbacks use a Private Action Runner (PAR) to apply the selected configuration back to the device.
Rollbacks are supported for the following vendors and platforms:
Prerequisites
Setup
Agent
Add the following to your datadog.yaml to enable rollbacks:
network_devices:
config_management:
rollback:
enabled: true
Alternatively, set the network_devices.config_management.rollback.enabled configuration option to true.
In conf.d/network_config_management.d/conf.yaml, optionally set how often the Agent reports its configuration inventory:
init_config:
## @param inventory_report_max_interval - integer - optional - default: 3600 (1 hour)
## Maximum interval, in seconds, between inventory reports.
inventory_report_max_interval: 3600
Optionally, configure the local store that holds configurations eligible for rollback:
init_config:
store:
## @param min_configs_per_device - integer - optional - default: 2
## Minimum number of configurations to retain per device, regardless of age.
min_configs_per_device: 2
## @param max_configs_per_device - integer - optional - default: 24
## Maximum number of configurations to retain per device before older ones are evicted.
max_configs_per_device: 24
## @param max_raw_config_store_bytes - integer - optional - default: 2000000000 (2 GB)
## Maximum size, in bytes, of the local configuration store before older configurations are evicted.
max_raw_config_store_bytes: 2000000000
The Agent process needs write access to the run_path directory where rollback data is stored locally.
Restart the Agent to apply the configuration changes.
Private Action Runner
Set up a Private Action Runner on a host that the Agent’s IPC port can reach.
Add com.datadoghq.remoteaction.networkconfigmanagement.rollbackConfig to the private_action_runner.actions_allowlist section of /etc/datadog-agent/datadog.yaml. See Change the allowlist of a runner for details.
Register the runner in Datadog and assign it to an execution group. Within that group, create a policy that allows the com.datadoghq.remoteaction.networkconfigmanagement.rollbackConfig action.
- The policy must grant
Editor access to users with the NCM Device Config Write role.
Permissions
Rollbacks use the following NCM permissions:
| Permission | Allows |
|---|
| NCM Read | Viewing device configurations |
| NCM Write | Triggering a rollback |
Trigger a rollback
Navigate to the Configuration tab for a device in the NDM device view.
Select the configuration version you want to roll back to. The side panel displays a Rollback button for that version.
Click Rollback, review the diff in the confirmation modal.
Click Rollback again to confirm.
Further Reading
Additional helpful documentation, links, and articles: