Skip to content

Add reboot flag to install_os#376

Merged
jeffkala merged 6 commits intodevelopfrom
NAPPS-1076/reboot-flag
Apr 29, 2026
Merged

Add reboot flag to install_os#376
jeffkala merged 6 commits intodevelopfrom
NAPPS-1076/reboot-flag

Conversation

@gsnider2195
Copy link
Copy Markdown
Contributor

@gsnider2195 gsnider2195 commented Apr 28, 2026

This required vendoring pynxos and adding the reboot flag support to that dependency. Long term plan is to retire the pynxos package and remove it from this project after migrating all nxos commands to Netmiko.

Comment thread pyntc/devices/pynxos/features/vlans.py Outdated
Comment thread pyntc/devices/pynxos/features/vlans.py Outdated
Comment thread pyntc/devices/pynxos/features/vlans.py Outdated
Comment on lines +930 to +932
if not reboot:
log.info("Host %s: OS image %s boot options set. Reboot the device to apply", self.host, image_name)
return True
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel like for ios we need more logic. If install_mode is used the reboot automatically happens.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could copy what we're doing in iosxewlc and fail if the user selects install mode and reboot=False

@jeffkala jeffkala merged commit d744317 into develop Apr 29, 2026
10 checks passed
@smk4664 smk4664 mentioned this pull request Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants