Replies: 2 comments 3 replies
-
On IOS, napalm will on On Junos, napalm will On EOS, napalm will On NX-OS (nx-api) napalm will:
But only if NX-OS (SSH) behaves the same as nx-api. IOS-XR (XML agent) will execute rollback using XML with a rb_id=1 (so the behavior is the same as Junos). IOS-XR NETCONF looks the same. I didn't check what EOS (SSH) does. |
Beta Was this translation helpful? Give feedback.
-
Okay, that sounds reasonably to me that we should remove the We should also add checks into EOS, NX-OS (nx-api), NX-OS (SSH) that the relevant rollback file exists (and probably raise an exception if it doesn't). We should also verify the behavior on EOS (SSH) is reasonable and verify the relevant rollback file exists. |
Beta Was this translation helpful? Give feedback.
-
For the IOS and Junos drivers, calling
rollback()
will initiate a rollback regardless of any changes that napalm thinks it made. For nxos_ssh however,rollback()
has no effect ifself.changed
is falsy.I'm using napalm in a workflow that might need to call
rollback()
in a session that didn't initiate any changes. I can work around this by manually settingdevice.changed = True
, but it seems like this is inconsistent behavior. I thinkrollback()
should work whether napalm thinks it made any changes or not (same way it behaves in IOS/Junos). Happy to submit a PR.Beta Was this translation helpful? Give feedback.
All reactions