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": id_schema
,
279 "vim_tenant_name": nameshort_schema
,
280 "vim_username": nameshort_schema
,
281 "vim_password": nameshort_schema
,
283 # "required": ["vim_tenant"],
284 "additionalProperties": True
287 "required": ["datacenter"],
288 "additionalProperties": False
292 "title":"DHCP schema",
293 "$schema": "http://json-schema.org/draft-04/schema#",
296 "enabled": {"type": "boolean"},
297 "start-address": ip_schema
,
298 "count": integer1_schema
300 "required": ["enabled", "start-address", "count"],
303 ip_profile_schema
= {
304 "title":"IP profile schema",
305 "$schema": "http://json-schema.org/draft-04/schema#",
308 "ip-version": {"type":"string", "enum":["IPv4","IPv6"]},
309 "subnet-address": ip_prefix_schema
,
310 "gateway-address": ip_schema
,
311 "dns-address": ip_schema
,
317 "title": "Key-pair schema for cloud-init configuration schema",
318 "$schema": "http://json-schema.org/draft-04/schema#",
322 "key": {"type":"string"}
325 "additionalProperties": False
328 cloud_config_user_schema
= {
329 "title": "User schema for cloud-init configuration schema",
330 "$schema": "http://json-schema.org/draft-04/schema#",
333 "name": nameshort_schema
,
334 "user-info": {"type":"string"},
335 #"key-pairs": {"type" : "array", "items": key_pair_schema}
336 "key-pairs": {"type" : "array", "items": {"type":"string"}}
338 "required": ["name"],
339 "additionalProperties": False
342 cloud_config_schema
= {
343 "title": "Cloud-init configuration schema",
344 "$schema": "http://json-schema.org/draft-04/schema#",
347 #"key-pairs": {"type" : "array", "items": key_pair_schema},
348 "key-pairs": {"type" : "array", "items": {"type":"string"}},
349 "users": {"type" : "array", "items": cloud_config_user_schema
}
351 "additionalProperties": False
354 internal_connection_element_schema
= {
358 "local_iface_name": name_schema
362 internal_connection_element_schema_v02
= {
366 "local_iface_name": name_schema
,
367 "ip_address": ip_schema
371 internal_connection_schema
= {
375 "description":description_schema
,
376 "type":{"type":"string", "enum":["bridge","data","ptp"]},
377 "elements": {"type" : "array", "items": internal_connection_element_schema
, "minItems":2}
379 "required": ["name", "type", "elements"],
380 "additionalProperties": False
383 internal_connection_schema_v02
= {
387 "description":description_schema
,
388 "type": {"type": "string", "enum":["e-line", "e-lan"]},
389 "implementation": {"type": "string", "enum":["overlay", "underlay"]},
390 "ip-profile": ip_profile_schema
,
391 "elements": {"type" : "array", "items": internal_connection_element_schema_v02
, "minItems":2}
393 "required": ["name", "type", "implementation", "elements"],
394 "additionalProperties": False
397 external_connection_schema
= {
401 "type":{"type":"string", "enum":["mgmt","bridge","data"]},
403 "local_iface_name": name_schema
,
404 "description":description_schema
406 "required": ["name", "type", "VNFC", "local_iface_name"],
407 "additionalProperties": False
411 external_connection_schema_v02
= {
415 "mgmt": {"type":"boolean"},
416 "type": {"type": "string", "enum":["e-line", "e-lan"]},
417 "implementation": {"type": "string", "enum":["overlay", "underlay"]},
419 "local_iface_name": name_schema
,
420 "description":description_schema
422 "required": ["name", "type", "VNFC", "local_iface_name"],
423 "additionalProperties": False
432 "dedicated":{"type":"string","enum":["yes","no","yes:sriov"]},
433 "bandwidth":bandwidth_schema
,
435 "mac_address": mac_schema
437 "additionalProperties": False,
438 "required": ["name","dedicated", "bandwidth"]
442 bridge_interfaces_schema
={
448 "bandwidth":bandwidth_schema
,
450 "mac_address": mac_schema
,
451 "model": {"type":"string", "enum":["virtio","e1000","ne2k_pci","pcnet","rtl8139"]}
453 "additionalProperties": False,
463 "type":{"type":"string", "enum":["disk","cdrom","xml"] },
464 "image": path_schema
,
465 "image name": name_schema
,
466 "image checksum": checksum_schema
,
467 "image metadata": metadata_schema
,
469 "xml":xml_text_schema
,
471 "additionalProperties": False,
480 "memory":integer1_schema
,
481 "cores":integer1_schema
,
482 "paired-threads":integer1_schema
,
483 "threads":integer1_schema
,
484 "cores-id":{"type":"array","items":integer0_schema
},
485 "paired-threads-id":{"type":"array","items":{"type":"array","minItems":2,"maxItems":2,"items":integer0_schema
}},
486 "threads-id":{"type":"array","items":integer0_schema
},
487 "interfaces":interfaces_schema
489 "additionalProperties": False,
490 #"required": ["memory"]
497 "description": description_schema
,
498 "VNFC image": {"oneOf": [path_schema
, http_schema
]},
499 "image name": name_schema
,
500 "image checksum": checksum_schema
,
501 "image metadata": metadata_schema
,
502 #"cloud-config": cloud_config_schema, #common for all vnfs in the scenario
506 "model":description_schema
,
507 "features":{"type":"array","items":nameshort_schema
}
509 "required": ["model"],
510 "additionalProperties": False
515 "type":nameshort_schema
,
516 "version":description_schema
519 "ram":integer0_schema
,
520 "vcpus":integer0_schema
,
521 "disk": integer1_schema
,
526 "bridge-ifaces": bridge_interfaces_schema
,
527 "devices": devices_schema
530 "required": ["name"],
532 {"required": ["VNFC image"]},
533 {"required": ["image name"]}
535 "additionalProperties": False
539 "title":"vnfd information schema v0.1",
540 "$schema": "http://json-schema.org/draft-04/schema#",
547 "description": description_schema
,
548 "class": nameshort_schema
,
549 "public": {"type" : "boolean"},
550 "physical": {"type" : "boolean"},
551 "tenant_id": id_schema
, #only valid for admin
552 "external-connections": {"type" : "array", "items": external_connection_schema
, "minItems":1},
553 "internal-connections": {"type" : "array", "items": internal_connection_schema
, "minItems":1},
554 "VNFC":{"type" : "array", "items": vnfc_schema
, "minItems":1}
556 "required": ["name","external-connections"],
557 "additionalProperties": True
561 "additionalProperties": False
564 #VNFD schema for OSM R1
566 "title":"vnfd information schema v0.2",
567 "$schema": "http://json-schema.org/draft-04/schema#",
570 "schema_version": {"type": "string", "enum": ["0.2"]},
575 "description": description_schema
,
576 "class": nameshort_schema
,
577 "public": {"type" : "boolean"},
578 "physical": {"type" : "boolean"},
579 "tenant_id": id_schema
, #only valid for admin
580 "external-connections": {"type" : "array", "items": external_connection_schema
, "minItems":1},
581 "internal-connections": {"type" : "array", "items": internal_connection_schema_v02
, "minItems":1},
582 # "cloud-config": cloud_config_schema, #common for all vnfcs
583 "VNFC":{"type" : "array", "items": vnfc_schema
, "minItems":1}
585 "required": ["name"],
586 "additionalProperties": True
589 "required": ["vnf", "schema_version"],
590 "additionalProperties": False
593 #vnfd_schema = vnfd_schema_v01
595 # "title":"vnfd information schema v0.2",
596 # "$schema": "http://json-schema.org/draft-04/schema#",
597 # "oneOf": [vnfd_schema_v01, vnfd_schema_v02]
601 "title":"graphical scenario descriptor information schema",
602 "$schema": "http://json-schema.org/draft-04/schema#",
605 "x": integer0_schema
,
606 "y": integer0_schema
,
610 "left": {"type":"array"},
611 "right": {"type":"array"},
612 "bottom": {"type":"array"},
616 "required": ["x","y"]
620 "title":"network scenario descriptor information schema v0.1",
621 "$schema": "http://json-schema.org/draft-04/schema#",
625 "description": description_schema
,
626 "tenant_id": id_schema
, #only valid for admin
627 "public": {"type": "boolean"},
633 "patternProperties":{
637 "type":{"type":"string", "enum":["VNF", "other_network", "network", "external_network"]},
639 "graph": graph_schema
,
641 "patternProperties":{
642 "^(VNF )?model$": {"type": "string"}
650 "patternProperties":{
654 "nodes":{"oneOf":[{"type":"object", "minProperties":2}, {"type":"array", "minLength":1}]},
655 "type": {"type": "string", "enum":["link", "external_network", "dataplane_net", "bridge_net"]},
656 "graph": graph_schema
658 "required": ["nodes"]
663 "required": ["nodes"],
664 "additionalProperties": False
667 "required": ["name","topology"],
668 "additionalProperties": False
672 "title":"network scenario descriptor information schema v0.2",
673 "$schema": "http://json-schema.org/draft-04/schema#",
676 "schema_version": schema_version_2
,
681 "description": description_schema
,
682 "tenant_id": id_schema
, #only valid for admin
683 "public": {"type": "boolean"},
686 "patternProperties":{
691 "graph": graph_schema
,
692 "vnf_name": name_schema
,
700 "patternProperties":{
704 "interfaces":{"type":"array", "minLength":1},
705 "type": {"type": "string", "enum":["dataplane", "bridge"]},
706 "external" : {"type": "boolean"},
707 "graph": graph_schema
709 "required": ["interfaces"]
715 "required": ["vnfs", "name"],
716 "additionalProperties": False
719 "required": ["scenario","schema_version"],
720 "additionalProperties": False
723 #NSD schema for OSM R1
725 "title":"network scenario descriptor information schema v0.3",
726 "$schema": "http://json-schema.org/draft-04/schema#",
729 "schema_version": {"type": "string", "enum": ["0.3"]},
734 "description": description_schema
,
735 "tenant_id": id_schema
, #only valid for admin
736 "public": {"type": "boolean"},
737 "cloud-config": cloud_config_schema
, #common for all vnfs in the scenario
738 #"datacenter": name_schema,
741 "patternProperties":{
746 "graph": graph_schema
,
747 "vnf_name": name_schema
,
748 #"cloud-config": cloud_config_schema, #particular for a vnf
749 #"datacenter": name_schema,
750 "internal-connections": {
752 "patternProperties": {
756 "ip-profile": ip_profile_schema
,
763 "local_iface_name": name_schema
,
764 "ip_address": ip_schema
766 "required": ["VNFC", "local_iface_name"],
780 "patternProperties":{
791 "vnf_interface": name_schema
,
792 "ip_address": ip_schema
794 "required": ["vnf", "vnf_interface"],
797 "type": {"type": "string", "enum":["e-line", "e-lan"]},
798 "implementation": {"type": "string", "enum":["overlay", "underlay"]},
799 "external" : {"type": "boolean"},
800 "graph": graph_schema
,
801 "ip-profile": ip_profile_schema
803 "required": ["interfaces"]
809 "required": ["vnfs", "networks","name"],
810 "additionalProperties": False
813 "required": ["scenario","schema_version"],
814 "additionalProperties": False
817 #scenario_new_schema = {
818 # "title":"new scenario information schema",
819 # "$schema": "http://json-schema.org/draft-04/schema#",
820 # #"oneOf": [nsd_schema_v01, nsd_schema_v02]
821 # "oneOf": [nsd_schema_v01]
824 scenario_edit_schema
= {
825 "title":"edit scenario information schema",
826 "$schema": "http://json-schema.org/draft-04/schema#",
830 "description": description_schema
,
836 "patternProperties":{
837 "^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$": {
843 "x": integer0_schema
,
844 "y": integer0_schema
,
845 "ifaces":{ "type": "object"}
848 "description": description_schema
,
855 "required": ["nodes"],
856 "additionalProperties": False
859 "additionalProperties": False
862 scenario_action_schema
= {
863 "title":"scenario action information schema",
864 "$schema": "http://json-schema.org/draft-04/schema#",
870 "instance_name":name_schema
,
871 "description":description_schema
,
872 "datacenter": {"type": "string"}
874 "required": ["instance_name"]
879 "instance_name":name_schema
,
880 "description":description_schema
,
881 "datacenter": {"type": "string"}
883 "required": ["instance_name"]
888 "instance_name":name_schema
,
889 "description":description_schema
,
890 "datacenter": {"type": "string"}
892 "required": ["instance_name"]
897 "instance_name":name_schema
,
898 "description":description_schema
,
899 "datacenter": {"type": "string"}
901 "required": ["instance_name"]
906 "additionalProperties": False
909 instance_scenario_create_schema_v01
= {
910 "title":"instance scenario create information schema v0.1",
911 "$schema": "http://json-schema.org/draft-04/schema#",
914 "schema_version": {"type": "string", "enum": ["0.1"]},
919 "description":description_schema
,
920 "datacenter": name_schema
,
921 "scenario" : name_schema
, #can be an UUID or name
922 "action":{"enum": ["deploy","reserve","verify" ]},
923 "connect_mgmt_interfaces": {"oneOf": [{"type":"boolean"}, {"type":"object"}]},# can be true or a dict with datacenter: net_name
924 "cloud-config": cloud_config_schema
, #common to all vnfs in the instance scenario
925 "vnfs":{ #mapping from scenario to datacenter
927 "patternProperties":{
931 "name": name_schema
, #override vnf name
932 "datacenter": name_schema
,
933 #"metadata": {"type": "object"},
934 #"user_data": {"type": "string"}
935 #"cloud-config": cloud_config_schema, #particular for a vnf
936 "external-connections": {
938 "patternProperties": {
942 "vim-network-name": name_schema
,
943 "ip_address": ip_schema
948 "internal-connections": {
950 "patternProperties": {
954 "ip-profile": ip_profile_schema
,
961 "local_iface_name": name_schema
,
962 "ip_address": ip_schema
964 "required": ["VNFC", "local_iface_name"],
975 "networks":{ #mapping from scenario to datacenter
977 "patternProperties":{
987 "ip_address": ip_schema
,
988 "datacenter": name_schema
,
989 "vim-network-name": name_schema
991 "patternProperties":{
992 ".": {"type": "string"}
996 "ip-profile": ip_profile_schema
,
997 #if the network connects VNFs deployed at different sites, you must specify one entry per site that this network connect to
1004 # By default for an scenario 'external' network openmano looks for an existing VIM network to map this external scenario network,
1005 # for other networks openamno creates at VIM
1006 # Use netmap-create to force to create an external scenario network
1007 "netmap-create": {"oneOf":[name_schema
,{"type": "null"}]}, #datacenter network to use. Null if must be created as an internal net
1008 #netmap-use: Indicates an existing VIM network that must be used for this scenario network.
1009 #Can use both the VIM network name (if it is not ambiguous) or the VIM net UUID
1010 #If both 'netmap-create' and 'netmap-use'are supplied, netmap-use precedes, but if fails openmano follows the netmap-create
1011 #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)
1012 "netmap-use": name_schema
, #
1013 "vim-network-name": name_schema
, #override network name
1014 #"ip-profile": ip_profile_schema,
1015 "datacenter": name_schema
,
1027 "additionalProperties": False,
1028 "required": ["name"]
1031 "required": ["instance"],
1032 "additionalProperties": False
1035 instance_scenario_action_schema
= {
1036 "title":"instance scenario action information schema",
1037 "$schema": "http://json-schema.org/draft-04/schema#",
1040 "start":{"type": "null"},
1041 "pause":{"type": "null"},
1042 "resume":{"type": "null"},
1043 "shutoff":{"type": "null"},
1044 "shutdown":{"type": "null"},
1045 "forceOff":{"type": "null"},
1046 "rebuild":{"type": "null"},
1048 "type": ["object","null"],
1050 "console": {"type": ["string", "null"], "enum": ["novnc", "xvpvnc", "rdp-html5", "spice-html5", None]},
1051 "vnfs":{"type": "array", "items":{"type":"string"}},
1052 "vms":{"type": "array", "items":{"type":"string"}}
1055 #"maxProperties": 1,
1056 "additionalProperties": False