Refactor vfc vnflcm code format
[vfc/gvnfm/vnflcm.git] / lcm / lcm / nf / vnfs / const.py
1 # Copyright 2017 ZTE Corporation.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #         http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 from lcm.pub.utils.jobutil import enum
16
17 VNF_STATUS = enum(NULL='null', INSTANTIATING="instantiating", INACTIVE='inactive', ACTIVE="active",
18                   FAILED="failed", TERMINATING="terminating", SCALING="scaling", OPERATING="operating",
19                   UPDATING="updating", HEALING="healing")
20
21 # inst_req_data
22 inst_req_data = {
23     "flavourId": "flavour_1",
24     "instantiationLevelId": "instantiationLevel_1",
25     "extVirtualLinks": [
26         # {
27         #     "vlInstanceId": "1",
28         #     "vim": {
29         #         "vimInfoId": "1",
30         #         "vimId": "1",
31         #         "interfaceInfo": {
32         #             "vimType": "vim",
33         #             "apiVersion": "v2",
34         #             "protocolType": "http"
35         #         },
36         #         "accessInfo": {
37         #             "tenant": "tenant_vCPE",
38         #             "username": "vCPE",
39         #             "password": "vCPE_321"
40         #         },
41         #         "interfaceEndpoint": "http://10.43.21.105:80/"
42         #     },
43         #     "resourceId": "1246",
44         #     "extCps": [
45         #         {
46         #             "cpdId": "11",
47         #             "addresses": [
48         #                 {
49         #                     "addressType": "MAC",
50         #                     "l2AddressData": "00:f3:43:20:a2:a3"
51         #                 },
52         #                 {
53         #                     "addressType": "IP",
54         #                     "l3AddressData": {
55         #                         "iPAddressType": "IPv4",
56         #                         "iPAddress": "192.168.104.2"
57         #                     }
58         #                 }
59         #             ],
60         #             "numDynamicAddresses": 0
61         #         }
62         #     ]
63         # },
64         {
65             "vlInstanceId": '55',
66             "resourceId": '55_network',
67             "resourceSubnetId": '55_subnet',
68             "cpdId": 'cpId1',
69             "vim": {
70                 "vimid": '55_vimid'
71             }
72         }
73     ],
74     "localizationLanguage": "en_US",
75     "additionalParams": {"inputs": {"key1":"test1","key2":"test2"},
76                          "extVirtualLinks": [{
77                             "vlInstanceId": '55',
78                             "resourceId": '55_network',
79                             "resourceSubnetId": '55_subnet',
80                             "cpdId": 'cpId1',
81                             "vim": {
82                                 "vimid": '55_vimid'
83                             }
84                         }]}
85 }
86
87
88 # vnfd_rawdata
89 vnfd_rawdata = {
90     "rawData": {
91         "instance": {
92             "metadata": {
93                 "designer": "sdno",
94                 "name": "underlayervpn",
95                 "csarVersion": "1.0",
96                 "csarType": "SSAR",
97                 "csarProvider": "huawei",
98                 "version": "1.0",
99                 "type": "SSAR",
100                 "id": "ns_underlayervpn_1_0"
101             },
102             "nodes": [
103                 {
104                     "id": "ac2_fdhrbk3dvan8hl5wifm9lp1e9",
105                     "type_name": "tosca.nodes.sdn.l3ac",
106                     "template_name": "ac2",
107                     "properties": {
108                         "ip": {
109                             "type_name": "string"
110                         },
111                         "route": {
112                             "type_name": "string"
113                         },
114                         "port": {
115                             "type_name": "string"
116                         },
117                         "svlan": {
118                             "type_name": "string"
119                         }
120                     },
121                     "interfaces": [
122                         {
123                             "name": "Standard",
124                             "type_name": "tosca.interfaces.node.lifecycle.Standard"
125                         }
126                     ],
127                     "capabilities": [
128                         {
129                             "name": "feature",
130                             "type_name": "tosca.capabilities.Node"
131                         },
132                         {
133                             "name": "ac",
134                             "type_name": "tosca.capabilities.sdn.ac"
135                         }
136                     ],
137                     "relationships": [
138                         {
139                             "target_node_id": "pe2_go3vo1ctxr1vlbl0ij8stbtj6",
140                             "target_capability_name": "feature"
141                         },
142                         {
143                             "target_node_id": "ac2_fdhrbk3dvan8hl5wifm9lp1e9",
144                             "target_capability_name": "feature"
145                         }
146                     ]
147                 },
148                 {
149                     "id": "ac1_jqows1ai0j0cmwk9jdvuknt97",
150                     "type_name": "tosca.nodes.sdn.l3ac",
151                     "template_name": "ac1",
152                     "properties": {
153                         "ip": {
154                             "type_name": "string"
155                         },
156                         "route": {
157                             "type_name": "string"
158                         },
159                         "port": {
160                             "type_name": "string"
161                         },
162                         "svlan": {
163                             "type_name": "string"
164                         }
165                     },
166                     "interfaces": [
167                         {
168                             "name": "Standard",
169                             "type_name": "tosca.interfaces.node.lifecycle.Standard"
170                         }
171                     ],
172                     "capabilities": [
173                         {
174                             "name": "feature",
175                             "type_name": "tosca.capabilities.Node"
176                         },
177                         {
178                             "name": "ac",
179                             "type_name": "tosca.capabilities.sdn.ac"
180                         }
181                     ],
182                     "relationships": [
183                         {
184                             "target_node_id": "pe1_e58ekps6m45g6w9egs9lue2j7",
185                             "target_capability_name": "feature"
186                         },
187                         {
188                             "target_node_id": "ac2_fdhrbk3dvan8hl5wifm9lp1e9",
189                             "target_capability_name": "feature"
190                         }
191                     ]
192                 },
193                 {
194                     "id": "vpn_ie0xim076f7cje67fvrrq9tg1",
195                     "type_name": "tosca.nodes.sdn.underlayVPN",
196                     "template_name": "vpn",
197                     "properties": {
198                         "serviceType": {
199                             "type_name": "string"
200                         },
201                         "description": {
202                             "type_name": "string"
203                         },
204                         "name": {
205                             "type_name": "string"
206                         },
207                         "topology": {
208                             "type_name": "string"
209                         }
210                     },
211                     "interfaces": [
212                         {
213                             "name": "Standard",
214                             "type_name": "tosca.interfaces.node.lifecycle.Standard"
215                         }
216                     ],
217                     "capabilities": [
218                         {
219                             "name": "feature",
220                             "type_name": "tosca.capabilities.Node"
221                         }
222                     ],
223                     "relationships": [
224                         {
225                             "target_node_id": "ac1_jqows1ai0j0cmwk9jdvuknt97",
226                             "target_capability_name": "feature"
227                         },
228                         {
229                             "target_node_id": "ac2_fdhrbk3dvan8hl5wifm9lp1e9",
230                             "target_capability_name": "feature"
231                         }
232                     ]
233                 },
234                 {
235                     "id": "pe1_e58ekps6m45g6w9egs9lue2j7",
236                     "type_name": "tosca.nodes.sdn.l3pe",
237                     "template_name": "pe1",
238                     "properties": {
239                         "id": {
240                             "type_name": "string"
241                         }
242                     },
243                     "interfaces": [
244                         {
245                             "name": "Standard",
246                             "type_name": "tosca.interfaces.node.lifecycle.Standard"
247                         }
248                     ],
249                     "capabilities": [
250                         {
251                             "name": "feature",
252                             "type_name": "tosca.capabilities.Node"
253                         },
254                         {
255                             "name": "pe",
256                             "type_name": "tosca.capabilities.sdn.pe"
257                         }
258                     ]
259                 },
260                 {
261                     "id": "pe2_go3vo1ctxr1vlbl0ij8stbtj6",
262                     "type_name": "tosca.nodes.sdn.l3pe",
263                     "template_name": "pe2",
264                     "properties": {
265                         "id": {
266                             "type_name": "string"
267                         }
268                     },
269                     "interfaces": [
270                         {
271                             "name": "Standard",
272                             "type_name": "tosca.interfaces.node.lifecycle.Standard"
273                         }
274                     ],
275                     "capabilities": [
276                         {
277                             "name": "feature",
278                             "type_name": "tosca.capabilities.Node"
279                         },
280                         {
281                             "name": "pe",
282                             "type_name": "tosca.capabilities.sdn.pe"
283                         }
284                     ]
285                 }
286             ],
287             "substitution": {
288                 "node_type_name": "tosca.nodes.sdn.ext.NS.ns_underlayervpn"
289             },
290             "inputs": {
291                 "ac2_ip": {
292                     "type_name": "string",
293                     "description": "ac2_ipofunderlayvpn"
294                 },
295                 "ac2_route": {
296                     "type_name": "string",
297                     "description": "ac2_routeofunderlayvpn"
298                 },
299                 "serviceType": {
300                     "type_name": "string",
301                     "description": "serviceTypeofunderlayvpn"
302                 },
303                 "description": {
304                     "type_name": "string",
305                     "description": "descriptionofunderlayvpn"
306                 },
307                 "pe2_id": {
308                     "type_name": "string",
309                     "description": "pe2_idofunderlayvpn"
310                 },
311                 "ac1_route": {
312                     "type_name": "string",
313                     "description": "ac1_routeofunderlayvpn"
314                 },
315                 "ac1_svlan": {
316                     "type_name": "integer",
317                     "description": "ac1_svlanofunderlayvpn"
318                 },
319                 "name": {
320                     "type_name": "string",
321                     "description": "Nameofunderlayervpn"
322                 },
323                 "ac1_ip": {
324                     "type_name": "string",
325                     "description": "ac1_ipofunderlayvpn"
326                 },
327                 "ac2_port": {
328                     "type_name": "string",
329                     "description": "ac2_portofunderlayvpn"
330                 },
331                 "pe1_id": {
332                     "type_name": "string",
333                     "description": "pe1_idofunderlayvpn"
334                 },
335                 "technology": {
336                     "type_name": "string",
337                     "description": "technologyofunderlayvpn"
338                 },
339                 "ac1_port": {
340                     "type_name": "string",
341                     "description": "ac1_portofunderlayvpn"
342                 },
343                 "ac2_svlan": {
344                     "type_name": "integer",
345                     "description": "ac2_svlanofunderlayvpn"
346                 },
347                 "topology": {
348                     "type_name": "string",
349                     "description": "topologyofunderlayvpn"
350                 }
351             }
352         }
353     }
354 }
355
356 # vnfd_model_dict
357 vnfd_model_dict = {
358     'metadata': {
359         'vendor': u'zte',
360         'is_shared': False,
361         'description': '',
362         'domain_type': u'CN',
363         'version': u'v4.14.10',
364         'vmnumber_overquota_alarm': False,
365         'cross_dc': False,
366         'vnf_type': u'SSS',
367         'vnfd_version': u'V00000001',
368         'id': u'sss-vnf-template',
369         'name': u'sss-vnf-template'
370     },
371     'vdus': [
372         {
373             "vdu_id": "vdu1Id",
374             "description": "vdu description",
375             "properties": {
376                 "name": "vduinstname",
377                 "vdu_type": "OMP",
378                 "key_vdu": True,
379                 "support_scaling": True,
380                 "location_info": {
381                     "vimid": "vimid",
382                     "tenant": "tenantname",
383                     "availability_zone": "zone1",
384                     "host": "host1"
385                 },
386                 "local_affinity_antiaffinity_rule": [
387                     {
388                         "affinity_antiaffinity": "anti-affinity",
389                         "scope": "node"
390                     },
391                     {
392                         "affinity_antiaffinity": "affinity",
393                         "scope": "zone"
394                     }
395                 ],
396                 "inject_data_list": [
397                     {
398                         "file_name": "abc.xml",
399                         "file_data": "<a>xxx</a><b>ssss</b>"
400                     }
401                 ],
402                 "storage_policy": "HIGH",
403                 "template_id": "26",
404                 "manual_scale_select_vim": False,
405                 "watchdog": {
406                     "enabledelay": 600000,
407                     "action": "reset"
408                 },
409                 "is_predefined": False,
410                 "allow_scale_updown": False,
411                 "inject_network_address": True,
412                 "inner_hugepage_num": 100,
413                 "inner_hugepage_size": "2048",
414                 "action": "add"
415             },
416             "image_file": u'sss',
417             "local_storages": [
418                 "local_storage_id1",
419                 "local_storage_id2"
420             ],
421             "volume_storages": [
422                 {
423                     "volume_storage_id": "volume_storage1",
424                     "location": "/usr/data",
425                     "device": "/dev/hda1"
426                 }
427             ],
428             "dependencies": [
429                 "vdu1Id",
430                 "vduNId"
431             ],
432             "nfv_compute": {
433                 "num_cpus": 4,
434                 "mem_size": "1 GB",
435                 "cpu_frequency": "1GHz",
436                 "flavor_extra_specs": {
437                     "hw: cpu_policy": "shared",
438                     "hw: cpu_max_threads": 50,
439                     "hw: cpu_sockets": 10,
440                     "hw: cpu_max_sockets": 20,
441                     "hw: cpu_max_cores": 8,
442                     "hw: cpu_threads": 30,
443                     "hw: numa_mem.0": 12288,
444                     "hw: hugepage_num": 100,
445                     "hw: high_performance": "dvs_high",
446                     "hw: numa_nodes": 1,
447                     "hw: numa_cpus.0": "2,4,8",
448                     "hw: numa_pci": True,
449                     "hw: cpu_cores": 4,
450                     "pci_passthrough: alias": "ColetoCreek: 1",
451                     "hw: mem_page_size": "large",
452                     "hw: mem_paging_mechanism": "EPT"
453                 }
454             },
455             "vls": [
456                 "vlId1",
457             ],
458             "cps": [
459                 "cpId1",
460             ],
461             "scalable": {
462                 "min_instances": 1,
463                 "max_instances": 2,
464                 "default_instances": 1
465             },
466             "interfaces": {
467                 "Standard": {
468                     "create": {
469                         "implementation": "<implementationScript>",
470                         "inputs": {
471                             "param1Name": "value1",
472                             "paramNName": "valueN"
473                         }
474                     },
475                     "configure": {
476                         "implementation": "<implementationScript>",
477                         "inputs": {
478                             "param1Name": "value1",
479                             "paramNName": "valueN"
480                         }
481                     },
482                     "start": {
483                         "implementation": "<implementationScript>",
484                         "inputs": {
485                             "param1Name": "value1",
486                             "paramNName": "valueN"
487                         }
488                     },
489                     "stop": {
490                         "implementation": "<implementationScript>",
491                         "inputs": {
492                             "param1Name": "value1",
493                             "paramNName": "valueN"
494                         }
495                     },
496                     "delete": {
497                         "implementation": "<implementationScript>",
498                         "inputs": {
499                             "param1Name": "value1",
500                             "paramNName": "valueN"
501                         }
502                     }
503                 }
504             },
505             "artifacts": [
506                 {
507                     "artifact_name": "software_version_file",
508                     "type": "tosca.artifacts.Deployment",
509                     "file": "AppSoftwares/zte-cn-xgw-V5.16.11_NFV-version.zip",
510                     "repository": "",
511                     "deploy_path": ""
512                 }
513             ]
514         }
515     ],
516     'volume_storages': [
517         {
518             "volume_storage_id": "volume_storage1",
519             "description": "",
520             "properties": {
521                 "size": "100 GB",
522                 "volume_id": "",
523                 "volume_name": "volumeStorage1",
524                 "custom_volume_type": "type1",
525                 "disk_type": "data",
526                 "delete_on_termination_vm": True,
527                 "location_info": {
528                     "vimid": "vimid_1",
529                     "tenant": "tenantname_1",
530                     "availability_zone": "zone1"
531                 },
532                 "is_predefined": False,
533                 "is_shared": False
534             },
535             "image_file": [
536                 "volume_image"
537             ]
538         }
539     ],
540     'policies': {
541         'scaling': {
542             'targets': {
543
544             },
545             'policy_id': u'policy_scale_sss-vnf-template',
546             'properties': {
547                 'policy_file': '*-vnfd.zip/*-vnf-policy.xml'
548             },
549             'description': ''
550         }
551     },
552     'image_files': [
553         {
554             'description': '',
555             'properties': {
556                 'name': u'opencos_sss_omm_img_release_20150723-1-disk1.vmdk',
557                 'checksum': '',
558                 'disk_format': u'VMDK',
559                 'file_url': u'./zte-cn-sss-main-image/OMM/opencos_sss_omm_img_release_20150723-1-disk1.vmdk',
560                 'container_type': 'vm',
561                 'version': '',
562                 'hypervisor_type': 'kvm'
563             },
564             'image_file_id': u'opencos_sss_omm_img_release_20150723-1-disk1'
565         },
566         {
567             'description': '',
568             'properties': {
569                 'name': u'sss.vmdk',
570                 'checksum': '',
571                 'disk_format': u'VMDK',
572                 'file_url': u'./zte-cn-sss-main-image/NE/sss.vmdk',
573                 'container_type': 'vm',
574                 'version': '',
575                 'hypervisor_type': 'kvm'
576             },
577             'image_file_id': u'sss'
578         }
579     ],
580     'vls': [
581         {
582             "vl_id": "vldId1",
583             "description": "",
584             "properties": {
585                 "name": "umac_241_control",
586                 "network_name": "umac_control",
587                 "is_predefined": False,
588                 "vendor": "zte",
589                 "netmask": "255.255.255.0",
590                 "mtu": 1500,
591                 "network_type": "vlan",
592                 "physical_network": "phynet01",
593                 "segmentation_id": "30",
594                 "vlan_transparent": False,
595                 "vds_name": "vds1",
596                 "cidr": "192.168.199.0/24",
597                 "ip_version": 4,
598                 "gateway_ip": "192.168.199.1",
599                 "dhcp_enabled": False,
600                 "dns_nameservers": [
601                     "192.168.0.4",
602                     "192.168.0.10"
603                 ],
604                 "start_ip": "192.168.199.2",
605                 "end_ip": "192.168.199.254",
606                 "host_routes": [
607                     {
608                         "destination": "10.43.26.0/24",
609                         "nexthop": "10.41.23.1"
610                     }
611                 ],
612                 "location_info": {
613                     "vimid": "vimid_1",
614                     "tenant": "tenantname_1"
615                 },
616                 "cloud_type": "IaaS"
617             },
618             "route_id": "router01",
619             "route_external": False
620         }
621     ],
622     'cps': [
623         {
624             "cp_id": "cpId1",
625             "description": "",
626             "properties": {
627                 "name": "",
628                 "mac_address": "00:d9:00:82:11:e1",
629                 "ip_address:": "192.168.1.21",
630                 "ip_range_start": "192.168.1.20",
631                 "ip_range_end": "192.168.1.29",
632                 "floating_ip_address": {
633                     "external_network": "extnet01",
634                     "ip_address": "10.43.53.23"
635                 },
636                 "service_ip_address": "192.168.1.23",
637                 "order": 1,
638                 "bandwidth": 1000,
639                 "vnic_type": "normal",
640                 "allowed_address_pairs": [
641                     {
642                         "ip": "192.168.1.13",
643                         "mac": "00:f3:43:20:a2:a3"
644                     }
645                 ],
646                 "bond": "none",
647                 "bond_index": 1,
648                 "macbond": "00:d9:00:82:11:d1",
649                 "sfc_encapsulation": "",
650                 "direction": "",
651                 "gateway_ip": "192.168.199.1",
652                 "netmask": "255.255.255.0",
653                 "interface_name": "fe-01-02",
654                 "is_virtual": False,
655                 "function": "control"
656             },
657             "vl_id": "vldId1",
658             "vdu_id": "vdu1Id"
659         }
660     ],
661     'local_storages': [
662
663     ],
664 }
665
666 # get_tenant_id
667 c1_data_get_tenant_id = {
668     "tenants": [
669         {
670             "id": "1",
671             "name": "tenantname_1"
672         }
673     ]
674 }
675
676 # create_volume
677 c2_data_create_volume = {
678     "id": "4bd3e9eb-cd8b-456a-8589-910836a0ab31",
679     "name": "volume1",
680     "returnCode": 1,
681     "vimId": "vim_volume_1",
682     "vimName": "vim_volume_1",
683     "tenantId": "vim_volume_1",
684     "volumeType": "123",
685     "availabilityZone": "availabilityZone",
686     "status": "availuable",
687     "createTime": "2015-12-02T06:39:40.000000",
688     "type": None,
689     "size": 40
690 }
691
692 # get_volume
693 c3_data_get_volume = {
694     "status": "available",
695     "name": "wangsong",
696     "attachments": [
697         {
698             "device": "/dev/vdc",
699             "serverId": "3030e666-528e-4954-88f5-cc21dab1262b",
700             "volumeId": "4bd3e9eb-cd8b-456a-8589-910836a0ab31",
701             "hostName": None,
702             "id": "4bd3e9eb-cd8b-456a-8589-910836a0ab31"
703         }
704     ],
705     "createTime": "2015-12-02T06:39:40.000000",
706     "type": None,
707     "id": "4bd3e9eb-cd8b-456a-8589-910836a0ab31",
708     "size": 40
709 }
710
711 # create_network
712 c4_data_create_network = {
713     "returnCode": 0,
714     "vimId": "11111",
715     "vimName": "11111",
716     "status": "ACTIVE",
717     "id": "3c9eebdbbfd345658269340b9ea6fb73",
718     "name": "net1",
719     "tenantId": "tenant1",
720     "networkName": "ommnet",
721     "shared": True,
722     "vlanTransparent": True,
723     "networkType": "vlan",
724     "segmentationId": 202,
725     "physicalNetwork": "ctrl",
726     "routerExternal": False
727 }
728
729 # create_subnet
730 c5_data_create_subnet = {
731     "returnCode": 0,
732     "vimId": "11111",
733     "vimName": "11111",
734     "status": " ACTIVE",
735     "id": "d62019d3-bc6e-4319-9c1d-6722fc136a23",
736     "tenantId": "tenant1",
737     "networkId": "d32019d3-bc6e-4319-9c1d-6722fc136a22",
738     "networkName": "networkName",
739     "name": "subnet1",
740     "cidr": "10.43.35.0/24",
741     "ipVersion": 4,
742     "enableDhcp": 1,
743     "gatewayIp": "10.43.35.1",
744     "dnsNameservers": [],
745     "allocationPools": [
746         {
747             "start": "192.168.199.2",
748             "end": "192.168.199.254"
749         }
750     ],
751     "hostRoutes": []
752 }
753
754 # create_ports
755 c6_data_create_port = {
756     "returnCode": 0,
757     "vimId": "11111",
758     "vimName": "11111",
759     "status": " ACTIVE",
760     "id": " 872019d3-bc6e-4319-9c1d-6722fc136afg",
761     "tenantId": "tenant1",
762     "name": "subnet1",
763     "networkId": "d32019d3-bc6e-4319-9c1d-6722fc136a22",
764     "networkName": "networkName",
765     "subnetId": "d62019d3-bc6e-4319-9c1d-6722fc136a23",
766     "subnetName": "subnet1",
767     "macAddress": "212.12.61.23",
768     "ip": "10.43.38.11",
769     "vnicType": "normal",
770     "securityGroups": ""
771 }
772
773 # create_flavor
774 c7_data_create_flavor ={
775     "returnCode": 0,
776     "vimId": "11111",
777     "vimName": "11111",
778     "id": "142019d3-bc6e-4319-9c1d-6722fc136afg",
779     "tenantId": "tenant1",
780     "name": "subnet1",
781     "vcpu": 5,
782     "memory": 2,
783     "disk": 40,
784     "ephemeral": 40,
785     "swap": 20,
786     "isPublic": True,
787     "extraSpecs": "testtt"
788 }
789
790 # list_image
791 c8_data_list_image = {
792     "vimid": "",
793     "vimname": "",
794     "images": [
795         {
796             "status": "active",
797             "id": "5e2757c1-f846-4727-915c-9a872553ed75",
798             "size": 862016,
799             "name": u'sss.vmdk'
800         }
801     ]
802 }
803
804 # create_vm
805 c9_data_create_vm = {
806     "returnCode": 1,
807     "id": "3c9eebdbbfd345658269340b9ea6fb73",
808     "name": "vm1",
809     "vimId": "11111",
810     "vimName": "11111",
811     "tenantId": "tenant1",
812     "boot": "boot_1",
813     "nicArray": "dfdf",
814     "volumeArray": "dfdf",
815     "availabilityZone": "fdvfdv",
816     "flavorId": "fdvfdv",
817     "metadata": "fdvfdv",
818     "securityGroups": "fdvfdv",
819     "serverGroup": "fdvfdv",
820     "status": "ACTIVE"
821 }
822
823 # get_vm
824 c10_data_get_vm = {
825     "returnCode": 1,
826     "id": "3c9eebdbbfd345658269340b9ea6fb73",
827     "name": "vm1",
828     "vimId": "11111",
829     "vimName": "11111",
830     "tenantId": "tenant1",
831     "status": "ACTIVE"
832 }