nornir-nautobot
nornir-nautobot copied to clipboard
revert_in with napalm_configure
Hallo!
if revert_in
is used in next method :
https://github.com/nautobot/nornir-nautobot/blob/3bbc968c1bb9ec33459d5a8b495fb265c44b3c4a/nornir_nautobot/plugins/tasks/dispatcher/default.py#L368
napalm_confirm_commit
needs to be used to actually confirm the commit:
from nornir_napalm.plugins.tasks import napalm_confirm_commit
if revert_in is not None:
confirm_result = task.run(task= napalm_confirm_commit)
otherwise, the system will rollback to the backup config every time.