Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/402.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed nxos install_os failing due to using the default timeout on the long running `install all` command.
10 changes: 8 additions & 2 deletions pyntc/devices/nxos_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,10 +896,16 @@ def set_boot_options(self, image_name, kickstart=None, reboot=True, **vendor_spe
reboot_arg = " no-reload"
try:
if kickstart is None:
self.show_netmiko(f"install all nxos {image_name}{reboot_arg}", raw_text=True)
self.show_netmiko(
f"install all nxos {image_name}{reboot_arg}",
read_timeout=3600,
raw_text=True,
)
else:
self.show_netmiko(
f"install all system {image_name} kickstart {kickstart}{reboot_arg}", raw_text=True
f"install all system {image_name} kickstart {kickstart}{reboot_arg}",
read_timeout=3600,
raw_text=True,
)
except (NetmikoBaseException, NetmikoTimeoutException):
pass
Expand Down
Loading