X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=RO%2Fosm_ro%2Fwim%2Fschemas.py;h=a887b65ae9f2ac6b447ed03b4fb7272978f22f1d;hb=refs%2Fchanges%2F58%2F8258%2F6;hp=101bcb1d6596e988827d64401719a1750d5c27d4;hpb=7d782eff123e5b44d41437377ccca66ad1e8b21b;p=osm%2FRO.git diff --git a/RO/osm_ro/wim/schemas.py b/RO/osm_ro/wim/schemas.py index 101bcb1d..a887b65a 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", "fake"] 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", "fake"] }, "wim_url": description_schema, "config": {