diff --git a/changes/402.fixed b/changes/402.fixed new file mode 100644 index 00000000..ca312c30 --- /dev/null +++ b/changes/402.fixed @@ -0,0 +1 @@ +Fixed nxos install_os failing due to using the default timeout on the long running `install all` command. diff --git a/pyntc/devices/nxos_device.py b/pyntc/devices/nxos_device.py index ac949aa6..8583cbbc 100644 --- a/pyntc/devices/nxos_device.py +++ b/pyntc/devices/nxos_device.py @@ -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