1 # Copyright (C) 2019 ZTE. All Rights Reserved.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 "flavourId": "flavour_1",
18 "instantiationLevelId": "instantiationLevel_1",
21 "id": "extVirtualLink_1",
22 "vimConnectionId": "vimConnection_1",
23 "resourceProviderId": "resourceProvider_1",
24 "resourceId": "resource_1",
25 "resourceSubnetId": "resourceSubnet_1",
31 "cpInstanceId": "cpInstance_1",
32 "linkPortId": "linkPort_1",
35 "layerProtocol": "IP_OVER_ETHERNET",
37 "macAddress": "00:f3:43:20:a2:a3",
41 "fixedAddresses": ["192.168.104.2", ],
42 "numDynamicAddresses": 0,
44 "subnetId": "subnet_1",
56 "id": "extLinkPort_1",
58 "vimConnectionId": "vimConnection_1",
59 "resourceProviderId": "resourceProvider_1",
60 "resourceId": "resource_1",
61 "vimLevelResourceType": "vimLevelResourceType_1",
67 "extManagedVirtualLinks": [
69 "id": 'extManagedVirtualLink_1',
70 "virtualLinkDescId": 'virtualLinkDesc_1',
71 "vimConnectionId": 'vimConnection_1',
72 "resourceProviderId": 'resourceProvider_1',
73 "resourceId": 'resource_1',
76 "vimConnectionInfo": [
78 "id": 'vimConnection_1',
82 "apiVersion": "apiVersion_1",
83 "protocolType": "http"
86 "tenant": "tenant_vCPE",
88 "password": "vCPE_321",
93 "localizationLanguage": "en_US",
107 'domain_type': u'CN',
108 'version': u'v4.14.10',
109 'vmnumber_overquota_alarm': False,
112 'vnfd_version': u'V00000001',
113 'id': u'sss-vnf-template',
114 'name': u'sss-vnf-template'
119 "description": "vdu description",
121 "name": "vduinstname",
124 "support_scaling": True,
127 "tenant": "tenantname",
128 "availability_zone": "zone1",
131 "local_affinity_antiaffinity_rule": [
133 "affinity_antiaffinity": "anti-affinity",
137 "affinity_antiaffinity": "affinity",
141 "inject_data_list": [
143 "file_name": "abc.xml",
144 "file_data": "<a>xxx</a><b>ssss</b>"
147 "storage_policy": "HIGH",
149 "manual_scale_select_vim": False,
151 "enabledelay": 600000,
154 "is_predefined": False,
155 "allow_scale_updown": False,
156 "inject_network_address": True,
157 "inner_hugepage_num": 100,
158 "inner_hugepage_size": "2048",
161 "image_file": u'sss',
166 "virtual_storages": [
168 "virtual_storage_id": "volume_storage1",
169 "location": "/usr/data",
170 "device": "/dev/hda1"
180 "cpu_frequency": "1GHz",
181 "flavor_extra_specs": {
182 "hw: cpu_policy": "shared",
183 "hw: cpu_max_threads": 50,
184 "hw: cpu_sockets": 10,
185 "hw: cpu_max_sockets": 20,
186 "hw: cpu_max_cores": 8,
187 "hw: cpu_threads": 30,
188 "hw: numa_mem.0": 12288,
189 "hw: hugepage_num": 100,
190 "hw: high_performance": "dvs_high",
192 "hw: numa_cpus.0": "2,4,8",
193 "hw: numa_pci": True,
195 "pci_passthrough: alias": "ColetoCreek: 1",
196 "hw: mem_page_size": "large",
197 "hw: mem_paging_mechanism": "EPT"
209 "default_instances": 1
214 "implementation": "<implementationScript>",
216 "param1Name": "value1",
217 "paramNName": "valueN"
221 "implementation": "<implementationScript>",
223 "param1Name": "value1",
224 "paramNName": "valueN"
228 "implementation": "<implementationScript>",
230 "param1Name": "value1",
231 "paramNName": "valueN"
235 "implementation": "<implementationScript>",
237 "param1Name": "value1",
238 "paramNName": "valueN"
242 "implementation": "<implementationScript>",
244 "param1Name": "value1",
245 "paramNName": "valueN"
256 "volume_storage_id": "volume_storage1",
259 "size": "\"100 GB\"",
261 "volume_name": "volumeStorage1",
262 "custom_volume_type": "type1",
264 "delete_on_termination_vm": True,
267 "tenant": "tenantname_1",
268 "availability_zone": "zone1"
270 "is_predefined": False,
283 'policy_id': u'policy_scale_sss-vnf-template',
285 'policy_file': '*-vnfd.zip/*-vnf-policy.xml'
294 'name': u'opencos_sss_omm_img_release_20150723-1-disk1.vmdk',
296 'disk_format': u'VMDK',
297 'file_url': u'./zte-cn-sss-main-image/OMM/opencos_sss_omm_img_release_20150723-1-disk1.vmdk',
298 'container_type': 'vm',
300 'hypervisor_type': 'kvm'
302 'image_file_id': u'opencos_sss_omm_img_release_20150723-1-disk1'
309 'disk_format': u'VMDK',
310 'file_url': u'./zte-cn-sss-main-image/NE/sss.vmdk',
311 'container_type': 'vm',
313 'hypervisor_type': 'kvm'
315 'image_file_id': u'sss'
323 "name": "umac_241_control",
324 "network_name": "umac_control",
325 "is_predefined": False,
327 "netmask": "255.255.255.0",
329 "network_type": "vlan",
330 "physical_network": "phynet01",
331 "segmentation_id": "30",
332 "vlan_transparent": False,
334 "cidr": "192.168.199.0/24",
336 "gateway_ip": "192.168.199.1",
337 "dhcp_enabled": False,
342 "start_ip": "192.168.199.2",
343 "end_ip": "192.168.199.254",
346 "destination": "10.43.26.0/24",
347 "nexthop": "10.41.23.1"
352 "tenant": "tenantname_1"
356 "route_id": "router01",
357 "route_external": False
366 "mac_address": "00:d9:00:82:11:e1",
367 "ip_address:": "192.168.1.21",
368 "ip_range_start": "192.168.1.20",
369 "ip_range_end": "192.168.1.29",
370 "floating_ip_address": {
371 "external_network": "extnet01",
372 "ip_address": "10.43.53.23"
374 "service_ip_address": "192.168.1.23",
377 "vnic_type": "normal",
378 "allowed_address_pairs": [
380 "ip": "192.168.1.13",
381 "mac": "00:f3:43:20:a2:a3"
386 "macbond": "00:d9:00:82:11:d1",
387 "sfc_encapsulation": "",
389 "gateway_ip": "192.168.199.1",
390 "netmask": "255.255.255.0",
391 "interface_name": "fe-01-02",
393 "function": "control"
405 c1_data_get_tenant_id = {
409 "name": "chinamobile"
413 c1_data_get_tenant_id_1 = {
424 c2_data_create_volume = {
425 "id": "4bd3e9eb-cd8b-456a-8589-910836a0ab31",
428 "vimId": "vim_volume_1",
429 "vimName": "vim_volume_1",
430 "tenantId": "vim_volume_1",
432 "availabilityZone": "availabilityZone",
433 "status": "availuable",
434 "createTime": "2015-12-02T06:39:40.000000",
440 c3_data_get_volume = {
441 "status": "available",
445 "device": "/dev/vdc",
446 "serverId": "3030e666-528e-4954-88f5-cc21dab1262b",
447 "volumeId": "4bd3e9eb-cd8b-456a-8589-910836a0ab31",
449 "id": "4bd3e9eb-cd8b-456a-8589-910836a0ab31"
452 "createTime": "2015-12-02T06:39:40.000000",
454 "id": "4bd3e9eb-cd8b-456a-8589-910836a0ab31",
459 c4_data_create_network = {
464 "id": "3c9eebdbbfd345658269340b9ea6fb73",
466 "tenantId": "tenant1",
467 "networkName": "ommnet",
469 "vlanTransparent": True,
470 "networkType": "vlan",
471 "segmentationId": 202,
472 "physicalNetwork": "physnet1",
473 "routerExternal": False
477 c5_data_create_subnet = {
482 "id": "d62019d3-bc6e-4319-9c1d-6722fc136a23",
483 "tenantId": "tenant1",
484 "networkId": "d32019d3-bc6e-4319-9c1d-6722fc136a22",
485 "networkName": "networkName",
487 "cidr": "10.43.35.0/24",
490 "gatewayIp": "10.43.35.1",
491 "dnsNameservers": [],
494 "start": "192.168.199.2",
495 "end": "192.168.199.254"
502 c6_data_create_port = {
507 "id": " 872019d3-bc6e-4319-9c1d-6722fc136afg",
508 "tenantId": "tenant1",
510 "networkId": "d32019d3-bc6e-4319-9c1d-6722fc136a22",
511 "networkName": "networkName",
512 "subnetId": "d62019d3-bc6e-4319-9c1d-6722fc136a23",
513 "subnetName": "subnet1",
514 "macAddress": "212.12.61.23",
516 "vnicType": "direct",
521 c7_data_create_flavor = {
525 "id": "142019d3-bc6e-4319-9c1d-6722fc136afg",
526 "tenantId": "tenant1",
534 "extraSpecs": "testtt"
538 c8_data_list_image = {
544 "id": "5e2757c1-f846-4727-915c-9a872553ed75",
552 c9_data_create_vm = {
554 "id": "3c9eebdbbfd345658269340b9ea6fb73",
558 "tenantId": "tenant1",
561 "volumeArray": "dfdf",
562 "availabilityZone": "fdvfdv",
563 "flavorId": "fdvfdv",
564 "metadata": "fdvfdv",
565 "securityGroups": "fdvfdv",
566 "serverGroup": "fdvfdv",
573 "id": "3c9eebdbbfd345658269340b9ea6fb73",
577 "tenantId": "tenant1",
584 "volume_storage_id": "test",
588 "tenant": "chinamobile",
589 "availability_zone": "test",
591 "volume_name": "test",
592 "custom_volume_type": "test",
593 "size_of_storage": "\"10 GB\"",
595 "image_file": "test",
604 "tenant": "chinamobile",
607 "networkName": "test",
608 "networkType": "test",
609 "physicalNetwork": "test",
610 "vlanTransparent": "test",
611 "segmentationId": "1",
613 "dhcpEnabled": "test",
618 "connectivity_type": {
619 "layer_protocol": "ipv4",
621 "dns_nameservers": "test",
622 "host_routes": "test",
624 "route_external": "test",
631 "networkId": "", # TODO
632 "subnetId": "", # TODO
636 "mac_address": "test",
641 "fixed_ip_address": "test"
646 "vnic_type": "direct",
648 "virtual_network_interface_requirements": [
650 "network_interface_requirements": {
651 "interfaceType": '{"schemaVersion": "0", "schemaLocation":"", "platformId": "generic", "mandatory": false, "configurationValue": "SR-IOV"}'
653 "support_mandatory": False,
654 "name": "SRIOV_Port",
655 "description": "sriov"
667 "tenant": "chinamobile",
668 "availability_zone": "test",
675 "vduName": "VDU_vbng_0",
687 "type": "tosca.nodes.nfv.Vdu.Compute",
690 "num_virtual_cpu": "16",
693 "virtual_mem_size": "8000 MB",
694 "vdu_memory_requirements": {
695 "memoryPageSize": "8 MB",
699 "virtual_storages": [{
700 "virtual_storage_id": "test",
701 "type_of_storage": "ephemeral",
702 "size_of_storage": "10 GB",
704 "type": "tosca.nodes.nfv.Vdu.Compute",
707 "artifact_name": "sw_image",
713 "volume_storage_id": "test",
720 "local_storages": [],
728 "description": "pe1_idofunderlayvpn"
732 "description": "pe2_idofunderlayvpn"
736 "description": "serviceTypeofunderlayvpn"
740 "description": "descriptionofunderlayvpn"
744 "description": "ac2_routeofunderlayvpn"
748 "description": "ac1_routeofunderlayvpn"
752 "description": "ac1_svlanofunderlayvpn"
756 "description": "ac2_ipofunderlayvpn"
760 "description": "ac1_ipofunderlayvpn"
764 "description": "ac2_portofunderlayvpn"
768 "description": "topologyofunderlayvpn"
772 "description": "technologyofunderlayvpn"
776 "description": "ac1_portofunderlayvpn"
780 "description": "ac2_svlanofunderlayvpn"
784 "description": "Nameofunderlayervpn"
789 "name": "underlayervpn",
790 "csarVersion": "1.0",
792 "csarProvider": "huawei",
795 "id": "ns_underlayervpn_1_0"
801 "csarId": "vOpenNAT",
803 "csarName": "vOpenNAT.csar",
804 "vnfdModel": json.dumps(vnfdModel),
805 "vnfdProvider": "Intel",
806 "vnfdId": "openNAT_1.0",
807 "downloadUrl": "http://10.96.33.39:8806/static/catalog/vOpenNAT/vOpenNAT.csar",
808 "vnfVersion": "v1.0",
809 "vnfdVersion": "v1.0",
810 "vnfPackageId": "vOpenNAT"
819 # "designer": "sdno",
820 # "name": "underlayervpn",
821 # "csarVersion": "1.0",
822 # "csarType": "SSAR",
823 # "csarProvider": "huawei",
826 # "id": "ns_underlayervpn_1_0"
830 # "id": "ac2_fdhrbk3dvan8hl5wifm9lp1e9",
831 # "type_name": "tosca.nodes.sdn.l3ac",
832 # "template_name": "ac2",
835 # "type_name": "string"
838 # "type_name": "string"
841 # "type_name": "string"
844 # "type_name": "string"
849 # "name": "Standard",
850 # "type_name": "tosca.interfaces.node.lifecycle.Standard"
856 # "type_name": "tosca.capabilities.Node"
860 # "type_name": "tosca.capabilities.sdn.ac"
865 # "target_node_id": "pe2_go3vo1ctxr1vlbl0ij8stbtj6",
866 # "target_capability_name": "feature"
869 # "target_node_id": "ac2_fdhrbk3dvan8hl5wifm9lp1e9",
870 # "target_capability_name": "feature"
875 # "id": "ac1_jqows1ai0j0cmwk9jdvuknt97",
876 # "type_name": "tosca.nodes.sdn.l3ac",
877 # "template_name": "ac1",
880 # "type_name": "string"
883 # "type_name": "string"
886 # "type_name": "string"
889 # "type_name": "string"
894 # "name": "Standard",
895 # "type_name": "tosca.interfaces.node.lifecycle.Standard"
901 # "type_name": "tosca.capabilities.Node"
905 # "type_name": "tosca.capabilities.sdn.ac"
910 # "target_node_id": "pe1_e58ekps6m45g6w9egs9lue2j7",
911 # "target_capability_name": "feature"
914 # "target_node_id": "ac2_fdhrbk3dvan8hl5wifm9lp1e9",
915 # "target_capability_name": "feature"
920 # "id": "vpn_ie0xim076f7cje67fvrrq9tg1",
921 # "type_name": "tosca.nodes.sdn.underlayVPN",
922 # "template_name": "vpn",
925 # "type_name": "string"
928 # "type_name": "string"
931 # "type_name": "string"
934 # "type_name": "string"
939 # "name": "Standard",
940 # "type_name": "tosca.interfaces.node.lifecycle.Standard"
946 # "type_name": "tosca.capabilities.Node"
951 # "target_node_id": "ac1_jqows1ai0j0cmwk9jdvuknt97",
952 # "target_capability_name": "feature"
955 # "target_node_id": "ac2_fdhrbk3dvan8hl5wifm9lp1e9",
956 # "target_capability_name": "feature"
961 # "id": "pe1_e58ekps6m45g6w9egs9lue2j7",
962 # "type_name": "tosca.nodes.sdn.l3pe",
963 # "template_name": "pe1",
966 # "type_name": "string"
971 # "name": "Standard",
972 # "type_name": "tosca.interfaces.node.lifecycle.Standard"
978 # "type_name": "tosca.capabilities.Node"
982 # "type_name": "tosca.capabilities.sdn.pe"
987 # "id": "pe2_go3vo1ctxr1vlbl0ij8stbtj6",
988 # "type_name": "tosca.nodes.sdn.l3pe",
989 # "template_name": "pe2",
992 # "type_name": "string"
997 # "name": "Standard",
998 # "type_name": "tosca.interfaces.node.lifecycle.Standard"
1003 # "name": "feature",
1004 # "type_name": "tosca.capabilities.Node"
1008 # "type_name": "tosca.capabilities.sdn.pe"
1014 # "node_type_name": "tosca.nodes.sdn.ext.NS.ns_underlayervpn"
1018 # "type_name": "string",
1019 # "description": "ac2_ipofunderlayvpn"
1022 # "type_name": "string",
1023 # "description": "ac2_routeofunderlayvpn"
1026 # "type_name": "string",
1027 # "description": "serviceTypeofunderlayvpn"
1030 # "type_name": "string",
1031 # "description": "descriptionofunderlayvpn"
1034 # "type_name": "string",
1035 # "description": "pe2_idofunderlayvpn"
1038 # "type_name": "string",
1039 # "description": "ac1_routeofunderlayvpn"
1042 # "type_name": "integer",
1043 # "description": "ac1_svlanofunderlayvpn"
1046 # "type_name": "string",
1047 # "description": "Nameofunderlayervpn"
1050 # "type_name": "string",
1051 # "description": "ac1_ipofunderlayvpn"
1054 # "type_name": "string",
1055 # "description": "ac2_portofunderlayvpn"
1058 # "type_name": "string",
1059 # "description": "pe1_idofunderlayvpn"
1062 # "type_name": "string",
1063 # "description": "technologyofunderlayvpn"
1066 # "type_name": "string",
1067 # "description": "ac1_portofunderlayvpn"
1070 # "type_name": "integer",
1071 # "description": "ac2_svlanofunderlayvpn"
1074 # "type_name": "string",
1075 # "description": "topologyofunderlayvpn"