nornir-nautobot icon indicating copy to clipboard operation
nornir-nautobot copied to clipboard

revert_in with napalm_configure

Open milan2655 opened this issue 10 months ago • 0 comments

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.

milan2655 avatar Apr 16 '24 06:04 milan2655