Summary
Following the upgrade to vManage version 20.9.5.1 (and some recent versions), executing the script fails with the error message indicating an inability to parse the vManage version.
vManage:~/test$ python3 py3_sure.py -u script
vManage Password (Note: Tool doesn't support passwords containing "!") :
Traceback (most recent call last):
File "py3_sure.py", line 1955, in <module>
version, version_tuple = vManageVersion()
File "py3_sure.py", line 315, in vManageVersion
version_tuple =tuple([int(i) for i in version_tuple])
File "py3_sure.py", line 315, in <listcomp>
version_tuple =tuple([int(i) for i in version_tuple])
ValueError: invalid literal for int() with base 10: ''
vManage:~/test$
It seems that the directory containing the executable viptela_cli, which spawns the Viptela CLI shell, is not added to PATH in the newer version of vManage, causing this error.
Steps to Reproduce
- Upgrade vManage to version 20.9.5.1.
- Execute the
py3_sure.py script.
Suggested Fix
Utilize the absolute path to access viptela_cli.
Summary
Following the upgrade to vManage version 20.9.5.1 (and some recent versions), executing the script fails with the error message indicating an inability to parse the vManage version.
It seems that the directory containing the executable
viptela_cli, which spawns the Viptela CLI shell, is not added to PATH in the newer version of vManage, causing this error.Steps to Reproduce
py3_sure.pyscript.Suggested Fix
Utilize the absolute path to access
viptela_cli.