Handle ofcs thread creation form db and openvim.cfg
- start_service create a ofc thread per sdn in db, during ofc creation and default openvimd.cfg
- stop_service kill ofcs thread
- OFC creation/delete via REST interface, handel creation/delete of thread
Change-Id: I0c1869b870b296bfb459c2f678bc7afe4d1938bb
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
diff --git a/vim_schema.py b/vim_schema.py
index 7da3a48..1dbd53c 100644
--- a/vim_schema.py
+++ b/vim_schema.py
@@ -73,8 +73,8 @@
"of_controller_nets_with_same_vlan": {"type" : "boolean"},
"of_controller": nameshort_schema, #{"type":"string", "enum":["floodlight", "opendaylight"]},
"of_controller_module": {"type":"string"},
- #"of_user": nameshort_schema,
- #"of_password": nameshort_schema,
+ "of_user": nameshort_schema,
+ "of_password": nameshort_schema,
"test_mode": {"type": "boolean"}, #leave for backward compatibility
"mode": {"type":"string", "enum":["normal", "host only", "OF only", "development", "test"] },
"development_bridge": {"type":"string"},
@@ -126,8 +126,7 @@
"patternProperties": {
"of_*" : {"type": ["string", "integer", "boolean"]}
},
- "required": ['db_host', 'db_user', 'db_passwd', 'db_name',
- 'of_controller_ip', 'of_controller_port', 'of_controller_dpid', 'of_controller'],
+ "required": ['db_host', 'db_user', 'db_passwd', 'db_name'],
"additionalProperties": False
}