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.
22 'version': 'v4.14.10',
23 'vmnumber_overquota_alarm': False,
26 'vnfd_version': 'V00000001',
27 'id': 'sss-vnf-template',
28 'name': 'sss-vnf-template'
33 "description": "vdu description",
35 "name": "vduinstname",
38 "support_scaling": True,
41 "tenant": "tenantname",
42 "availability_zone": "zone1",
45 "local_affinity_antiaffinity_rule": [
47 "affinity_antiaffinity": "anti-affinity",
51 "affinity_antiaffinity": "affinity",
57 "file_name": "abc.xml",
58 "file_data": "<a>xxx</a><b>ssss</b>"
61 "storage_policy": "HIGH",
63 "manual_scale_select_vim": False,
65 "enabledelay": 600000,
68 "is_predefined": False,
69 "allow_scale_updown": False,
70 "inject_network_address": True,
71 "inner_hugepage_num": 100,
72 "inner_hugepage_size": "2048",
82 "virtual_storage_id": "volume_storage1",
83 "location": "/usr/data",
94 "cpu_frequency": "1GHz",
95 "flavor_extra_specs": {
96 "hw: cpu_policy": "shared",
97 "hw: cpu_max_threads": 50,
98 "hw: cpu_sockets": 10,
99 "hw: cpu_max_sockets": 20,
100 "hw: cpu_max_cores": 8,
101 "hw: cpu_threads": 30,
102 "hw: numa_mem.0": 12288,
103 "hw: hugepage_num": 100,
104 "hw: high_performance": "dvs_high",
106 "hw: numa_cpus.0": "2,4,8",
107 "hw: numa_pci": True,
109 "pci_passthrough: alias": "ColetoCreek: 1",
110 "hw: mem_page_size": "large",
111 "hw: mem_paging_mechanism": "EPT"
123 "default_instances": 1
128 "implementation": "<implementationScript>",
130 "param1Name": "value1",
131 "paramNName": "valueN"
135 "implementation": "<implementationScript>",
137 "param1Name": "value1",
138 "paramNName": "valueN"
142 "implementation": "<implementationScript>",
144 "param1Name": "value1",
145 "paramNName": "valueN"
149 "implementation": "<implementationScript>",
151 "param1Name": "value1",
152 "paramNName": "valueN"
156 "implementation": "<implementationScript>",
158 "param1Name": "value1",
159 "paramNName": "valueN"
170 "volume_storage_id": "volume_storage1",
173 "size": "\"100 GB\"",
175 "volume_name": "volumeStorage1",
176 "custom_volume_type": "type1",
178 "delete_on_termination_vm": True,
181 "tenant": "tenantname_1",
182 "availability_zone": "zone1"
184 "is_predefined": False,
197 'policy_id': 'policy_scale_sss-vnf-template',
199 'policy_file': '*-vnfd.zip/*-vnf-policy.xml'
208 'name': 'opencos_sss_omm_img_release_20150723-1-disk1.vmdk',
210 'disk_format': 'VMDK',
211 'file_url': './zte-cn-sss-main-image/OMM/opencos_sss_omm_img_release_20150723-1-disk1.vmdk',
212 'container_type': 'vm',
214 'hypervisor_type': 'kvm'
216 'image_file_id': 'opencos_sss_omm_img_release_20150723-1-disk1'
223 'disk_format': 'VMDK',
224 'file_url': './zte-cn-sss-main-image/NE/sss.vmdk',
225 'container_type': 'vm',
227 'hypervisor_type': 'kvm'
229 'image_file_id': 'sss'
237 "name": "umac_241_control",
238 "network_name": "umac_control",
239 "is_predefined": False,
241 "netmask": "255.255.255.0",
243 "network_type": "vlan",
244 "physical_network": "phynet01",
245 "segmentation_id": "30",
246 "vlan_transparent": False,
248 "cidr": "192.168.199.0/24",
250 "gateway_ip": "192.168.199.1",
251 "dhcp_enabled": False,
256 "start_ip": "192.168.199.2",
257 "end_ip": "192.168.199.254",
260 "destination": "10.43.26.0/24",
261 "nexthop": "10.41.23.1"
266 "tenant": "tenantname_1"
268 "cloud_type": "IaaS",
269 "vl_profile": {"networkName": "test"},
270 "connectivity_type": {}
272 "route_id": "router01",
273 "route_external": False
282 "mac_address": "00:d9:00:82:11:e1",
283 "ip_address:": "192.168.1.21",
284 "ip_range_start": "192.168.1.20",
285 "ip_range_end": "192.168.1.29",
286 "floating_ip_address": {
287 "external_network": "extnet01",
288 "ip_address": "10.43.53.23"
290 "service_ip_address": "192.168.1.23",
293 "vnic_type": "normal",
294 "allowed_address_pairs": [
296 "ip": "192.168.1.13",
297 "mac": "00:f3:43:20:a2:a3"
302 "macbond": "00:d9:00:82:11:d1",
303 "sfc_encapsulation": "",
305 "gateway_ip": "192.168.199.1",
306 "netmask": "255.255.255.0",
307 "interface_name": "fe-01-02",
309 "function": "control",
314 "fixed_ip_address": "test"
334 "volume_storage_id": "test",
338 "tenant": "chinamobile",
339 "availability_zone": "test",
341 "volume_name": "test",
342 "custom_volume_type": "test",
343 "size_of_storage": "\"10 GB\"",
345 "image_file": "test",
354 "tenant": "chinamobile",
357 "networkName": "test",
358 "networkType": "test",
359 "physicalNetwork": "test",
360 "vlanTransparent": "test",
361 "segmentationId": "1",
363 "dhcpEnabled": "test",
368 "connectivity_type": {
369 "layer_protocol": "ipv4",
371 "dns_nameservers": "test",
372 "host_routes": "test",
374 "route_external": "test",
381 "networkId": "", # TODO
382 "subnetId": "", # TODO
386 "mac_address": "test",
391 "fixed_ip_address": "test"
396 "vnic_type": "direct",
398 "virtual_network_interface_requirements": [
400 "network_interface_requirements": {
401 "interfaceType": '{"schemaVersion": "0", "schemaLocation":"", "platformId": "generic", "mandatory": false, "configurationValue": "SR-IOV"}'
403 "support_mandatory": False,
404 "name": "SRIOV_Port",
405 "description": "sriov"
417 "tenant": "chinamobile",
418 "availability_zone": "test",
425 "vduName": "VDU_vbng_0",
437 "type": "tosca.nodes.nfv.Vdu.Compute",
440 "num_virtual_cpu": "16",
443 "virtual_mem_size": "8000 MB",
444 "vdu_memory_requirements": {
445 "memoryPageSize": "8 MB",
449 "virtual_storages": [{
450 "virtual_storage_id": "test",
451 "type_of_storage": "ephemeral",
452 "size_of_storage": "10 GB",
454 "type": "tosca.nodes.nfv.Vdu.Compute",
457 "artifact_name": "sw_image",
463 "volume_storage_id": "test",
470 "local_storages": [],
478 "description": "pe1_idofunderlayvpn"
482 "description": "pe2_idofunderlayvpn"
486 "description": "serviceTypeofunderlayvpn"
490 "description": "descriptionofunderlayvpn"
494 "description": "ac2_routeofunderlayvpn"
498 "description": "ac1_routeofunderlayvpn"
502 "description": "ac1_svlanofunderlayvpn"
506 "description": "ac2_ipofunderlayvpn"
510 "description": "ac1_ipofunderlayvpn"
514 "description": "ac2_portofunderlayvpn"
518 "description": "topologyofunderlayvpn"
522 "description": "technologyofunderlayvpn"
526 "description": "ac1_portofunderlayvpn"
530 "description": "ac2_svlanofunderlayvpn"
534 "description": "Nameofunderlayervpn"
539 "name": "underlayervpn",
540 "csarVersion": "1.0",
542 "csarProvider": "huawei",
545 "id": "ns_underlayervpn_1_0"
552 "volume_storage_id": "test",
556 "tenant": "chinamobile",
557 "availability_zone": "test",
559 "volume_name": "test",
560 "custom_volume_type": "test",
561 "size_of_storage": "\"10 GB\"",
563 "image_file": "test",
567 "type": "tosca.nodes.nfv.VNF",
575 "descriptor_id": "b1bb0ce7-1234-4fa7-95ed-4840d70a1179",
576 "flavour_description": "simple",
577 "descriptor_verison": "1.0",
578 "software_version": "1.0.0",
579 "template_name": "test",
583 "descriptor_version": "1.0.0",
585 "flavour_id": "simple",
586 "product_name": "test"
592 "template_name": "test",
593 "template_version": "1.0",
594 "template_author": "ZTE"
600 "virtual_storages": [
602 "virtual_storage_id": "test",
603 "type_of_storage": "ephemeral",
604 "size_of_storage": "10 GB",
609 "volume_storage_id": "test",
612 "vdu_id": "sunshine",
615 "artifact_name": "sw_image",
616 "type": "tosca.artifacts.nfv.SwImage",
628 "virtual_mem_size": "4096 MB"
637 "type": "tosca.nodes.nfv.Vdu.Compute",
640 "max_number_of_instances": 3,
641 "min_number_of_instances": 1
643 "name": "sunshine1234",
645 "operating_system": "linux",
648 "hash": "d0e7828293355a07c2dccaaa765c80b507e60e6167067c950dc2e6b0da0dbd34",
649 "algorithm": "SHA-256"
652 "disk_format": "qcow2",
654 "container_format": "bare",
658 "description": "vdu test",
662 "availability_zone": "",
669 "vduName": "sunshine1234",
678 "description": "test",
690 "basepath": "/tmp/tmpil6wVG",
694 "key_name": "virtual_link",
704 "type": "tosca.policies.nfv.InstantiationLevels",
707 "default_level": "instantiation_level_1",
709 "instantiation_level_1": {
715 "description": "vnf test instantiation_level_1"
717 "instantiation_level_2": {
723 "description": "vnf test instantiation_level_2"
725 "instantiation_level_3": {
731 "description": "vnf test instantiation_level_3"
737 "type": "tosca.policies.nfv.VduInstantiationLevels",
743 "instantiation_level_1": {
744 "number_of_instances": 1
746 "instantiation_level_2": {
747 "number_of_instances": 2
749 "instantiation_level_3": {
750 "number_of_instances": 3
756 "type": "tosca.policies.nfv.ScalingAspects",
761 "max_scale_level": 2,
762 "description": "sunshine aspect",
763 "name": "sunshine_aspect",
772 "type": "tosca.policies.nfv.VduInitialDelta",
778 "number_of_instances": 1
783 "type": "tosca.policies.nfv.VduScalingAspectDeltas",
790 "number_of_instances": 1
793 "aspect": "sunshine_aspect"
804 "vdu_id": "sunshine",
806 "trunk_mode": "false",
809 "address_type": "ip_address",
811 "floating_ip_activated": False,
812 "ip_address_assignment": False
822 "template_name": "test",
823 "template_version": "1.0",
824 "template_author": "ZTE"
828 vnfd_model_miss_required = {
831 "volume_storage_id": "test",
835 "tenant": "chinamobile",
836 "availability_zone": "test",
838 "volume_name": "test",
839 "custom_volume_type": "test",
840 "size_of_storage": "\"10 GB\"",
842 "image_file": "test",
846 "type": "tosca.nodes.nfv.VNF",
854 "descriptor_id": "b1bb0ce7-1234-4fa7-95ed-4840d70a1179",
855 "flavour_description": "simple",
856 "descriptor_verison": "1.0",
857 "software_version": "1.0.0",
858 "template_name": "test",
862 "descriptor_version": "1.0.0",
864 "flavour_id": "simple",
865 "product_name": "test"
871 "template_name": "test",
872 "template_version": "1.0",
873 "template_author": "ZTE"
879 "virtual_storages": [
881 "virtual_storage_id": "test",
882 "type_of_storage": "ephemeral",
883 "size_of_storage": "10 GB",
888 "volume_storage_id": "test",
891 "vdu_id": "sunshine",
894 "artifact_name": "sw_image",
895 "type": "tosca.artifacts.nfv.SwImage",
907 "virtual_mem_size": "4096 MB"
916 "type": "tosca.nodes.nfv.Vdu.Compute",
919 "max_number_of_instances": 3,
920 "min_number_of_instances": 1
922 "name": "sunshine1234",
924 "operating_system": "linux",
927 "hash": "d0e7828293355a07c2dccaaa765c80b507e60e6167067c950dc2e6b0da0dbd34",
928 "algorithm": "SHA-256"
931 "disk_format": "qcow2",
933 "container_format": "bare",
937 "description": "vdu test",
941 "availability_zone": "",
948 "vduName": "sunshine1234",
957 "description": "test",
969 "basepath": "/tmp/tmpil6wVG",
973 "key_name": "virtual_link",
983 "type": "tosca.policies.nfv.InstantiationLevels",
986 "default_level": "instantiation_level_1",
988 "instantiation_level_1": {
994 "description": "vnf test instantiation_level_1"
996 "instantiation_level_2": {
1002 "description": "vnf test instantiation_level_2"
1004 "instantiation_level_3": {
1006 "sunshine_aspect": {
1010 "description": "vnf test instantiation_level_3"
1016 "type": "tosca.policies.nfv.VduInstantiationLevels",
1022 "instantiation_level_1": {
1023 "number_of_instances": 1
1025 "instantiation_level_2": {
1026 "number_of_instances": 2
1028 "instantiation_level_3": {
1029 "number_of_instances": 3
1035 "type": "tosca.policies.nfv.ScalingAspects",
1039 "sunshine_aspect": {
1040 "max_scale_level": 2,
1041 "description": "sunshine aspect",
1042 "name": "sunshine_aspect",
1051 "type": "tosca.policies.nfv.VduInitialDelta",
1057 "number_of_instances": 1
1062 "type": "tosca.policies.nfv.VduScalingAspectDeltas",
1069 "number_of_instances": 1
1072 "aspect": "sunshine_aspect"
1078 # "vl_id": "test", //required
1082 "tenant": "chinamobile",
1085 # "networkName": "test", //required
1086 "networkType": "test",
1087 "physicalNetwork": "test",
1088 "vlanTransparent": "test",
1089 "segmentationId": "1",
1091 "dhcpEnabled": "test",
1092 "gatewayIp": "test",
1096 # "connectivity_type": {
1097 # "layer_protocol": "ipv4",
1099 "dns_nameservers": "test",
1100 "host_routes": "test",
1102 "route_external": "test",
1109 "vdu_id": "sunshine",
1111 "trunk_mode": "false",
1114 "address_type": "ip_address",
1115 # "l3_address_data": {
1116 # "floating_ip_activated": False,
1117 # "ip_address_assignment": False
1122 # "cp_id": "ext_cp", //required
1127 "template_name": "test",
1128 "template_version": "1.0",
1129 "template_author": "ZTE"