Skip to content

Commit 9ca4c9d

Browse files
authored
Merge pull request #381 from networktocode/release/2.4.1
Release v2.4.1
2 parents 5afcdb2 + d6bd94a commit 9ca4c9d

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

docs/admin/release_notes/version_2.4.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ This document describes all new features and changes in the release. The format
88
- Add ability to check for sufficient free space before copying files to devices, with support for EOS, IOS, ASA, and JunOS platforms.
99
- Added reboot flag to Device.install_os for supported platforms.
1010

11+
<!-- towncrier release notes start -->
12+
## [v2.4.1 (2026-05-01)](https://github.com/networktocode/pyntc/releases/tag/v2.4.1)
13+
14+
### Fixed
15+
16+
- [#380](https://github.com/networktocode/pyntc/issues/380) - Fixed nxos install_os waiting for the device to reboot even if a reboot was not requested.
17+
1118
## [v2.4.0 (2026-04-29)](https://github.com/networktocode/pyntc/releases/tag/v2.4.0)
1219

1320
### Added

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyntc/devices/nxos_device.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,9 @@ def install_os(self, image_name, reboot=True, **vendor_specifics):
637637
if not self._image_booted(image_name):
638638
log.info("Host %s: Setting Image %s in boot options.", self.host, image_name)
639639
self.set_boot_options(image_name, reboot=reboot, **vendor_specifics)
640+
if not reboot:
641+
log.info("Host %s: OS image %s boot options set. Reboot the device to apply", self.host, image_name)
642+
return True
640643
log.info("Host %s: Waiting for device reload.", self.host)
641644
self._wait_for_device_reboot(timeout=timeout)
642645
if not self._image_booted(image_name):

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pyntc"
3-
version = "2.4.0"
3+
version = "2.4.1"
44
description = "Python library focused on tasks related to device level and OS management."
55
authors = ["Network to Code, LLC <opensource@networktocode.com>"]
66
readme = "README.md"
@@ -172,7 +172,7 @@ addopts = "-vv --doctest-modules -p no:warnings --ignore-glob='*mock*'"
172172
[tool.towncrier]
173173
package = "pyntc"
174174
directory = "changes"
175-
filename = "docs/admin/release_notes/version_2.3.md"
175+
filename = "docs/admin/release_notes/version_2.4.md"
176176
template = "towncrier_template.j2"
177177
start_string = "<!-- towncrier release notes start -->"
178178
issue_format = "[#{issue}](https://github.com/networktocode/pyntc/issues/{issue})"

0 commit comments

Comments
 (0)