Skip to content

Commit

Permalink
Fix nxos upgrade bug (#38)
Browse files Browse the repository at this point in the history
* Fix issue where output from unxos upgrade was a list instead of json dict.
  • Loading branch information
bobbywatson3 authored Dec 2, 2017
1 parent 972d3d2 commit ef5ebf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pylib/aeon/nxos/autoload/install_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,12 @@ def run(self, timeout=10 * 60):
:param timeout: time/seconds to perform the install action
"""

cmd = 'terminal dont-ask ; install all nxos {dir}:{bin}'.format(
cmd = 'install all nxos {dir}:{bin}'.format(
dir=self.DESTDIR, bin=self.image)

# Don't prompt when upgrading
self.device.api.exec_opcmd('terminal dont-ask',
msg_type='cli_show_ascii',
timeout=timeout)
run = self.device.api.exec_opcmd
run(cmd, msg_type='cli_show_ascii', timeout=timeout)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def requirements(filename):

setup(
name="aeon-venos",
version="0.9.9",
version="0.9.10",
author="Jeremy Schulman",
url='https://github.com/Apstra/aeon-venos',
author_email="jeremy@apstra.com",
Expand Down

0 comments on commit ef5ebf6

Please sign in to comment.