diff options
Diffstat (limited to 'testcases/testcase.py')
-rw-r--r-- | testcases/testcase.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/testcases/testcase.py b/testcases/testcase.py index 0c64a34f..6fa1092e 100644 --- a/testcases/testcase.py +++ b/testcases/testcase.py @@ -65,15 +65,17 @@ class TestCase(object): self._frame_mod = cfg.get('Frame Modification', None) self._performance_test = performance_test - tunnel_type = None + self._tunnel_type = None self._tunnel_operation = None if self.deployment == 'op2p': self._tunnel_operation = cfg['Tunnel Operation'] if 'Tunnel Type' in cfg: - tunnel_type = cfg['Tunnel Type'] - tunnel_type = get_test_param('tunnel_type', tunnel_type) + self._tunnel_type = cfg['Tunnel Type'] + self._tunnel_type = get_test_param('tunnel_type', + self._tunnel_type) + # identify guest loopback method, so it can be added into reports self.guest_loopback = [] @@ -113,7 +115,7 @@ class TestCase(object): self._traffic.update({'traffic_type': traffic_type, 'flow_type': cfg.get('Flow Type', 'port'), 'bidir': bidirectional, - 'tunnel_type': tunnel_type, + 'tunnel_type': self._tunnel_type, 'multistream': int(multistream), 'stream_type': stream_type, 'pre_installed_flows' : pre_installed_flows, @@ -154,9 +156,10 @@ class TestCase(object): S.getValue('TRAFFICGEN_PORT2_IP')}) if self._tunnel_operation == "decapsulation": - self._traffic['l2'] = S.getValue('VXLAN_FRAME_L2') - self._traffic['l3'] = S.getValue('VXLAN_FRAME_L3') - self._traffic['l4'] = S.getValue('VXLAN_FRAME_L4') + self._traffic['l2'] = S.getValue(self._tunnel_type.upper() + '_FRAME_L2') + self._traffic['l3'] = S.getValue(self._tunnel_type.upper() + '_FRAME_L3') + self._traffic['l4'] = S.getValue(self._tunnel_type.upper() + '_FRAME_L4') + self._logger.debug("Controllers:") loader = Loader() |