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