From ef5ebf6cb9975dd4c1ca389fce790d931e0df040 Mon Sep 17 00:00:00 2001 From: Bobby Watson Date: Sat, 2 Dec 2017 11:55:46 -0500 Subject: [PATCH] Fix nxos upgrade bug (#38) * Fix issue where output from unxos upgrade was a list instead of json dict. --- pylib/aeon/nxos/autoload/install_os.py | 6 +++++- setup.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pylib/aeon/nxos/autoload/install_os.py b/pylib/aeon/nxos/autoload/install_os.py index 02f4742..00f9c02 100644 --- a/pylib/aeon/nxos/autoload/install_os.py +++ b/pylib/aeon/nxos/autoload/install_os.py @@ -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) diff --git a/setup.py b/setup.py index 3f12350..15820f3 100644 --- a/setup.py +++ b/setup.py @@ -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",