X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=vim_schema.py;h=7da3a487a9aae9ef8ec427ead84e65aeadcdd55a;hb=9e194594e2dbc4419e13e4c89ddc0e5d639723fd;hp=6d508a62879bd435c5ccc797b61c3e2d3b9a1cd3;hpb=e9317ff999987c09369b9eab6bcd044ced8f1048;p=osm%2Fopenvim.git diff --git a/vim_schema.py b/vim_schema.py index 6d508a6..7da3a48 100644 --- a/vim_schema.py +++ b/vim_schema.py @@ -147,8 +147,6 @@ metadata_schema={ } } - - tenant_new_schema = { "title":"tenant creation information schema", "$schema": "http://json-schema.org/draft-04/schema#", @@ -613,6 +611,7 @@ network_new_schema = { "required": ["network"], "additionalProperties": False } + network_update_schema = { "title":"network update information schema", "$schema": "http://json-schema.org/draft-04/schema#", @@ -715,3 +714,27 @@ hostinfo_schema = { }, "required": ["iface_names"] } + +openflow_controller_schema = { + "title": "network creation information schema", + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "ofc": { + "type": "object", + "properties": { + "name": name_schema, + "dpid": nameshort_schema, + "ip": nameshort_schema, + "port": port_schema, + "type": nameshort_schema, + "version": nametiny_schema, + "user": nameshort_schema, + "password": nameshort_schema + }, + "required": ["dpid", "type", "ip", "port", "name"] + } + }, + "required": ["ofc"], + "additionalProperties": False +} \ No newline at end of file