You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrated additional `NXOSDevice` methods from NX-API to Netmiko SSH: `running_config`, `set_timeout`, `install_os` (the `terminal dont-ask` step), `reboot`, `backup_running_config`, `checkpoint`, `rollback`, `redundancy_state`, `file_copy_remote_exists`, and `file_copy`. `file_copy()` now uses Netmiko's `file_transfer()` (SCP over the existing SSH session) instead of pynxos. `reboot()` now catches `netmiko.exceptions.ReadTimeout` instead of `requests.exceptions.ReadTimeout` when the device drops the SSH session on reload. `redundancy_state` now falls back to `"active"` on any `netmiko.exceptions.NetmikoBaseException`. `file_copy_remote_exists` is now implemented on top of `verify_file()` (local checksum compared with the remote file's checksum) and no longer calls into pynxos. `refresh()` now also invalidates the cached `redundancy_state`. The remaining NX-API call sites are tracked for follow-up migration.
Copy file name to clipboardExpand all lines: docs/user/lib_overview.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,14 @@ It's main purpose is to simplify the execution of common tasks including:
24
24
25
25
`NXOSDevice` is migrating from the pynxos (NX-API) transport to Netmiko SSH. The migration is being delivered in phases:
26
26
27
-
- The `save()` method has been reimplemented on Netmiko SSH.
27
+
- The following methods have been reimplemented on Netmiko SSH: `save()`, `running_config`, `set_timeout()`, `install_os()` (the `terminal dont-ask` step), `reboot()`, `backup_running_config()`, `checkpoint()`, `rollback()`, `redundancy_state`, `file_copy_remote_exists()`, and `file_copy()`.
28
+
-`file_copy()` now uses Netmiko's `file_transfer()` (SCP over the existing SSH session) instead of pynxos.
29
+
-`reboot()` now catches `netmiko.exceptions.ReadTimeout` (raised by Netmiko when the SSH session drops during reload) instead of `requests.exceptions.ReadTimeout`.
30
+
-`redundancy_state` now falls back to `"active"` when the underlying SSH command raises any `netmiko.exceptions.NetmikoBaseException`.
31
+
-`file_copy_remote_exists()` now compares the local file's checksum against the remote file's checksum via `verify_file()`; it no longer delegates to pynxos.
32
+
-`refresh()` now also invalidates the cached `redundancy_state`.
28
33
- The constructor still accepts the `transport`, `verify`, and `port` kwargs for backwards compatibility, but supplying any of them now emits a `DeprecationWarning`. These kwargs will be removed in a future release and will be ignored once the migration completes.
29
-
- The remaining NX-API call sites (`show`, `config`, `facts`-derived properties, `boot_options`, `reboot`, etc.) are still wired through pynxos and will be migrated in follow-up releases.
34
+
- The remaining NX-API call sites (`show`, `config`, `facts`-derived properties such as `hostname`/`uptime`/`os_version`, `boot_options`, `set_boot_options`, etc.) are still wired through pynxos and will be migrated in follow-up releases.
30
35
31
36
### Behavioral differences to expect once migration completes
0 commit comments