diff options
author | ahothan <ahothan@cisco.com> | 2019-04-14 22:23:50 -0700 |
---|---|---|
committer | ahothan <ahothan@cisco.com> | 2019-04-14 23:15:36 -0700 |
commit | e7fdfb5c5e386bb8851b6c583c44ae61bd188627 (patch) | |
tree | fb809778f7e17d8e079edc6330647fbb33168f88 /test/test_chains.py | |
parent | bb04d1d32543b4e00400dbd736d4d48dc195a0b7 (diff) |
NFVBENCH-131 Allow list of arbitrary network names for EXT chains
Change-Id: Ide9ee9999242f449c57e40ce2c3bb147bb795452
Signed-off-by: ahothan <ahothan@cisco.com>
Diffstat (limited to 'test/test_chains.py')
-rw-r--r-- | test/test_chains.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_chains.py b/test/test_chains.py index f4b792a..f7a2ce3 100644 --- a/test/test_chains.py +++ b/test/test_chains.py @@ -232,6 +232,9 @@ def test_ext_chain_runner(): for scc in [1, 2]: config = _get_chain_config(ChainType.EXT, scc, shared_net) config.no_arp = no_arp + # this time use a tuple of network names + config['external_networks']['left'] = ('ext-lnet00', 'ext-lnet01') + config['external_networks']['right'] = ('ext-rnet00', 'ext-rnet01') if no_arp: # If EXT and no arp, the config must provide mac addresses (1 pair per chain) config['traffic_generator']['mac_addrs_left'] = ['00:00:00:00:00:00'] * scc @@ -244,6 +247,9 @@ def _check_nfvbench_openstack(sc=ChainType.PVP, l2_loopback=False): if l2_loopback: config.l2_loopback = True config.vlans = [[100], [200]] + if sc == ChainType.EXT: + config['external_networks']['left'] = 'ext-lnet' + config['external_networks']['right'] = 'ext-rnet' factory = BasicFactory() config_plugin = factory.get_config_plugin_class()(config) config = config_plugin.get_config() |