Skip to content

Unable to detect vManage version after upgrading to 20.9.5.1 #127

@vsidhart-cisco

Description

@vsidhart-cisco

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

  1. Upgrade vManage to version 20.9.5.1.
  2. Execute the py3_sure.py script.

Suggested Fix

Utilize the absolute path to access viptela_cli.

Metadata

Metadata

Labels

assignedbugSomething isn't workingcompletedIssues/enhancement is completed/fixed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions