pyATSのVersionUP方法
pyATSのVersionUPは非常に簡単です
下記コマンドを実行することで、 VersionUP可能です。
pyats version update
VersionUPお試し
実行前
usalab!:Desktop $ pyats version check You are currently running pyATS version: 20.4 Python: 3.7.5 [64bit] Package Version ---------------------------- ------- genie 20.4 genie.libs.conf 20.4 genie.libs.filetransferutils 20.4 genie.libs.ops 20.4 genie.libs.parser 20.4 genie.libs.sdk 20.4 pyats 20.4 pyats.aereport 20.4 pyats.aetest 20.4 pyats.async 20.4 pyats.connections 20.4 pyats.datastructures 20.4.1 pyats.easypy 20.4.1 pyats.kleenex 20.4 pyats.log 20.4.3 pyats.reporter 20.4.1 pyats.results 20.4 pyats.tcl 20.4 pyats.topology 20.4 pyats.utils 20.4 unicon 20.4 unicon.plugins 20.4
コマンドを実行すると削除されるパッケージが表示されます。
最後に確認が入るのでy
を入力して続けます。
usalab!:Desktop $ pyats version update Checking your current environment... The following packages will be removed: Package Version ---------------------------- ------- genie 20.4 genie.libs.conf 20.4 genie.libs.filetransferutils 20.4 genie.libs.ops 20.4 genie.libs.parser 20.4 genie.libs.sdk 20.4 pyats 20.4 pyats.aereport 20.4 pyats.aetest 20.4 pyats.async 20.4 pyats.connections 20.4 pyats.datastructures 20.4.1 pyats.easypy 20.4.1 pyats.kleenex 20.4 pyats.log 20.4.3 pyats.reporter 20.4.1 pyats.results 20.4 pyats.tcl 20.4 pyats.topology 20.4 pyats.utils 20.4 unicon 20.4 unicon.plugins 20.4 ... and updated with: Package Version ------- ------- ats latest genie latest unicon latest Are you sure to continue [y/N]?
入力後しばらく待つとDone! Enjoy!
と表示されます。
これにてVersion UP完了です
Are you sure to continue [y/N]? y Uninstalling existing packages... Installing new packages... Done! Enjoy!
最後に更新後のVersionを確認してみましょう。
You are currently running pyATS version: 20.10 Python: 3.7.5 [64bit] Package Version ---------------------------- ------- genie 20.10 genie.libs.clean 20.10.1 genie.libs.conf 20.10 genie.libs.filetransferutils 20.10 genie.libs.health 20.10 genie.libs.ops 20.10 genie.libs.parser 20.10 genie.libs.robot 20.10 genie.libs.sdk 20.10 genie.telemetry 20.10 genie.trafficgen 20.10 pyats 20.10 pyats.aereport 20.10 pyats.aetest 20.10 pyats.async 20.10 pyats.connections 20.10 pyats.contrib 20.10.3 pyats.datastructures 20.10 pyats.easypy 20.10 pyats.kleenex 20.10 pyats.log 20.10 pyats.reporter 20.10 pyats.results 20.10 pyats.robot 20.10 pyats.tcl 20.10 pyats.topology 20.10 pyats.utils 20.10 unicon 20.10 unicon.plugins 20.10
無事、最新の20.10がインストールされました。
おまけ
pyats version update
実行時はデフォルトで最新になりますが、オプションで任意のVersionを指定することも可能です。
usalab!:Desktop $ pyats version update --help Usage: pyats version update [options] Description: Upgrade or downgrade this pyATS installation (virtual environment) to a different version. Note: if the currently installed version is already the latest version, it will be uninstalled, and re-installed again for 'safety' Update Options: [VERSION] version of pyATS to update to (default: latest) --yes Do not prompt for yes/no confirmation
20.10 => 20.5のVersionDownも可能でした。
usalab!:Desktop $ pyats version update 20.5 Checking your current environment... The following packages will be removed: Package Version ---------------------------- ------- genie 20.10 genie.libs.clean 20.10.1 genie.libs.conf 20.10 genie.libs.filetransferutils 20.10 genie.libs.health 20.10 genie.libs.ops 20.10 genie.libs.parser 20.10 genie.libs.robot 20.10 genie.libs.sdk 20.10 genie.telemetry 20.10 genie.trafficgen 20.10 pyats 20.10 pyats.aereport 20.10 pyats.aetest 20.10 pyats.async 20.10 pyats.connections 20.10 pyats.contrib 20.10.3 pyats.datastructures 20.10 pyats.easypy 20.10 pyats.kleenex 20.10 pyats.log 20.10 pyats.reporter 20.10 pyats.results 20.10 pyats.robot 20.10 pyats.tcl 20.10 pyats.topology 20.10 pyats.utils 20.10 unicon 20.10 unicon.plugins 20.10 ... and updated with: Package Version ------- ------- ats 20.5 genie 20.5 unicon 20.5 Are you sure to continue [y/N]? y Uninstalling existing packages... Installing new packages... Done! Enjoy!
実行後のVersionチェック
usalab!:Desktop $ pyats version check You are currently running pyATS version: 20.5 Python: 3.7.5 [64bit] Package Version ---------------------------- ------- genie 20.5 genie.libs.clean 20.5 genie.libs.conf 20.5 genie.libs.filetransferutils 20.5 genie.libs.ops 20.5 genie.libs.parser 20.5 genie.libs.sdk 20.5 pyats 20.5 pyats.aereport 20.5 pyats.aetest 20.5 pyats.async 20.5 pyats.connections 20.5 pyats.datastructures 20.5 pyats.easypy 20.5 pyats.kleenex 20.5 pyats.log 20.5 pyats.reporter 20.5 pyats.results 20.5 pyats.tcl 20.5 pyats.topology 20.5 pyats.utils 20.5 unicon 20.5 unicon.plugins 20.5
想定通り動作しました。