diff options
author | Christian Trautman <ctrautma@redhat.com> | 2016-06-29 11:22:41 -0400 |
---|---|---|
committer | Christian Trautman <ctrautma@redhat.com> | 2016-07-07 11:18:13 -0400 |
commit | fc09b7f0b6e036651fd4c101d9b8492c4cccfe0c (patch) | |
tree | 36a3192fdb99bd39a77d01dfd4387033ba6df494 /testcases/integration.py | |
parent | e04b1b9a22f93bb1783ff9e82486aec38dcb0efb (diff) |
Namespace_veth: Add funtionality for network namespace, veth ports
Adds functionality for network namespaces and veth/peer ports
to connect the namespaces. The namespaces are tracked outside
of default Linux namespaces to prevent possible disruption of
work outside of VSPerf where a user may create a namespace and
the cleanup code deletes it. The cleanup code only removes
namespaces and veth ports created inside the testcase.
JIRA: VSPERF-310
Change-Id: If8881cafb119f38f052403a1de497e9660187d2e
Signed-off-by: Christian Trautman <ctrautma@redhat.com>
Diffstat (limited to 'testcases/integration.py')
-rw-r--r-- | testcases/integration.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testcases/integration.py b/testcases/integration.py index fdd8b09c..ffde5822 100644 --- a/testcases/integration.py +++ b/testcases/integration.py @@ -22,10 +22,13 @@ import copy from testcases import TestCase from conf import settings as S from collections import OrderedDict +from tools import namespace +from tools import veth from core.loader import Loader CHECK_PREFIX = 'validate_' + class IntegrationTestCase(TestCase): """IntegrationTestCase class """ @@ -115,6 +118,10 @@ class IntegrationTestCase(TestCase): step_ok = False if step[0] == 'vswitch': test_object = self._vswitch_ctl.get_vswitch() + elif step[0] == 'namespace': + test_object = namespace + elif step[0] == 'veth': + test_object = veth elif step[0] == 'trafficgen': test_object = self._traffic_ctl # in case of send_traffic method, ensure that specified |