Closed shenglong closed 2 years ago
After reviewing it these past days, the show() function, doesn't expect a netmiko arg when the install_os runs in install mode, but in install mode when invoking the show(), it passes a netmiko arg, that's why it returns a key argument error when invoking show() in install mode for install_os.
Update: When enabling the netmiko arg to be passed into show(), the install mode runs without issues too.
def install_os(self, image_name, install_mode=False, install_mode_delay_factor=20, **vendor_specifics):
...
self.show(command, delay_factor=install_mode_delay_factor)
def show(self, command, expect_string=None, **netmiko_args):
"""Run command on device.
Args:
command (str): Command to be ran.
expect_string (str, optional): Expected string from command output. Defaults to None.
Returns:
str: Output of command.
"""
self.enable()
return self._send_command(command, expect_string=expect_string, **netmiko_args)
Good day, I wanted to know if this change was feasible, or could it be reviewed.
closed in #243
Hello, in version 0.20.1, when running install_os in install mode, from ios_device.py returns an error of unexpected keyword argument for show():
If we don't pass the delay_factor variable to the show(), then the command from ios_device.py on line 712, with this content instead:
The os upgrade installation runs correctly on the device, and the install process happens without issues.