Openvim managment nets OVS refactoring
- OVS bridge creation and vxlan tunnel mesh (stp active) creation in openvim hosts.
- Add/remove/edit nets handling OVS ports, dhcp nets are supported to keep backwards compatibility.
Change-Id: I971067c77e50df292fa5cdd3bf926a222af349aa
Signed-off-by: Mirabal <leonardo.mirabal@altran.com>
diff --git a/openvimd.py b/openvimd.py
index 6513943..573ce27 100755
--- a/openvimd.py
+++ b/openvimd.py
@@ -69,6 +69,8 @@
'log_level': "DEBUG",
'log_level_db': "ERROR",
'log_level_of': 'ERROR',
+ 'bridge_ifaces': {},
+ 'network_type': 'ovs',
}
try:
#First load configuration from configuration file
@@ -214,7 +216,8 @@
#allow backward compatibility of test_mode option
if 'test_mode' in config_dic and config_dic['test_mode']==True:
config_dic['mode'] = 'test'
- if config_dic['mode'] == 'development' and ( 'development_bridge' not in config_dic or config_dic['development_bridge'] not in config_dic.get("bridge_ifaces",None) ):
+ if config_dic['mode'] == 'development' and config_dic['network_type'] == 'bridge' and \
+ ( 'development_bridge' not in config_dic or config_dic['development_bridge'] not in config_dic.get("bridge_ifaces",None) ):
logger.error("'%s' is not a valid 'development_bridge', not one of the 'bridge_ifaces'", config_file)
exit(-1)