X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=RO%2Fosm_ro%2Fopenmano_schemas.py;h=3b077dbe634cf3356f07b679ad94c2673f4ccfc4;hp=8fd2889bc6652e68eefe67052bb4f72e46b408e4;hb=69647795675df7357a9aeddaa5aba15c6f92b065;hpb=57dadcfd0fcf3c8e933602e2fb57f32658d9c845 diff --git a/RO/osm_ro/openmano_schemas.py b/RO/osm_ro/openmano_schemas.py index 8fd2889b..3b077dbe 100644 --- a/RO/osm_ro/openmano_schemas.py +++ b/RO/osm_ro/openmano_schemas.py @@ -120,6 +120,8 @@ config_schema = { "log_level_http": log_level_schema, "log_level_console": log_level_schema, "log_level_ovim": log_level_schema, + "log_level_sdn": log_level_schema, + "log_level_sdnconn": log_level_schema, "log_file_db": path_schema, "log_file_vim": path_schema, "log_file_wim": path_schema, @@ -127,6 +129,8 @@ config_schema = { "log_file_http": path_schema, "log_file_console": path_schema, "log_file_ovim": path_schema, + "log_file_sdn": path_schema, + "log_file_sdnconn": path_schema, "log_socket_host": nameshort_schema, "log_socket_port": port_schema, "log_file": path_schema, @@ -1185,23 +1189,26 @@ instance_scenario_action_schema = { sdn_controller_properties={ "name": name_schema, - "dpid": {"type":"string", "pattern":"^[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){7}$"}, + "dpid": {"type": "string", "pattern": "^[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){7}$"}, + "description": name_schema, "ip": ip_schema, "port": port_schema, - "type": {"type": "string", "enum": ["opendaylight","floodlight","onos"]}, - "version": {"type" : "string", "minLength":1, "maxLength":12}, + "type": nameshort_schema, + "url": name_schema, + "version": {"type": "string", "minLength": 1, "maxLength": 12}, "user": nameshort_schema, - "password": passwd_schema + "password": passwd_schema, + "config": object_schema, } sdn_controller_schema = { - "title":"sdn controller information schema", + "title": "sdn controller information schema", "$schema": "http://json-schema.org/draft-04/schema#", - "type":"object", + "type": "object", "properties":{ "sdn_controller":{ - "type":"object", - "properties":sdn_controller_properties, - "required": ["name", "port", 'ip', 'dpid', 'type'], + "type": "object", + "properties": sdn_controller_properties, + "required": ["name", 'type'], "additionalProperties": False } }, @@ -1210,13 +1217,13 @@ sdn_controller_schema = { } sdn_controller_edit_schema = { - "title":"sdn controller update information schema", + "title": "sdn controller update information schema", "$schema": "http://json-schema.org/draft-04/schema#", - "type":"object", - "properties":{ - "sdn_controller":{ - "type":"object", - "properties":sdn_controller_properties, + "type": "object", + "properties": { + "sdn_controller": { + "type": "object", + "properties": sdn_controller_properties, "additionalProperties": False } }, @@ -1224,7 +1231,7 @@ sdn_controller_edit_schema = { "additionalProperties": False } -sdn_port_mapping_schema = { +sdn_port_mapping_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "title":"sdn port mapping information schema", "type": "object", @@ -1242,6 +1249,8 @@ sdn_port_mapping_schema = { "properties": { "pci": {"OneOf": [null_schema, pci_extended_schema]}, # pci_schema, "switch_port": nameshort_schema, + "switch_id": nameshort_schema, + "switch_dpid": nameshort_schema, "switch_mac": mac_schema }, "required": ["pci"]