Replies: 1 comment 4 replies
-
After further testing, it looks like it's not possible to merge new TACACS config with NAPALM, at least with It's not obvious to me that NXAPI would change things, but I haven't tested it. Best solution I've found: merge TACACS config with a library like netmiko or scrapli, which deploys the config but registers a failure due to invalidated session, then log in again with a different TACACS account to issue the final |
Beta Was this translation helpful? Give feedback.
-
Due to inherent limitations on NXOS, it's not possible to deploy new TACACS config from a local (non-AAA) account, as NXOS will only fail over to local accounts when TACACS/RADIUS servers are not reachable.
This means we must deploy new AAA config from a TACACS account. But, as soon as the new TACACS config is sent, the current AAA session immediately becomes invalid, and any further commands produce an error. NAPALM (understandably) interprets this as a merge failure, and attempts a rollback, which also fails due to the invalid session.
The only way to deploy new TACACS config I've found (apart from some kind of console-based OOB magic) is to send the config from one TACACS account, which will partially succeed and partially fail due to the broken session. Then, using different TACACS credentials, merge the same config again, which will clean up any remaining negation or other non-breaking changes that the first attempt left behind. This second pass also issues the final
copy run start
.I'm hoping I've missed something, open to any and all suggestions. If I have missed something, we may be able to build it into NAPALM.
Beta Was this translation helpful? Give feedback.
All reactions