aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorahothan <ahothan@cisco.com>2018-11-20 09:52:00 -0800
committerahothan <ahothan@cisco.com>2018-11-20 10:09:21 -0800
commit8b1b3e5c7fb91f450b2abe4a8201bcfec14b2bb9 (patch)
tree56e00816633de94b848e2951673e52d56903f797 /test
parent4988edf6afb74026db81677f25877b27b8fcfc05 (diff)
NFVBENCH-111 Add support for VxLAN3.0.0
Change-Id: I7d9d7ccb6be7445e625ec520d22c5f045b56d5ff Signed-off-by: ahothan <ahothan@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/mock_trex.py5
-rw-r--r--test/test_chains.py2
-rw-r--r--test/test_nfvbench.py1
3 files changed, 8 insertions, 0 deletions
diff --git a/test/mock_trex.py b/test/mock_trex.py
index c128e9a..c4ce9d7 100644
--- a/test/mock_trex.py
+++ b/test/mock_trex.py
@@ -55,6 +55,11 @@ except ImportError:
api_mod.STLVmFlowVarRepetableRandom = STLDummy
api_mod.STLVmWrFlowVar = STLDummy
api_mod.UDP = STLDummy
+ api_mod.bind_layers = STLDummy
+ api_mod.FlagsField = STLDummy
+ api_mod.Packet = STLDummy
+ api_mod.ThreeBytesField = STLDummy
+ api_mod.XByteField = STLDummy
services_mod = ModuleType('trex_stl_lib.services')
stl_lib_mod.services = services_mod
diff --git a/test/test_chains.py b/test/test_chains.py
index 109b73b..a9c9ac7 100644
--- a/test/test_chains.py
+++ b/test/test_chains.py
@@ -76,6 +76,7 @@ def test_chain_runner_ext_no_openstack():
config = _get_chain_config(sc=ChainType.EXT)
specs = Specs()
config.vlans = [100, 200]
+ config.vnis = [5000, 6000]
config['traffic_generator']['mac_addrs_left'] = ['00:00:00:00:00:00']
config['traffic_generator']['mac_addrs_right'] = ['00:00:00:00:01:00']
@@ -172,6 +173,7 @@ def _check_nfvbench_openstack(sc=ChainType.PVP, l2_loopback=False):
if l2_loopback:
config.l2_loopback = True
config.vlans = [[100], [200]]
+ config.vnis = [[5000], [6000]]
factory = BasicFactory()
config_plugin = factory.get_config_plugin_class()(config)
config = config_plugin.get_config()
diff --git a/test/test_nfvbench.py b/test/test_nfvbench.py
index f532bba..04778e7 100644
--- a/test/test_nfvbench.py
+++ b/test/test_nfvbench.py
@@ -319,6 +319,7 @@ def _get_dummy_tg_config(chain_type, rate, scc=1, fc=10, step_ip='0.0.0.1',
def _get_traffic_client():
config = _get_dummy_tg_config('PVP', 'ndr_pdr')
+ config['vxlan'] = False
config['ndr_run'] = True
config['pdr_run'] = True
config['generator_profile'] = 'dummy'