diff options
Diffstat (limited to 'nfvbench')
-rw-r--r-- | nfvbench/chain_runner.py | 8 | ||||
-rw-r--r-- | nfvbench/chaining.py | 2 |
2 files changed, 3 insertions, 7 deletions
diff --git a/nfvbench/chain_runner.py b/nfvbench/chain_runner.py index e38cfcd..a4e461d 100644 --- a/nfvbench/chain_runner.py +++ b/nfvbench/chain_runner.py @@ -84,12 +84,8 @@ class ChainRunner(object): vtep_vlan = gen_config.gen_config.vtep_vlan src_vteps = gen_config.gen_config.src_vteps dst_vtep = gen_config.gen_config.dst_vtep - int_nets = self.config.internal_networks - network_type = set( - [int_nets[net].get('network_type') for net in int_nets]) - if 'vxlan' in network_type: - gen_config.set_vxlans(0, self.chain_manager.get_chain_vxlans(0)) - gen_config.set_vxlans(1, self.chain_manager.get_chain_vxlans(1)) + gen_config.set_vxlans(0, self.chain_manager.get_chain_vxlans(0)) + gen_config.set_vxlans(1, self.chain_manager.get_chain_vxlans(1)) gen_config.set_vtep_vlan(0, vtep_vlan) gen_config.set_vtep_vlan(1, vtep_vlan) # Configuring source an remote VTEPs on TREx interfaces diff --git a/nfvbench/chaining.py b/nfvbench/chaining.py index 5f9e1e8..a97cd0b 100644 --- a/nfvbench/chaining.py +++ b/nfvbench/chaining.py @@ -329,7 +329,7 @@ class ChainNetwork(object): :return: VNI ID for this network """ - if self.network['provider:network_type'] != 'vxlan': + if 'vxlan' not in self.network['provider:network_type']: raise ChainException('Trying to retrieve VNI for non VXLAN network') return self.network['provider:segmentation_id'] |