1 # -*- coding: utf-8 -*-
4 # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
5 # This file is part of openmano
8 # Licensed under the Apache License, Version 2.0 (the "License"); you may
9 # not use this file except in compliance with the License. You may obtain
10 # a copy of the License at
12 # http://www.apache.org/licenses/LICENSE-2.0
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
17 # License for the specific language governing permissions and limitations
20 # For those usages not covered by the Apache License, Version 2.0 please
21 # contact with: nfvlabs@tid.es
25 JSON schemas used by openmano httpserver.py module to parse the different files and messages sent through the API
27 __author__
="Alfonso Tierno, Gerardo Garcia"
28 __date__
="$09-oct-2014 09:09:48$"
31 patern_name
="^[ -~]+$"
32 passwd_schema
={"type" : "string", "minLength":1, "maxLength":60}
33 nameshort_schema
={"type" : "string", "minLength":1, "maxLength":60, "pattern" : "^[^,;()'\"]+$"}
34 name_schema
={"type" : "string", "minLength":1, "maxLength":255, "pattern" : "^[^,;()'\"]+$"}
35 xml_text_schema
={"type" : "string", "minLength":1, "maxLength":1000, "pattern" : "^[^']+$"}
36 description_schema
={"type" : ["string","null"], "maxLength":255, "pattern" : "^[^'\"]+$"}
37 id_schema_fake
= {"type" : "string", "minLength":2, "maxLength":36 } #"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
38 id_schema
= {"type" : "string", "pattern": "^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$"}
39 pci_schema
={"type":"string", "pattern":"^[0-9a-fA-F]{4}(:[0-9a-fA-F]{2}){2}\.[0-9a-fA-F]$"}
40 http_schema
={"type":"string", "pattern":"^https?://[^'\"=]+$"}
41 bandwidth_schema
={"type":"string", "pattern" : "^[0-9]+ *([MG]bps)?$"}
42 memory_schema
={"type":"string", "pattern" : "^[0-9]+ *([MG]i?[Bb])?$"}
43 integer0_schema
={"type":"integer","minimum":0}
44 integer1_schema
={"type":"integer","minimum":1}
45 path_schema
={"type":"string", "pattern":"^(\.){0,2}(/[^/\"':{}\(\)]+)+$"}
46 vlan_schema
={"type":"integer","minimum":1,"maximum":4095}
47 vlan1000_schema
={"type":"integer","minimum":1000,"maximum":4095}
48 mac_schema
={"type":"string", "pattern":"^[0-9a-fA-F][02468aceACE](:[0-9a-fA-F]{2}){5}$"} #must be unicast LSB bit of MSB byte ==0
49 #mac_schema={"type":"string", "pattern":"^([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}$"}
50 ip_schema
={"type":"string","pattern":"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"}
51 ip_prefix_schema
={"type":"string","pattern":"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/(30|[12]?[0-9])$"}
52 port_schema
={"type":"integer","minimum":1,"maximum":65534}
53 object_schema
={"type":"object"}
54 schema_version_2
={"type":"integer","minimum":2,"maximum":2}
55 #schema_version_string={"type":"string","enum": ["0.1", "2", "0.2", "3", "0.3"]}
56 log_level_schema
={"type":"string", "enum":["DEBUG", "INFO", "WARNING","ERROR","CRITICAL"]}
57 checksum_schema
={"type":"string", "pattern":"^[0-9a-fA-F]{32}$"}
62 "architecture": {"type":"string"},
63 "use_incremental": {"type":"string","enum":["yes","no"]},
65 "os_distro": {"type":"string"},
66 "os_type": {"type":"string"},
67 "os_version": {"type":"string"},
68 "bus": {"type":"string"},
69 "topology": {"type":"string", "enum": ["oneSocket"]}
73 #Schema for the configuration file
75 "title":"configuration response information schema",
76 "$schema": "http://json-schema.org/draft-04/schema#",
79 "http_port": port_schema
,
80 "http_admin_port": port_schema
,
81 "http_host": nameshort_schema
,
82 "vnf_repository": path_schema
,
83 "db_host": nameshort_schema
,
84 "db_user": nameshort_schema
,
85 "db_passwd": {"type":"string"},
86 "db_name": nameshort_schema
,
87 # Next fields will disappear once the MANO API includes appropriate primitives
88 "vim_url": http_schema
,
89 "vim_url_admin": http_schema
,
90 "vim_name": nameshort_schema
,
91 "vim_tenant_name": nameshort_schema
,
92 "mano_tenant_name": nameshort_schema
,
93 "mano_tenant_id": id_schema
,
94 "http_console_proxy": {"type":"boolean"},
95 "http_console_host": nameshort_schema
,
96 "http_console_ports": {
100 {"type":"object", "properties":{"from": port_schema
, "to": port_schema
}, "required": ["from","to"]}
103 "log_level": log_level_schema
,
104 "log_socket_level": log_level_schema
,
105 "log_level_db": log_level_schema
,
106 "log_level_vim": log_level_schema
,
107 "log_level_nfvo": log_level_schema
,
108 "log_level_http": log_level_schema
,
109 "log_file_db": path_schema
,
110 "log_file_vim": path_schema
,
111 "log_file_nfvo": path_schema
,
112 "log_file_http": path_schema
,
113 "log_socket_host": nameshort_schema
,
114 "log_socket_port": port_schema
,
115 "log_file": path_schema
,
117 "required": ['db_host', 'db_user', 'db_passwd', 'db_name'],
118 "additionalProperties": False
122 "title":"tenant information schema",
123 "$schema": "http://json-schema.org/draft-04/schema#",
129 "name": nameshort_schema
,
130 "description": description_schema
,
132 "required": ["name"],
133 "additionalProperties": True
136 "required": ["tenant"],
137 "additionalProperties": False
140 tenant_edit_schema
= {
141 "title":"tenant edit information schema",
142 "$schema": "http://json-schema.org/draft-04/schema#",
149 "description": description_schema
,
151 "additionalProperties": False
154 "required": ["tenant"],
155 "additionalProperties": False
158 datacenter_schema_properties
={
160 "description": description_schema
,
161 "type": nameshort_schema
, #currently "openvim" or "openstack", can be enlarged with plugins
162 "vim_url": description_schema
,
163 "vim_url_admin": description_schema
,
164 "config": { "type":"object" }
167 datacenter_schema
= {
168 "title":"datacenter information schema",
169 "$schema": "http://json-schema.org/draft-04/schema#",
174 "properties":datacenter_schema_properties
,
175 "required": ["name", "vim_url"],
176 "additionalProperties": True
179 "required": ["datacenter"],
180 "additionalProperties": False
184 datacenter_edit_schema
= {
185 "title":"datacenter edit nformation schema",
186 "$schema": "http://json-schema.org/draft-04/schema#",
191 "properties":datacenter_schema_properties
,
192 "additionalProperties": False
195 "required": ["datacenter"],
196 "additionalProperties": False
200 netmap_new_schema
= {
201 "title":"netmap new information schema",
202 "$schema": "http://json-schema.org/draft-04/schema#",
205 "netmap":{ #delete from datacenter
208 "name": name_schema
, #name or uuid of net to change
210 "vim_name": name_schema
213 "additionalProperties": False
216 "required": ["netmap"],
217 "additionalProperties": False
220 netmap_edit_schema
= {
221 "title":"netmap edit information schema",
222 "$schema": "http://json-schema.org/draft-04/schema#",
225 "netmap":{ #delete from datacenter
228 "name": name_schema
, #name or uuid of net to change
231 "additionalProperties": False
234 "required": ["netmap"],
235 "additionalProperties": False
238 datacenter_action_schema
= {
239 "title":"datacenter action information schema",
240 "$schema": "http://json-schema.org/draft-04/schema#",
243 "net-update":{"type":"null",},
247 "net": name_schema
, #name or uuid of net to change
249 "description": description_schema
,
250 "shared": {"type": "boolean"}
253 "additionalProperties": False
258 "net": name_schema
, #name or uuid of net to change
261 "additionalProperties": False
266 "additionalProperties": False
270 datacenter_associate_schema
={
271 "title":"datacenter associate information schema",
272 "$schema": "http://json-schema.org/draft-04/schema#",
278 "vim_tenant": name_schema
,
279 "vim_tenant_name": name_schema
,
280 "vim_username": nameshort_schema
,
281 "vim_password": nameshort_schema
,
282 "config": {"type": "object"}
284 # "required": ["vim_tenant"],
285 "additionalProperties": True
288 "required": ["datacenter"],
289 "additionalProperties": False
293 "title":"DHCP schema",
294 "$schema": "http://json-schema.org/draft-04/schema#",
297 "enabled": {"type": "boolean"},
298 "start-address": ip_schema
,
299 "count": integer1_schema
301 "required": ["enabled", "start-address", "count"],
304 ip_profile_schema
= {
305 "title":"IP profile schema",
306 "$schema": "http://json-schema.org/draft-04/schema#",
309 "ip-version": {"type":"string", "enum":["IPv4","IPv6"]},
310 "subnet-address": ip_prefix_schema
,
311 "gateway-address": ip_schema
,
312 "dns-address": ip_schema
,
318 "title": "Key-pair schema for cloud-init configuration schema",
319 "$schema": "http://json-schema.org/draft-04/schema#",
323 "key": {"type":"string"}
326 "additionalProperties": False
329 cloud_config_user_schema
= {
330 "title": "User schema for cloud-init configuration schema",
331 "$schema": "http://json-schema.org/draft-04/schema#",
334 "name": nameshort_schema
,
335 "user-info": {"type":"string"},
336 #"key-pairs": {"type" : "array", "items": key_pair_schema}
337 "key-pairs": {"type" : "array", "items": {"type":"string"}}
339 "required": ["name"],
340 "additionalProperties": False
343 cloud_config_schema
= {
344 "title": "Cloud-init configuration schema",
345 "$schema": "http://json-schema.org/draft-04/schema#",
348 #"key-pairs": {"type" : "array", "items": key_pair_schema},
349 "key-pairs": {"type" : "array", "items": {"type":"string"}},
350 "users": {"type" : "array", "items": cloud_config_user_schema
}
352 "additionalProperties": False
355 internal_connection_element_schema
= {
359 "local_iface_name": name_schema
363 internal_connection_element_schema_v02
= {
367 "local_iface_name": name_schema
,
368 "ip_address": ip_schema
372 internal_connection_schema
= {
376 "description":description_schema
,
377 "type":{"type":"string", "enum":["bridge","data","ptp"]},
378 "elements": {"type" : "array", "items": internal_connection_element_schema
, "minItems":2}
380 "required": ["name", "type", "elements"],
381 "additionalProperties": False
384 internal_connection_schema_v02
= {
388 "description":description_schema
,
389 "type": {"type": "string", "enum":["e-line", "e-lan"]},
390 "implementation": {"type": "string", "enum":["overlay", "underlay"]},
391 "ip-profile": ip_profile_schema
,
392 "elements": {"type" : "array", "items": internal_connection_element_schema_v02
, "minItems":2}
394 "required": ["name", "type", "implementation", "elements"],
395 "additionalProperties": False
398 external_connection_schema
= {
402 "type":{"type":"string", "enum":["mgmt","bridge","data"]},
404 "local_iface_name": name_schema
,
405 "description":description_schema
407 "required": ["name", "type", "VNFC", "local_iface_name"],
408 "additionalProperties": False
412 external_connection_schema_v02
= {
416 "mgmt": {"type":"boolean"},
417 "type": {"type": "string", "enum":["e-line", "e-lan"]},
418 "implementation": {"type": "string", "enum":["overlay", "underlay"]},
420 "local_iface_name": name_schema
,
421 "description":description_schema
423 "required": ["name", "type", "VNFC", "local_iface_name"],
424 "additionalProperties": False
433 "dedicated":{"type":"string","enum":["yes","no","yes:sriov"]},
434 "bandwidth":bandwidth_schema
,
436 "mac_address": mac_schema
438 "additionalProperties": False,
439 "required": ["name","dedicated", "bandwidth"]
443 bridge_interfaces_schema
={
449 "bandwidth":bandwidth_schema
,
451 "mac_address": mac_schema
,
452 "model": {"type":"string", "enum":["virtio","e1000","ne2k_pci","pcnet","rtl8139"]}
454 "additionalProperties": False,
464 "type":{"type":"string", "enum":["disk","cdrom","xml"] },
465 "image": path_schema
,
466 "image name": name_schema
,
467 "image checksum": checksum_schema
,
468 "image metadata": metadata_schema
,
470 "xml":xml_text_schema
,
472 "additionalProperties": False,
481 "memory":integer1_schema
,
482 "cores":integer1_schema
,
483 "paired-threads":integer1_schema
,
484 "threads":integer1_schema
,
485 "cores-id":{"type":"array","items":integer0_schema
},
486 "paired-threads-id":{"type":"array","items":{"type":"array","minItems":2,"maxItems":2,"items":integer0_schema
}},
487 "threads-id":{"type":"array","items":integer0_schema
},
488 "interfaces":interfaces_schema
490 "additionalProperties": False,
491 #"required": ["memory"]
498 "description": description_schema
,
499 "VNFC image": {"oneOf": [path_schema
, http_schema
]},
500 "image name": name_schema
,
501 "image checksum": checksum_schema
,
502 "image metadata": metadata_schema
,
503 #"cloud-config": cloud_config_schema, #common for all vnfs in the scenario
507 "model":description_schema
,
508 "features":{"type":"array","items":nameshort_schema
}
510 "required": ["model"],
511 "additionalProperties": False
516 "type":nameshort_schema
,
517 "version":description_schema
520 "ram":integer0_schema
,
521 "vcpus":integer0_schema
,
522 "disk": integer1_schema
,
527 "bridge-ifaces": bridge_interfaces_schema
,
528 "devices": devices_schema
531 "required": ["name"],
533 {"required": ["VNFC image"]},
534 {"required": ["image name"]}
536 "additionalProperties": False
540 "title":"vnfd information schema v0.1",
541 "$schema": "http://json-schema.org/draft-04/schema#",
548 "description": description_schema
,
549 "class": nameshort_schema
,
550 "public": {"type" : "boolean"},
551 "physical": {"type" : "boolean"},
552 "tenant_id": id_schema
, #only valid for admin
553 "external-connections": {"type" : "array", "items": external_connection_schema
, "minItems":1},
554 "internal-connections": {"type" : "array", "items": internal_connection_schema
, "minItems":1},
555 "VNFC":{"type" : "array", "items": vnfc_schema
, "minItems":1}
557 "required": ["name","external-connections"],
558 "additionalProperties": True
562 "additionalProperties": False
565 #VNFD schema for OSM R1
567 "title":"vnfd information schema v0.2",
568 "$schema": "http://json-schema.org/draft-04/schema#",
571 "schema_version": {"type": "string", "enum": ["0.2"]},
576 "description": description_schema
,
577 "class": nameshort_schema
,
578 "public": {"type" : "boolean"},
579 "physical": {"type" : "boolean"},
580 "tenant_id": id_schema
, #only valid for admin
581 "external-connections": {"type" : "array", "items": external_connection_schema
, "minItems":1},
582 "internal-connections": {"type" : "array", "items": internal_connection_schema_v02
, "minItems":1},
583 # "cloud-config": cloud_config_schema, #common for all vnfcs
584 "VNFC":{"type" : "array", "items": vnfc_schema
, "minItems":1}
586 "required": ["name"],
587 "additionalProperties": True
590 "required": ["vnf", "schema_version"],
591 "additionalProperties": False
594 #vnfd_schema = vnfd_schema_v01
596 # "title":"vnfd information schema v0.2",
597 # "$schema": "http://json-schema.org/draft-04/schema#",
598 # "oneOf": [vnfd_schema_v01, vnfd_schema_v02]
602 "title":"graphical scenario descriptor information schema",
603 "$schema": "http://json-schema.org/draft-04/schema#",
606 "x": integer0_schema
,
607 "y": integer0_schema
,
611 "left": {"type":"array"},
612 "right": {"type":"array"},
613 "bottom": {"type":"array"},
617 "required": ["x","y"]
621 "title":"network scenario descriptor information schema v0.1",
622 "$schema": "http://json-schema.org/draft-04/schema#",
626 "description": description_schema
,
627 "tenant_id": id_schema
, #only valid for admin
628 "public": {"type": "boolean"},
634 "patternProperties":{
638 "type":{"type":"string", "enum":["VNF", "other_network", "network", "external_network"]},
640 "graph": graph_schema
,
642 "patternProperties":{
643 "^(VNF )?model$": {"type": "string"}
651 "patternProperties":{
655 "nodes":{"oneOf":[{"type":"object", "minProperties":2}, {"type":"array", "minLength":1}]},
656 "type": {"type": "string", "enum":["link", "external_network", "dataplane_net", "bridge_net"]},
657 "graph": graph_schema
659 "required": ["nodes"]
664 "required": ["nodes"],
665 "additionalProperties": False
668 "required": ["name","topology"],
669 "additionalProperties": False
673 "title":"network scenario descriptor information schema v0.2",
674 "$schema": "http://json-schema.org/draft-04/schema#",
677 "schema_version": schema_version_2
,
682 "description": description_schema
,
683 "tenant_id": id_schema
, #only valid for admin
684 "public": {"type": "boolean"},
687 "patternProperties":{
692 "graph": graph_schema
,
693 "vnf_name": name_schema
,
701 "patternProperties":{
705 "interfaces":{"type":"array", "minLength":1},
706 "type": {"type": "string", "enum":["dataplane", "bridge"]},
707 "external" : {"type": "boolean"},
708 "graph": graph_schema
710 "required": ["interfaces"]
716 "required": ["vnfs", "name"],
717 "additionalProperties": False
720 "required": ["scenario","schema_version"],
721 "additionalProperties": False
724 #NSD schema for OSM R1
726 "title":"network scenario descriptor information schema v0.3",
727 "$schema": "http://json-schema.org/draft-04/schema#",
730 "schema_version": {"type": "string", "enum": ["0.3"]},
735 "description": description_schema
,
736 "tenant_id": id_schema
, #only valid for admin
737 "public": {"type": "boolean"},
738 "cloud-config": cloud_config_schema
, #common for all vnfs in the scenario
739 #"datacenter": name_schema,
742 "patternProperties":{
747 "graph": graph_schema
,
748 "vnf_name": name_schema
,
749 #"cloud-config": cloud_config_schema, #particular for a vnf
750 #"datacenter": name_schema,
751 "internal-connections": {
753 "patternProperties": {
757 "ip-profile": ip_profile_schema
,
764 "local_iface_name": name_schema
,
765 "ip_address": ip_schema
767 "required": ["VNFC", "local_iface_name"],
781 "patternProperties":{
792 "vnf_interface": name_schema
,
793 "ip_address": ip_schema
795 "required": ["vnf", "vnf_interface"],
798 "type": {"type": "string", "enum":["e-line", "e-lan"]},
799 "implementation": {"type": "string", "enum":["overlay", "underlay"]},
800 "external" : {"type": "boolean"},
801 "graph": graph_schema
,
802 "ip-profile": ip_profile_schema
804 "required": ["interfaces"]
810 "required": ["vnfs", "networks","name"],
811 "additionalProperties": False
814 "required": ["scenario","schema_version"],
815 "additionalProperties": False
818 #scenario_new_schema = {
819 # "title":"new scenario information schema",
820 # "$schema": "http://json-schema.org/draft-04/schema#",
821 # #"oneOf": [nsd_schema_v01, nsd_schema_v02]
822 # "oneOf": [nsd_schema_v01]
825 scenario_edit_schema
= {
826 "title":"edit scenario information schema",
827 "$schema": "http://json-schema.org/draft-04/schema#",
831 "description": description_schema
,
837 "patternProperties":{
838 "^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$": {
844 "x": integer0_schema
,
845 "y": integer0_schema
,
846 "ifaces":{ "type": "object"}
849 "description": description_schema
,
856 "required": ["nodes"],
857 "additionalProperties": False
860 "additionalProperties": False
863 scenario_action_schema
= {
864 "title":"scenario action information schema",
865 "$schema": "http://json-schema.org/draft-04/schema#",
871 "instance_name":name_schema
,
872 "description":description_schema
,
873 "datacenter": {"type": "string"}
875 "required": ["instance_name"]
880 "instance_name":name_schema
,
881 "description":description_schema
,
882 "datacenter": {"type": "string"}
884 "required": ["instance_name"]
889 "instance_name":name_schema
,
890 "description":description_schema
,
891 "datacenter": {"type": "string"}
893 "required": ["instance_name"]
898 "instance_name":name_schema
,
899 "description":description_schema
,
900 "datacenter": {"type": "string"}
902 "required": ["instance_name"]
907 "additionalProperties": False
910 instance_scenario_create_schema_v01
= {
911 "title":"instance scenario create information schema v0.1",
912 "$schema": "http://json-schema.org/draft-04/schema#",
915 "schema_version": {"type": "string", "enum": ["0.1"]},
920 "description":description_schema
,
921 "datacenter": name_schema
,
922 "scenario" : name_schema
, #can be an UUID or name
923 "action":{"enum": ["deploy","reserve","verify" ]},
924 "connect_mgmt_interfaces": {"oneOf": [{"type":"boolean"}, {"type":"object"}]},# can be true or a dict with datacenter: net_name
925 "cloud-config": cloud_config_schema
, #common to all vnfs in the instance scenario
926 "vnfs":{ #mapping from scenario to datacenter
928 "patternProperties":{
932 "name": name_schema
, #override vnf name
933 "datacenter": name_schema
,
934 #"metadata": {"type": "object"},
935 #"user_data": {"type": "string"}
936 #"cloud-config": cloud_config_schema, #particular for a vnf
937 "external-connections": {
939 "patternProperties": {
943 "vim-network-name": name_schema
,
944 "ip_address": ip_schema
949 "internal-connections": {
951 "patternProperties": {
955 "ip-profile": ip_profile_schema
,
962 "local_iface_name": name_schema
,
963 "ip_address": ip_schema
965 "required": ["VNFC", "local_iface_name"],
976 "networks":{ #mapping from scenario to datacenter
978 "patternProperties":{
988 "ip_address": ip_schema
,
989 "datacenter": name_schema
,
990 "vim-network-name": name_schema
992 "patternProperties":{
993 ".": {"type": "string"}
997 "ip-profile": ip_profile_schema
,
998 #if the network connects VNFs deployed at different sites, you must specify one entry per site that this network connect to
1005 # By default for an scenario 'external' network openmano looks for an existing VIM network to map this external scenario network,
1006 # for other networks openamno creates at VIM
1007 # Use netmap-create to force to create an external scenario network
1008 "netmap-create": {"oneOf":[name_schema
,{"type": "null"}]}, #datacenter network to use. Null if must be created as an internal net
1009 #netmap-use: Indicates an existing VIM network that must be used for this scenario network.
1010 #Can use both the VIM network name (if it is not ambiguous) or the VIM net UUID
1011 #If both 'netmap-create' and 'netmap-use'are supplied, netmap-use precedes, but if fails openmano follows the netmap-create
1012 #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)
1013 "netmap-use": name_schema
, #
1014 "vim-network-name": name_schema
, #override network name
1015 #"ip-profile": ip_profile_schema,
1016 "datacenter": name_schema
,
1028 "additionalProperties": False,
1029 "required": ["name"]
1032 "required": ["instance"],
1033 "additionalProperties": False
1036 instance_scenario_action_schema
= {
1037 "title":"instance scenario action information schema",
1038 "$schema": "http://json-schema.org/draft-04/schema#",
1041 "start":{"type": "null"},
1042 "pause":{"type": "null"},
1043 "resume":{"type": "null"},
1044 "shutoff":{"type": "null"},
1045 "shutdown":{"type": "null"},
1046 "forceOff":{"type": "null"},
1047 "rebuild":{"type": "null"},
1049 "type": ["object","null"],
1051 "console": {"type": ["string", "null"], "enum": ["novnc", "xvpvnc", "rdp-html5", "spice-html5", None]},
1052 "vnfs":{"type": "array", "items":{"type":"string"}},
1053 "vms":{"type": "array", "items":{"type":"string"}}
1056 #"maxProperties": 1,
1057 "additionalProperties": False