diff options
author | 2016-03-24 21:36:08 +0200 | |
---|---|---|
committer | 2016-03-24 21:36:08 +0200 | |
commit | 86767eec82bd816136833315d914a1e85e409e49 (patch) | |
tree | 075151a0ba0cf8ad4bf9acf91e50f28f7b5ac2c7 /scripts | |
parent | 764ef2e77a5f344bf1f30f717f610f49d21f869d (diff) |
trex_client pkg explain
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/automation/trex_control_plane/doc_stl/index.rst | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/doc_stl/index.rst b/scripts/automation/trex_control_plane/doc_stl/index.rst index 2a43061c..97a1037a 100644 --- a/scripts/automation/trex_control_plane/doc_stl/index.rst +++ b/scripts/automation/trex_control_plane/doc_stl/index.rst @@ -16,7 +16,11 @@ How to Install .. toctree:: :maxdepth: 2 -* **TODO** Yaroslav Client zip as self-contain +| TRex package contains trex_client.tar.gz +| Put it at any place you like, preferably same place as your scripts. +| (If it's not at same place as your scripts, you will need to ensure trex_client directory is in sys.path) + +Un-pack it using command: tar -xzf trex_client.tar.gz How to pyATS/v2.0 ================== @@ -43,6 +47,10 @@ Trex only supports python2 for now, so it only works for **Python2** pyats. from scapy.contrib.mpls import * from trex_stl_lib.trex_stl_hltapi import * +If using trex_client package, import syntax is:: + + from trex_client.stl.api import * + API Reference ============== |