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, Pablo Montes"
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}$"}
58 size_schema
={"type":"integer","minimum":1,"maximum":100}
63 "architecture": {"type":"string"},
64 "use_incremental": {"type":"string","enum":["yes","no"]},
66 "os_distro": {"type":"string"},
67 "os_type": {"type":"string"},
68 "os_version": {"type":"string"},
69 "bus": {"type":"string"},
70 "topology": {"type":"string", "enum": ["oneSocket"]}
74 #Schema for the configuration file
76 "title":"configuration response information schema",
77 "$schema": "http://json-schema.org/draft-04/schema#",
80 "http_port": port_schema
,
81 "http_admin_port": port_schema
,
82 "http_host": nameshort_schema
,
83 "vnf_repository": path_schema
,
84 "db_host": nameshort_schema
,
85 "db_user": nameshort_schema
,
86 "db_passwd": {"type":"string"},
87 "db_name": nameshort_schema
,
88 # Next fields will disappear once the MANO API includes appropriate primitives
89 "vim_url": http_schema
,
90 "vim_url_admin": http_schema
,
91 "vim_name": nameshort_schema
,
92 "vim_tenant_name": nameshort_schema
,
93 "mano_tenant_name": nameshort_schema
,
94 "mano_tenant_id": id_schema
,
95 "http_console_proxy": {"type":"boolean"},
96 "http_console_host": nameshort_schema
,
97 "http_console_ports": {
101 {"type":"object", "properties":{"from": port_schema
, "to": port_schema
}, "required": ["from","to"]}
104 "log_level": log_level_schema
,
105 "log_socket_level": log_level_schema
,
106 "log_level_db": log_level_schema
,
107 "log_level_vim": log_level_schema
,
108 "log_level_nfvo": log_level_schema
,
109 "log_level_http": log_level_schema
,
110 "log_file_db": path_schema
,
111 "log_file_vim": path_schema
,
112 "log_file_nfvo": path_schema
,
113 "log_file_http": path_schema
,
114 "log_socket_host": nameshort_schema
,
115 "log_socket_port": port_schema
,
116 "log_file": path_schema
,
118 "required": ['db_host', 'db_user', 'db_passwd', 'db_name'],
119 "additionalProperties": False
123 "title":"tenant information schema",
124 "$schema": "http://json-schema.org/draft-04/schema#",
130 "name": nameshort_schema
,
131 "description": description_schema
,
133 "required": ["name"],
134 "additionalProperties": True
137 "required": ["tenant"],
138 "additionalProperties": False
141 tenant_edit_schema
= {
142 "title":"tenant edit information schema",
143 "$schema": "http://json-schema.org/draft-04/schema#",
150 "description": description_schema
,
152 "additionalProperties": False
155 "required": ["tenant"],
156 "additionalProperties": False
159 datacenter_schema_properties
={
161 "description": description_schema
,
162 "type": nameshort_schema
, #currently "openvim" or "openstack", can be enlarged with plugins
163 "vim_url": description_schema
,
164 "vim_url_admin": description_schema
,
165 "config": { "type":"object" }
168 datacenter_schema
= {
169 "title":"datacenter information schema",
170 "$schema": "http://json-schema.org/draft-04/schema#",
175 "properties":datacenter_schema_properties
,
176 "required": ["name", "vim_url"],
177 "additionalProperties": True
180 "required": ["datacenter"],
181 "additionalProperties": False
185 datacenter_edit_schema
= {
186 "title":"datacenter edit nformation schema",
187 "$schema": "http://json-schema.org/draft-04/schema#",
192 "properties":datacenter_schema_properties
,
193 "additionalProperties": False
196 "required": ["datacenter"],
197 "additionalProperties": False
201 netmap_new_schema
= {
202 "title":"netmap new information schema",
203 "$schema": "http://json-schema.org/draft-04/schema#",
206 "netmap":{ #delete from datacenter
209 "name": name_schema
, #name or uuid of net to change
211 "vim_name": name_schema
214 "additionalProperties": False
217 "required": ["netmap"],
218 "additionalProperties": False
221 netmap_edit_schema
= {
222 "title":"netmap edit information schema",
223 "$schema": "http://json-schema.org/draft-04/schema#",
226 "netmap":{ #delete from datacenter
229 "name": name_schema
, #name or uuid of net to change
232 "additionalProperties": False
235 "required": ["netmap"],
236 "additionalProperties": False
239 datacenter_action_schema
= {
240 "title":"datacenter action information schema",
241 "$schema": "http://json-schema.org/draft-04/schema#",
244 "net-update":{"type":"null",},
248 "net": name_schema
, #name or uuid of net to change
250 "description": description_schema
,
251 "shared": {"type": "boolean"}
254 "additionalProperties": False
259 "net": name_schema
, #name or uuid of net to change
262 "additionalProperties": False
267 "additionalProperties": False
271 datacenter_associate_schema
={
272 "title":"datacenter associate information schema",
273 "$schema": "http://json-schema.org/draft-04/schema#",
279 "vim_tenant": name_schema
,
280 "vim_tenant_name": name_schema
,
281 "vim_username": nameshort_schema
,
282 "vim_password": nameshort_schema
,
283 "config": {"type": "object"}
285 # "required": ["vim_tenant"],
286 "additionalProperties": True
289 "required": ["datacenter"],
290 "additionalProperties": False
294 "title":"DHCP schema",
295 "$schema": "http://json-schema.org/draft-04/schema#",
298 "enabled": {"type": "boolean"},
299 "start-address": ip_schema
,
300 "count": integer1_schema
302 "required": ["enabled", "start-address", "count"],
305 ip_profile_schema
= {
306 "title":"IP profile schema",
307 "$schema": "http://json-schema.org/draft-04/schema#",
310 "ip-version": {"type":"string", "enum":["IPv4","IPv6"]},
311 "subnet-address": ip_prefix_schema
,
312 "gateway-address": ip_schema
,
313 "dns-address": ip_schema
,
319 "title": "Key-pair schema for cloud-init configuration schema",
320 "$schema": "http://json-schema.org/draft-04/schema#",
324 "key": {"type":"string"}
327 "additionalProperties": False
330 cloud_config_user_schema
= {
331 "title": "User schema for cloud-init configuration schema",
332 "$schema": "http://json-schema.org/draft-04/schema#",
335 "name": nameshort_schema
,
336 "user-info": {"type":"string"},
337 #"key-pairs": {"type" : "array", "items": key_pair_schema}
338 "key-pairs": {"type" : "array", "items": {"type":"string"}}
340 "required": ["name"],
341 "additionalProperties": False
344 cloud_config_schema
= {
345 "title": "Cloud-init configuration schema",
346 "$schema": "http://json-schema.org/draft-04/schema#",
349 #"key-pairs": {"type" : "array", "items": key_pair_schema},
350 "key-pairs": {"type" : "array", "items": {"type":"string"}},
351 "users": {"type" : "array", "items": cloud_config_user_schema
}
353 "additionalProperties": False
356 internal_connection_element_schema
= {
360 "local_iface_name": name_schema
364 internal_connection_element_schema_v02
= {
368 "local_iface_name": name_schema
,
369 "ip_address": ip_schema
373 internal_connection_schema
= {
377 "description":description_schema
,
378 "type":{"type":"string", "enum":["bridge","data","ptp"]},
379 "elements": {"type" : "array", "items": internal_connection_element_schema
, "minItems":2}
381 "required": ["name", "type", "elements"],
382 "additionalProperties": False
385 internal_connection_schema_v02
= {
389 "description":description_schema
,
390 "type": {"type": "string", "enum":["e-line", "e-lan"]},
391 "implementation": {"type": "string", "enum":["overlay", "underlay"]},
392 "ip-profile": ip_profile_schema
,
393 "elements": {"type" : "array", "items": internal_connection_element_schema_v02
, "minItems":2}
395 "required": ["name", "type", "implementation", "elements"],
396 "additionalProperties": False
399 external_connection_schema
= {
403 "type":{"type":"string", "enum":["mgmt","bridge","data"]},
405 "local_iface_name": name_schema
,
406 "description":description_schema
408 "required": ["name", "type", "VNFC", "local_iface_name"],
409 "additionalProperties": False
413 external_connection_schema_v02
= {
417 "mgmt": {"type":"boolean"},
418 "type": {"type": "string", "enum":["e-line", "e-lan"]},
419 "implementation": {"type": "string", "enum":["overlay", "underlay"]},
421 "local_iface_name": name_schema
,
422 "description":description_schema
424 "required": ["name", "type", "VNFC", "local_iface_name"],
425 "additionalProperties": False
434 "dedicated":{"type":"string","enum":["yes","no","yes:sriov"]},
435 "bandwidth":bandwidth_schema
,
437 "mac_address": mac_schema
439 "additionalProperties": False,
440 "required": ["name","dedicated", "bandwidth"]
444 bridge_interfaces_schema
={
450 "bandwidth":bandwidth_schema
,
452 "mac_address": mac_schema
,
453 "model": {"type":"string", "enum":["virtio","e1000","ne2k_pci","pcnet","rtl8139"]},
454 "port-security": {"type" : "boolean"},
455 "floating-ip": {"type" : "boolean"}
457 "additionalProperties": False,
467 "type":{"type":"string", "enum":["disk","cdrom","xml"] },
468 "image": path_schema
,
469 "image name": name_schema
,
470 "image checksum": checksum_schema
,
471 "image metadata": metadata_schema
,
474 "xml":xml_text_schema
,
476 "additionalProperties": False,
485 "memory":integer1_schema
,
486 "cores":integer1_schema
,
487 "paired-threads":integer1_schema
,
488 "threads":integer1_schema
,
489 "cores-id":{"type":"array","items":integer0_schema
},
490 "paired-threads-id":{"type":"array","items":{"type":"array","minItems":2,"maxItems":2,"items":integer0_schema
}},
491 "threads-id":{"type":"array","items":integer0_schema
},
492 "interfaces":interfaces_schema
494 "additionalProperties": False,
495 #"required": ["memory"]
502 "description": description_schema
,
503 "VNFC image": {"oneOf": [path_schema
, http_schema
]},
504 "image name": name_schema
,
505 "image checksum": checksum_schema
,
506 "image metadata": metadata_schema
,
507 #"cloud-config": cloud_config_schema, #common for all vnfs in the scenario
511 "model":description_schema
,
512 "features":{"type":"array","items":nameshort_schema
}
514 "required": ["model"],
515 "additionalProperties": False
520 "type":nameshort_schema
,
521 "version":description_schema
524 "ram":integer0_schema
,
525 "vcpus":integer0_schema
,
526 "disk": integer1_schema
,
531 "bridge-ifaces": bridge_interfaces_schema
,
532 "devices": devices_schema
535 "required": ["name"],
537 {"required": ["VNFC image"]},
538 {"required": ["image name"]}
540 "additionalProperties": False
544 "title":"vnfd information schema v0.1",
545 "$schema": "http://json-schema.org/draft-04/schema#",
552 "description": description_schema
,
553 "class": nameshort_schema
,
554 "public": {"type" : "boolean"},
555 "physical": {"type" : "boolean"},
556 "tenant_id": id_schema
, #only valid for admin
557 "external-connections": {"type" : "array", "items": external_connection_schema
, "minItems":1},
558 "internal-connections": {"type" : "array", "items": internal_connection_schema
, "minItems":1},
559 "VNFC":{"type" : "array", "items": vnfc_schema
, "minItems":1}
561 "required": ["name","external-connections"],
562 "additionalProperties": True
566 "additionalProperties": False
569 #VNFD schema for OSM R1
571 "title":"vnfd information schema v0.2",
572 "$schema": "http://json-schema.org/draft-04/schema#",
575 "schema_version": {"type": "string", "enum": ["0.2"]},
580 "description": description_schema
,
581 "class": nameshort_schema
,
582 "public": {"type" : "boolean"},
583 "physical": {"type" : "boolean"},
584 "tenant_id": id_schema
, #only valid for admin
585 "external-connections": {"type" : "array", "items": external_connection_schema
, "minItems":1},
586 "internal-connections": {"type" : "array", "items": internal_connection_schema_v02
, "minItems":1},
587 # "cloud-config": cloud_config_schema, #common for all vnfcs
588 "VNFC":{"type" : "array", "items": vnfc_schema
, "minItems":1}
590 "required": ["name"],
591 "additionalProperties": True
594 "required": ["vnf", "schema_version"],
595 "additionalProperties": False
598 #vnfd_schema = vnfd_schema_v01
600 # "title":"vnfd information schema v0.2",
601 # "$schema": "http://json-schema.org/draft-04/schema#",
602 # "oneOf": [vnfd_schema_v01, vnfd_schema_v02]
606 "title":"graphical scenario descriptor information schema",
607 "$schema": "http://json-schema.org/draft-04/schema#",
610 "x": integer0_schema
,
611 "y": integer0_schema
,
615 "left": {"type":"array"},
616 "right": {"type":"array"},
617 "bottom": {"type":"array"},
621 "required": ["x","y"]
625 "title":"network scenario descriptor information schema v0.1",
626 "$schema": "http://json-schema.org/draft-04/schema#",
630 "description": description_schema
,
631 "tenant_id": id_schema
, #only valid for admin
632 "public": {"type": "boolean"},
638 "patternProperties":{
642 "type":{"type":"string", "enum":["VNF", "other_network", "network", "external_network"]},
644 "graph": graph_schema
,
646 "patternProperties":{
647 "^(VNF )?model$": {"type": "string"}
655 "patternProperties":{
659 "nodes":{"oneOf":[{"type":"object", "minProperties":2}, {"type":"array", "minLength":1}]},
660 "type": {"type": "string", "enum":["link", "external_network", "dataplane_net", "bridge_net"]},
661 "graph": graph_schema
663 "required": ["nodes"]
668 "required": ["nodes"],
669 "additionalProperties": False
672 "required": ["name","topology"],
673 "additionalProperties": False
677 "title":"network scenario descriptor information schema v0.2",
678 "$schema": "http://json-schema.org/draft-04/schema#",
681 "schema_version": schema_version_2
,
686 "description": description_schema
,
687 "tenant_id": id_schema
, #only valid for admin
688 "public": {"type": "boolean"},
691 "patternProperties":{
696 "graph": graph_schema
,
697 "vnf_name": name_schema
,
705 "patternProperties":{
709 "interfaces":{"type":"array", "minLength":1},
710 "type": {"type": "string", "enum":["dataplane", "bridge"]},
711 "external" : {"type": "boolean"},
712 "graph": graph_schema
714 "required": ["interfaces"]
720 "required": ["vnfs", "name"],
721 "additionalProperties": False
724 "required": ["scenario","schema_version"],
725 "additionalProperties": False
728 #NSD schema for OSM R1
730 "title":"network scenario descriptor information schema v0.3",
731 "$schema": "http://json-schema.org/draft-04/schema#",
734 "schema_version": {"type": "string", "enum": ["0.3"]},
739 "description": description_schema
,
740 "tenant_id": id_schema
, #only valid for admin
741 "public": {"type": "boolean"},
742 "cloud-config": cloud_config_schema
, #common for all vnfs in the scenario
743 #"datacenter": name_schema,
746 "patternProperties":{
751 "graph": graph_schema
,
752 "vnf_name": name_schema
,
753 #"cloud-config": cloud_config_schema, #particular for a vnf
754 #"datacenter": name_schema,
755 "internal-connections": {
757 "patternProperties": {
761 "ip-profile": ip_profile_schema
,
768 "local_iface_name": name_schema
,
769 "ip_address": ip_schema
771 "required": ["VNFC", "local_iface_name"],
785 "patternProperties":{
796 "vnf_interface": name_schema
,
797 "ip_address": ip_schema
799 "required": ["vnf", "vnf_interface"],
802 "type": {"type": "string", "enum":["e-line", "e-lan"]},
803 "implementation": {"type": "string", "enum":["overlay", "underlay"]},
804 "external" : {"type": "boolean"},
805 "graph": graph_schema
,
806 "ip-profile": ip_profile_schema
808 "required": ["interfaces"]
814 "required": ["vnfs", "networks","name"],
815 "additionalProperties": False
818 "required": ["scenario","schema_version"],
819 "additionalProperties": False
822 #scenario_new_schema = {
823 # "title":"new scenario information schema",
824 # "$schema": "http://json-schema.org/draft-04/schema#",
825 # #"oneOf": [nsd_schema_v01, nsd_schema_v02]
826 # "oneOf": [nsd_schema_v01]
829 scenario_edit_schema
= {
830 "title":"edit scenario information schema",
831 "$schema": "http://json-schema.org/draft-04/schema#",
835 "description": description_schema
,
841 "patternProperties":{
842 "^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$": {
848 "x": integer0_schema
,
849 "y": integer0_schema
,
850 "ifaces":{ "type": "object"}
853 "description": description_schema
,
860 "required": ["nodes"],
861 "additionalProperties": False
864 "additionalProperties": False
867 scenario_action_schema
= {
868 "title":"scenario action information schema",
869 "$schema": "http://json-schema.org/draft-04/schema#",
875 "instance_name":name_schema
,
876 "description":description_schema
,
877 "datacenter": {"type": "string"}
879 "required": ["instance_name"]
884 "instance_name":name_schema
,
885 "description":description_schema
,
886 "datacenter": {"type": "string"}
888 "required": ["instance_name"]
893 "instance_name":name_schema
,
894 "description":description_schema
,
895 "datacenter": {"type": "string"}
897 "required": ["instance_name"]
902 "instance_name":name_schema
,
903 "description":description_schema
,
904 "datacenter": {"type": "string"}
906 "required": ["instance_name"]
911 "additionalProperties": False
914 instance_scenario_create_schema_v01
= {
915 "title":"instance scenario create information schema v0.1",
916 "$schema": "http://json-schema.org/draft-04/schema#",
919 "schema_version": {"type": "string", "enum": ["0.1"]},
924 "description":description_schema
,
925 "datacenter": name_schema
,
926 "scenario" : name_schema
, #can be an UUID or name
927 "action":{"enum": ["deploy","reserve","verify" ]},
928 "connect_mgmt_interfaces": {"oneOf": [{"type":"boolean"}, {"type":"object"}]},# can be true or a dict with datacenter: net_name
929 "cloud-config": cloud_config_schema
, #common to all vnfs in the instance scenario
930 "vnfs":{ #mapping from scenario to datacenter
932 "patternProperties":{
936 "name": name_schema
, #override vnf name
937 "datacenter": name_schema
,
938 #"metadata": {"type": "object"},
939 #"user_data": {"type": "string"}
940 #"cloud-config": cloud_config_schema, #particular for a vnf
941 "external-connections": {
943 "patternProperties": {
947 "vim-network-name": name_schema
,
948 "ip_address": ip_schema
953 "internal-connections": {
955 "patternProperties": {
959 "ip-profile": ip_profile_schema
,
966 "local_iface_name": name_schema
,
967 "ip_address": ip_schema
969 "required": ["VNFC", "local_iface_name"],
980 "networks":{ #mapping from scenario to datacenter
982 "patternProperties":{
992 "ip_address": ip_schema
,
993 "datacenter": name_schema
,
994 "vim-network-name": name_schema
996 "patternProperties":{
997 ".": {"type": "string"}
1001 "ip-profile": ip_profile_schema
,
1002 #if the network connects VNFs deployed at different sites, you must specify one entry per site that this network connect to
1009 # By default for an scenario 'external' network openmano looks for an existing VIM network to map this external scenario network,
1010 # for other networks openamno creates at VIM
1011 # Use netmap-create to force to create an external scenario network
1012 "netmap-create": {"oneOf":[name_schema
,{"type": "null"}]}, #datacenter network to use. Null if must be created as an internal net
1013 #netmap-use: Indicates an existing VIM network that must be used for this scenario network.
1014 #Can use both the VIM network name (if it is not ambiguous) or the VIM net UUID
1015 #If both 'netmap-create' and 'netmap-use'are supplied, netmap-use precedes, but if fails openmano follows the netmap-create
1016 #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)
1017 "netmap-use": name_schema
, #
1018 "vim-network-name": name_schema
, #override network name
1019 #"ip-profile": ip_profile_schema,
1020 "datacenter": name_schema
,
1032 "additionalProperties": False,
1033 "required": ["name"]
1036 "required": ["instance"],
1037 "additionalProperties": False
1040 instance_scenario_action_schema
= {
1041 "title":"instance scenario action information schema",
1042 "$schema": "http://json-schema.org/draft-04/schema#",
1045 "start":{"type": "null"},
1046 "pause":{"type": "null"},
1047 "resume":{"type": "null"},
1048 "shutoff":{"type": "null"},
1049 "shutdown":{"type": "null"},
1050 "forceOff":{"type": "null"},
1051 "rebuild":{"type": "null"},
1053 "type": ["object","null"],
1055 "console": {"type": ["string", "null"], "enum": ["novnc", "xvpvnc", "rdp-html5", "spice-html5", None]},
1056 "vnfs":{"type": "array", "items":{"type":"string"}},
1057 "vms":{"type": "array", "items":{"type":"string"}}
1060 #"maxProperties": 1,
1061 "additionalProperties": False