summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
f4e3171)
Change-Id: I82681fc9ea52d72323d48ac78507ef1c571ca712
Signed-off-by: Peter Mikus <pmikus@cisco.com>
ssh.connect(tg_node)
(ret, _, _) = ssh.exec_command(
ssh.connect(tg_node)
(ret, _, _) = ssh.exec_command(
- "sudo -E sh -c '{}/resources/tools/trex/"
- "trex_installer.sh'".format(Constants.REMOTE_FW_DIR),
+ "sudo -E sh -c '{0}/resources/tools/trex/"
+ "trex_installer.sh {1}'".format(Constants.REMOTE_FW_DIR,
+ Constants.TREX_INSTALL_VERSION),
timeout=1800)
if int(ret) != 0:
raise RuntimeError('TRex installation failed.')
timeout=1800)
if int(ret) != 0:
raise RuntimeError('TRex installation failed.')
# QEMU install directory
QEMU_INSTALL_DIR = '/opt/qemu-2.5.0'
# QEMU install directory
QEMU_INSTALL_DIR = '/opt/qemu-2.5.0'
+ # TRex install version
+ TREX_INSTALL_VERSION = '2.35'
+
- TREX_INSTALL_DIR = '/opt/trex-core-2.34'
+ TREX_INSTALL_DIR = '/opt/trex-core-2.35'
# Kubernetes templates location
RESOURCES_TPL_K8S = 'resources/templates/kubernetes'
# Kubernetes templates location
RESOURCES_TPL_K8S = 'resources/templates/kubernetes'
TREX_DOWNLOAD_REPO="https://github.com/cisco-system-traffic-generator/trex-core/archive/"
TREX_DOWNLOAD_PACKAGE="v${TREX_VERSION}.zip"
TREX_DOWNLOAD_REPO="https://github.com/cisco-system-traffic-generator/trex-core/archive/"
TREX_DOWNLOAD_PACKAGE="v${TREX_VERSION}.zip"
-sys.path.insert(0, "/opt/trex-core-2.34/scripts/automation/"+\
+sys.path.insert(0, "/opt/trex-core-2.35/scripts/automation/"+\
"trex_control_plane/stl/")
from trex_stl_lib.api import *
"trex_control_plane/stl/")
from trex_stl_lib.api import *
import argparse
import json
import argparse
import json
-sys.path.insert(0, "/opt/trex-core-2.34/scripts/automation/"
+sys.path.insert(0, "/opt/trex-core-2.35/scripts/automation/"
"trex_control_plane/stl/")
from trex_stl_lib.api import *
"trex_control_plane/stl/")
from trex_stl_lib.api import *
-sys.path.insert(0, "/opt/trex-core-2.34/scripts/automation/"+\
+sys.path.insert(0, "/opt/trex-core-2.35/scripts/automation/"+\
"trex_control_plane/stl/")
from trex_stl_lib.api import *
"trex_control_plane/stl/")
from trex_stl_lib.api import *