From 2b9cd92d13b9f0ec32de1c5e82c46b869edb2afe Mon Sep 17 00:00:00 2001 From: Gary Snider <75227981+gsnider2195@users.noreply.github.com> Date: Thu, 2 Jul 2026 15:27:09 -0700 Subject: [PATCH 1/2] fix nxos install_os failing due to using the default timeout on the long running install command --- pyntc/devices/nxos_device.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 From 8afe53e368a052578dc8b53547ab5611152e3c83 Mon Sep 17 00:00:00 2001 From: Gary Snider <75227981+gsnider2195@users.noreply.github.com> Date: Thu, 2 Jul 2026 15:36:03 -0700 Subject: [PATCH 2/2] changelog --- changes/402.fixed | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/402.fixed 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.