Fullstack connectivity: test interface scenario added.

This patch adds (of_interface=native, ovsdb_interface=native)
test scenario. Other scenarios have been renamed for the
configuration to be self-explanatory.

Change-Id: I302db874ffa61004d706d946ba8fdb35b927e830
Related-bug: #1528894
This commit is contained in:
Inessa Vasilevskaya
2016-03-30 15:54:04 +03:00
parent f3bb7efb0a
commit 0c2caa977f
2 changed files with 12 additions and 7 deletions
+4 -1
View File
@@ -102,7 +102,10 @@ def bool_from_env(key, strict=False, default=False):
def sanitize_log_path(path):
# Sanitize the string so that its log path is shell friendly
return path.replace(' ', '-').replace('(', '_').replace(')', '_')
replace_map = {' ': '-', '(': '_', ')': '_'}
for s, r in six.iteritems(replace_map):
path = path.replace(s, r)
return path
class AttributeDict(dict):
+8 -6
View File
@@ -81,12 +81,14 @@ class TestOvsConnectivitySameNetwork(BaseConnectivitySameNetworkTest):
('VLANs', {'network_type': 'vlan',
'l2_pop': False})]
interface_scenarios = [
('openflow-cli', {'of_interface': 'ovs-ofctl',
'ovsdb_interface': 'vsctl'}),
('openflow-native', {'of_interface': 'native',
'ovsdb_interface': 'vsctl'}),
('ovsdb-native', {'of_interface': 'ovs-ofctl',
'ovsdb_interface': 'native'})]
('openflow-cli_ovsdb-cli', {'of_interface': 'ovs-ofctl',
'ovsdb_interface': 'vsctl'}),
('openflow-native_ovsdb-cli', {'of_interface': 'native',
'ovsdb_interface': 'vsctl'}),
('openflow-cli_ovsdb-native', {'of_interface': 'ovs-ofctl',
'ovsdb_interface': 'native'}),
('openflow-native_ovsdb-native', {'of_interface': 'native',
'ovsdb_interface': 'native'})]
scenarios = testscenarios.multiply_scenarios(
network_scenarios, interface_scenarios)