X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_ro%2Fopenmano_schemas.py;h=80795b5a7dc35052b30876834e1acdb32bc5b578;hb=a05b65a809f3680d38f162b1e980e4258b0e37c2;hp=d10f8621603702e2b7eebd5eb7ecc53f5d75767f;hpb=f2813e8e41b842c0f7ad2a2fc95a1195e18cded8;p=osm%2FRO.git diff --git a/osm_ro/openmano_schemas.py b/osm_ro/openmano_schemas.py index d10f8621..80795b5a 100644 --- a/osm_ro/openmano_schemas.py +++ b/osm_ro/openmano_schemas.py @@ -1056,6 +1056,7 @@ instance_scenario_create_schema_v01 = { "type": "object", "properties": { "vim-network-name": name_schema, + "vim-network-id": name_schema, "ip-profile": ip_profile_schema, "name": name_schema, } @@ -1080,7 +1081,8 @@ instance_scenario_create_schema_v01 = { "properties":{ "ip_address": ip_schema, "datacenter": name_schema, - "vim-network-name": name_schema + "vim-network-name": name_schema, + "vim-network-id": name_schema }, "patternProperties":{ ".": {"type": "string"} @@ -1105,6 +1107,7 @@ instance_scenario_create_schema_v01 = { #In oder words, it is the same as 'try to map to the VIM network (netmap-use) if exist, and if not create the network (netmap-create) "netmap-use": name_schema, # "vim-network-name": name_schema, #override network name + "vim-network-id": name_schema, #"ip-profile": ip_profile_schema, "datacenter": name_schema, } @@ -1221,7 +1224,7 @@ sdn_port_mapping_schema = { "items": { "type": "object", "properties": { - "pci": pci_extended_schema, # pci_schema, + "pci": {"OneOf": [{"type": "null"}, pci_extended_schema]}, # pci_schema, "switch_port": nameshort_schema, "switch_mac": mac_schema },