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