7da4d859130f4396ffeff67728938136e1ddc11d
[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": "chinamobile"
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": "vim_1",
595                     "tenant": "chinamobile",
596                     "availability_zone": "test",
597                 },
598                 "volume_name": "test",
599                 "custom_volume_type": "test",
600                 "size": "10 GB",
601             },
602             "image_file": "test",
603         },
604     ],
605     "vdus": [
606     ],
607     "image_files": [],
608     "routers": [],
609     "local_storages": [],
610     "vnf_exposed": {
611         "external_cps": [],
612         "forward_cps": []
613     },
614     "vls": [
615         {
616             "vl_id": "test",
617             "properties": {
618                 "location_info": {
619                     "vimid": "test",
620                     "tenant": "chinamobile",
621                 },
622                 "vl_profile": {
623                     "networkName": "test",
624                     "networkType": "test",
625                     "physicalNetwork": "test",
626                     "vlanTransparent": "test",
627                     "segmentationId": "1",
628                     "cidr": "test",
629                     "dhcpEnabled": "test",
630                     "gatewayIp": "test",
631                     "startIp": "test",
632                     "endIp": "test",
633                 },
634                 "connectivity_type": {
635                     "layer_protocol": "ipv4",
636                 },
637                 "dns_nameservers": "test",
638                 "host_routes": "test",
639             },
640             "route_external": "test",
641         }
642     ],
643     "cps": [],  # TODO
644     "inputs": {
645         "pe1_id": {
646             "type": "string",
647             "description": "pe1_idofunderlayvpn"
648         },
649         "pe2_id": {
650             "type": "string",
651             "description": "pe2_idofunderlayvpn"
652         },
653         "serviceType": {
654             "type": "string",
655             "description": "serviceTypeofunderlayvpn"
656         },
657         "description": {
658             "type": "string",
659             "description": "descriptionofunderlayvpn"
660         },
661         "ac2_route": {
662             "type": "string",
663             "description": "ac2_routeofunderlayvpn"
664         },
665         "ac1_route": {
666             "type": "string",
667             "description": "ac1_routeofunderlayvpn"
668         },
669         "ac1_svlan": {
670             "type": "integer",
671             "description": "ac1_svlanofunderlayvpn"
672         },
673         "ac2_ip": {
674             "type": "string",
675             "description": "ac2_ipofunderlayvpn"
676         },
677         "ac1_ip": {
678             "type": "string",
679             "description": "ac1_ipofunderlayvpn"
680         },
681         "ac2_port": {
682             "type": "string",
683             "description": "ac2_portofunderlayvpn"
684         },
685         "topology": {
686             "type": "string",
687             "description": "topologyofunderlayvpn"
688         },
689         "technology": {
690             "type": "string",
691             "description": "technologyofunderlayvpn"
692         },
693         "ac1_port": {
694             "type": "string",
695             "description": "ac1_portofunderlayvpn"
696         },
697         "ac2_svlan": {
698             "type": "integer",
699             "description": "ac2_svlanofunderlayvpn"
700         },
701         "name": {
702             "type": "string",
703             "description": "Nameofunderlayervpn"
704         }
705     },
706     "metadata": {
707         "designer": "sdno",
708         "name": "underlayervpn",
709         "csarVersion": "1.0",
710         "csarType": "SSAR",
711         "csarProvider": "huawei",
712         "version": "1.0",
713         "type": "SSAR",
714         "id": "ns_underlayervpn_1_0"
715     }
716 }
717
718 vnfpackage_info = {
719     "imageInfo": [],
720     "csarId": "vOpenNAT",
721     "packageInfo": {
722         "csarName": "vOpenNAT.csar",
723         "vnfdModel": json.dumps(vnfdModel),
724         "vnfdProvider": "Intel",
725         "vnfdId": "openNAT_1.0",
726         "downloadUrl": "http://10.96.33.39:8806/static/catalog/vOpenNAT/vOpenNAT.csar",
727         "vnfVersion": "v1.0",
728         "vnfdVersion": "v1.0",
729         "vnfPackageId": "vOpenNAT"
730     }
731 }
732
733 # # vnfd_rawdata
734 # vnfd_rawdata = {
735 #     "rawData": {
736 #         "instance": {
737 #             "metadata": {
738 #                 "designer": "sdno",
739 #                 "name": "underlayervpn",
740 #                 "csarVersion": "1.0",
741 #                 "csarType": "SSAR",
742 #                 "csarProvider": "huawei",
743 #                 "version": "1.0",
744 #                 "type": "SSAR",
745 #                 "id": "ns_underlayervpn_1_0"
746 #             },
747 #             "nodes": [
748 #                 {
749 #                     "id": "ac2_fdhrbk3dvan8hl5wifm9lp1e9",
750 #                     "type_name": "tosca.nodes.sdn.l3ac",
751 #                     "template_name": "ac2",
752 #                     "properties": {
753 #                         "ip": {
754 #                             "type_name": "string"
755 #                         },
756 #                         "route": {
757 #                             "type_name": "string"
758 #                         },
759 #                         "port": {
760 #                             "type_name": "string"
761 #                         },
762 #                         "svlan": {
763 #                             "type_name": "string"
764 #                         }
765 #                     },
766 #                     "interfaces": [
767 #                         {
768 #                             "name": "Standard",
769 #                             "type_name": "tosca.interfaces.node.lifecycle.Standard"
770 #                         }
771 #                     ],
772 #                     "capabilities": [
773 #                         {
774 #                             "name": "feature",
775 #                             "type_name": "tosca.capabilities.Node"
776 #                         },
777 #                         {
778 #                             "name": "ac",
779 #                             "type_name": "tosca.capabilities.sdn.ac"
780 #                         }
781 #                     ],
782 #                     "relationships": [
783 #                         {
784 #                             "target_node_id": "pe2_go3vo1ctxr1vlbl0ij8stbtj6",
785 #                             "target_capability_name": "feature"
786 #                         },
787 #                         {
788 #                             "target_node_id": "ac2_fdhrbk3dvan8hl5wifm9lp1e9",
789 #                             "target_capability_name": "feature"
790 #                         }
791 #                     ]
792 #                 },
793 #                 {
794 #                     "id": "ac1_jqows1ai0j0cmwk9jdvuknt97",
795 #                     "type_name": "tosca.nodes.sdn.l3ac",
796 #                     "template_name": "ac1",
797 #                     "properties": {
798 #                         "ip": {
799 #                             "type_name": "string"
800 #                         },
801 #                         "route": {
802 #                             "type_name": "string"
803 #                         },
804 #                         "port": {
805 #                             "type_name": "string"
806 #                         },
807 #                         "svlan": {
808 #                             "type_name": "string"
809 #                         }
810 #                     },
811 #                     "interfaces": [
812 #                         {
813 #                             "name": "Standard",
814 #                             "type_name": "tosca.interfaces.node.lifecycle.Standard"
815 #                         }
816 #                     ],
817 #                     "capabilities": [
818 #                         {
819 #                             "name": "feature",
820 #                             "type_name": "tosca.capabilities.Node"
821 #                         },
822 #                         {
823 #                             "name": "ac",
824 #                             "type_name": "tosca.capabilities.sdn.ac"
825 #                         }
826 #                     ],
827 #                     "relationships": [
828 #                         {
829 #                             "target_node_id": "pe1_e58ekps6m45g6w9egs9lue2j7",
830 #                             "target_capability_name": "feature"
831 #                         },
832 #                         {
833 #                             "target_node_id": "ac2_fdhrbk3dvan8hl5wifm9lp1e9",
834 #                             "target_capability_name": "feature"
835 #                         }
836 #                     ]
837 #                 },
838 #                 {
839 #                     "id": "vpn_ie0xim076f7cje67fvrrq9tg1",
840 #                     "type_name": "tosca.nodes.sdn.underlayVPN",
841 #                     "template_name": "vpn",
842 #                     "properties": {
843 #                         "serviceType": {
844 #                             "type_name": "string"
845 #                         },
846 #                         "description": {
847 #                             "type_name": "string"
848 #                         },
849 #                         "name": {
850 #                             "type_name": "string"
851 #                         },
852 #                         "topology": {
853 #                             "type_name": "string"
854 #                         }
855 #                     },
856 #                     "interfaces": [
857 #                         {
858 #                             "name": "Standard",
859 #                             "type_name": "tosca.interfaces.node.lifecycle.Standard"
860 #                         }
861 #                     ],
862 #                     "capabilities": [
863 #                         {
864 #                             "name": "feature",
865 #                             "type_name": "tosca.capabilities.Node"
866 #                         }
867 #                     ],
868 #                     "relationships": [
869 #                         {
870 #                             "target_node_id": "ac1_jqows1ai0j0cmwk9jdvuknt97",
871 #                             "target_capability_name": "feature"
872 #                         },
873 #                         {
874 #                             "target_node_id": "ac2_fdhrbk3dvan8hl5wifm9lp1e9",
875 #                             "target_capability_name": "feature"
876 #                         }
877 #                     ]
878 #                 },
879 #                 {
880 #                     "id": "pe1_e58ekps6m45g6w9egs9lue2j7",
881 #                     "type_name": "tosca.nodes.sdn.l3pe",
882 #                     "template_name": "pe1",
883 #                     "properties": {
884 #                         "id": {
885 #                             "type_name": "string"
886 #                         }
887 #                     },
888 #                     "interfaces": [
889 #                         {
890 #                             "name": "Standard",
891 #                             "type_name": "tosca.interfaces.node.lifecycle.Standard"
892 #                         }
893 #                     ],
894 #                     "capabilities": [
895 #                         {
896 #                             "name": "feature",
897 #                             "type_name": "tosca.capabilities.Node"
898 #                         },
899 #                         {
900 #                             "name": "pe",
901 #                             "type_name": "tosca.capabilities.sdn.pe"
902 #                         }
903 #                     ]
904 #                 },
905 #                 {
906 #                     "id": "pe2_go3vo1ctxr1vlbl0ij8stbtj6",
907 #                     "type_name": "tosca.nodes.sdn.l3pe",
908 #                     "template_name": "pe2",
909 #                     "properties": {
910 #                         "id": {
911 #                             "type_name": "string"
912 #                         }
913 #                     },
914 #                     "interfaces": [
915 #                         {
916 #                             "name": "Standard",
917 #                             "type_name": "tosca.interfaces.node.lifecycle.Standard"
918 #                         }
919 #                     ],
920 #                     "capabilities": [
921 #                         {
922 #                             "name": "feature",
923 #                             "type_name": "tosca.capabilities.Node"
924 #                         },
925 #                         {
926 #                             "name": "pe",
927 #                             "type_name": "tosca.capabilities.sdn.pe"
928 #                         }
929 #                     ]
930 #                 }
931 #             ],
932 #             "substitution": {
933 #                 "node_type_name": "tosca.nodes.sdn.ext.NS.ns_underlayervpn"
934 #             },
935 #             "inputs": {
936 #                 "ac2_ip": {
937 #                     "type_name": "string",
938 #                     "description": "ac2_ipofunderlayvpn"
939 #                 },
940 #                 "ac2_route": {
941 #                     "type_name": "string",
942 #                     "description": "ac2_routeofunderlayvpn"
943 #                 },
944 #                 "serviceType": {
945 #                     "type_name": "string",
946 #                     "description": "serviceTypeofunderlayvpn"
947 #                 },
948 #                 "description": {
949 #                     "type_name": "string",
950 #                     "description": "descriptionofunderlayvpn"
951 #                 },
952 #                 "pe2_id": {
953 #                     "type_name": "string",
954 #                     "description": "pe2_idofunderlayvpn"
955 #                 },
956 #                 "ac1_route": {
957 #                     "type_name": "string",
958 #                     "description": "ac1_routeofunderlayvpn"
959 #                 },
960 #                 "ac1_svlan": {
961 #                     "type_name": "integer",
962 #                     "description": "ac1_svlanofunderlayvpn"
963 #                 },
964 #                 "name": {
965 #                     "type_name": "string",
966 #                     "description": "Nameofunderlayervpn"
967 #                 },
968 #                 "ac1_ip": {
969 #                     "type_name": "string",
970 #                     "description": "ac1_ipofunderlayvpn"
971 #                 },
972 #                 "ac2_port": {
973 #                     "type_name": "string",
974 #                     "description": "ac2_portofunderlayvpn"
975 #                 },
976 #                 "pe1_id": {
977 #                     "type_name": "string",
978 #                     "description": "pe1_idofunderlayvpn"
979 #                 },
980 #                 "technology": {
981 #                     "type_name": "string",
982 #                     "description": "technologyofunderlayvpn"
983 #                 },
984 #                 "ac1_port": {
985 #                     "type_name": "string",
986 #                     "description": "ac1_portofunderlayvpn"
987 #                 },
988 #                 "ac2_svlan": {
989 #                     "type_name": "integer",
990 #                     "description": "ac2_svlanofunderlayvpn"
991 #                 },
992 #                 "topology": {
993 #                     "type_name": "string",
994 #                     "description": "topologyofunderlayvpn"
995 #                 }
996 #             }
997 #         }
998 #     }
999 # }