From 86767eec82bd816136833315d914a1e85e409e49 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Thu, 24 Mar 2016 21:36:08 +0200 Subject: trex_client pkg explain --- scripts/automation/trex_control_plane/doc_stl/index.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'scripts/automation/trex_control_plane/doc_stl') 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 ============== -- cgit 1.2.3-korg