summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/stateful_tests
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-10-26 15:21:35 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-10-26 15:21:35 +0200
commit270cf64af087f110fd69064017edc311ddf82025 (patch)
treeaa85569d88c1a60a271dfc8549ed0b702ee4635f /scripts/automation/regression/stateful_tests
parent095ae0358df22fdf34bd58ca4e8a7cceb4f911ae (diff)
regression: fix client pkg test to configure the dut interfaces
Diffstat (limited to 'scripts/automation/regression/stateful_tests')
-rwxr-xr-xscripts/automation/regression/stateful_tests/trex_client_pkg_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/automation/regression/stateful_tests/trex_client_pkg_test.py b/scripts/automation/regression/stateful_tests/trex_client_pkg_test.py
index 4ad7fba3..7e7ce2b4 100755
--- a/scripts/automation/regression/stateful_tests/trex_client_pkg_test.py
+++ b/scripts/automation/regression/stateful_tests/trex_client_pkg_test.py
@@ -7,9 +7,14 @@ from nose.plugins.attrib import attr
@attr('client_package')
class CTRexClientPKG_Test(CTRexGeneral_Test):
"""This class tests TRex client package"""
+ configured_dut = False
def setUp(self):
CTRexGeneral_Test.setUp(self)
+ if not CTRexClientPKG_Test.configured_dut and not self.is_loopback:
+ self.router.configure_basic_interfaces()
+ self.router.config_pbr(mode = 'config')
+ CTRexClientPKG_Test.configured_dut = True
self.unzip_client_package()
def run_client_package_stf_example(self, python_version):