pyats.cli.commands.version package¶
- class pyats.cli.commands.version.VersionCommand(*args, **kwargs)¶
Bases:
pyats.cli.base.CommandWithSubcommands
- SUBCMDS_ENTRYPOINT = 'pyats.cli.commands.version'¶
- SUBCOMMANDS = [<class 'pyats.cli.commands.version.check.VersionCheckSubCommand'>, <class 'pyats.cli.commands.version.update.VersionUpdateCommand'>]¶
- help = 'commands related to version display and manipulation'¶
- name = 'version'¶
Submodules¶
- class pyats.cli.commands.version.check.VersionCheckSubCommand(*args, **kwargs)¶
Bases:
pyats.cli.base.Subcommand
Simple command to return currently installed pyATS version
- CHECK_OUTDATED_CMD = 'pip3 list --outdated --format=json'¶
- PYATS_DISTRO_NAME = 'pyats'¶
- description = '\n Display the installed pyATS version, including all individual components.\n '¶
- help = 'display currently installed pyATS version'¶
- name = 'check'¶
- run(args)¶
runs this subcommand
- class pyats.cli.commands.version.update.VersionUpdateCommand(*args, **kwargs)¶
Bases:
pyats.cli.base.Subcommand
- ASK_CONFIRMATION = True¶
- CHECK_AVAILABLE_VERSIONS¶
alias of
pyats.cli.commands.version.check_available.CheckAvailableVersions
- EXTERNAL_PACKAGES = ['pyats']¶
- OPTIONAL_PACKAGES = ['rest.connector', 'yang.connector', 'yang.ncdiff', 'genie.trafficgen', 'genie.telemetry', 'pyats.contrib']¶
- PIP_INSTALL_CMD = 'pip3 install --disable-pip-version-check'¶
- PIP_UNINSTALL_CMD = 'pip3 uninstall --yes'¶
- PROXIES = {}¶
- PYATS_DISTRO_NAME = 'pyats'¶
- PYATS_PACKAGES = ['pyats', 'pyats.aereport', 'pyats.aetest', 'pyats.async', 'pyats.connections', 'pyats.datastructures', 'pyats.easypy', 'pyats.kleenex', 'pyats.log', 'pyats.reporter', 'pyats.results', 'pyats.tcl', 'pyats.topology', 'pyats.utils', 'genie', 'genie.libs.clean', 'genie.libs.conf', 'genie.libs.filetransferutils', 'genie.libs.health', 'genie.libs.ops', 'genie.libs.parser', 'genie.libs.sdk', 'genie.trafficgen', 'unicon', 'unicon.plugins']¶
- PYPI_URLS = []¶
- description = "\n Upgrade or downgrade this pyATS installation (virtual environment) to a\n different version.\n\nNote:\n if the currently installed version is already the latest version, it\n will be uninstalled, and re-installed again for 'safety'\n "¶
- help = 'update current pyATS installation to another version'¶
- name = 'update'¶
- run(*args, **kwargs)¶
runs this subcommand
- pyats.cli.commands.version.update.pip_conf_loop(func)¶
- pyats.cli.commands.version.update.setup_pip_conf(pypi_url)¶