X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=RO%2Fosm_ro%2Fwim%2Fschemas.py;h=f20d418f4bb9398692b5227d01f663ab311abf63;hp=101bcb1d6596e988827d64401719a1750d5c27d4;hb=08cfe043bcce0c20728b09865f192f9c61d864e7;hpb=7d782eff123e5b44d41437377ccca66ad1e8b21b diff --git a/RO/osm_ro/wim/schemas.py b/RO/osm_ro/wim/schemas.py index 101bcb1d..f20d418f 100644 --- a/RO/osm_ro/wim/schemas.py +++ b/RO/osm_ro/wim/schemas.py @@ -39,7 +39,7 @@ from ..openmano_schemas import ( ) # WIM ------------------------------------------------------------------------- -wim_types = ["tapi", "onos", "odl", "dynpac", "fake"] +wim_types = ["tapi", "onos", "onos_vpls", "odl", "dynpac", "dummy"] dpid_type = { "type": "string", @@ -69,36 +69,21 @@ wim_port_mapping_desc = { "items": { "type": "object", "properties": { - "pop_switch_dpid": dpid_type, - "pop_switch_port": port_type, - "wan_service_endpoint_id": name_schema, - "wan_service_mapping_info": { + "device_id": nameshort_schema, + "device_interface_id": nameshort_schema, + "service_endpoint_id": name_schema, + "switch_dpid": dpid_type, + "switch_port": port_type, + "service_mapping_info": { "type": "object", "properties": { "mapping_type": name_schema, - "wan_switch_dpid": dpid_type, - "wan_switch_port": port_type }, "additionalProperties": True, "required": ["mapping_type"] } }, - "anyOf": [ - { - "required": [ - "pop_switch_dpid", - "pop_switch_port", - "wan_service_endpoint_id" - ] - }, - { - "required": [ - "pop_switch_dpid", - "pop_switch_port", - "wan_service_mapping_info" - ] - } - ] + "required": ["service_endpoint_id"] } } }, @@ -111,7 +96,7 @@ wim_schema_properties = { "description": description_schema, "type": { "type": "string", - "enum": ["tapi", "onos", "odl", "dynpac", "fake"] + # "enum": ["tapi", "onos", "odl", "dynpac", "dummy"] }, "wim_url": description_schema, "config": {