pyats.cli.commands.version package

class pyats.cli.commands.version.VersionCommand(*args, **kwargs)

Bases: 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: 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: Subcommand

ASK_CONFIRMATION = True
CHECK_AVAILABLE_VERSIONS

alias of 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']
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, proxy=None, extra_requirements=None)

runs this subcommand