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,
187 "image_file": "volume_image"
195 'policy_id': 'policy_scale_sss-vnf-template',
197 'policy_file': '*-vnfd.zip/*-vnf-policy.xml'
206 'name': 'opencos_sss_omm_img_release_20150723-1-disk1.vmdk',
208 'disk_format': 'VMDK',
209 'file_url': './zte-cn-sss-main-image/OMM/opencos_sss_omm_img_release_20150723-1-disk1.vmdk',
210 'container_type': 'vm',
212 'hypervisor_type': 'kvm'
214 'image_file_id': 'opencos_sss_omm_img_release_20150723-1-disk1'
221 'disk_format': 'VMDK',
222 'file_url': './zte-cn-sss-main-image/NE/sss.vmdk',
223 'container_type': 'vm',
225 'hypervisor_type': 'kvm'
227 'image_file_id': 'sss'
235 "name": "umac_241_control",
236 "network_name": "umac_control",
237 "is_predefined": False,
239 "netmask": "255.255.255.0",
241 "network_type": "vlan",
242 "physical_network": "phynet01",
243 "segmentation_id": "30",
244 "vlan_transparent": False,
246 "cidr": "192.168.199.0/24",
248 "gateway_ip": "192.168.199.1",
249 "dhcp_enabled": False,
254 "start_ip": "192.168.199.2",
255 "end_ip": "192.168.199.254",
258 "destination": "10.43.26.0/24",
259 "nexthop": "10.41.23.1"
264 "tenant": "tenantname_1"
266 "cloud_type": "IaaS",
267 "vl_profile": {"networkName": "test"},
268 "connectivity_type": {}
270 "route_id": "router01",
271 "route_external": False
280 "mac_address": "00:d9:00:82:11:e1",
281 "ip_address:": "192.168.1.21",
282 "ip_range_start": "192.168.1.20",
283 "ip_range_end": "192.168.1.29",
284 "floating_ip_address": {
285 "external_network": "extnet01",
286 "ip_address": "10.43.53.23"
288 "service_ip_address": "192.168.1.23",
291 "vnic_type": "normal",
292 "allowed_address_pairs": [
294 "ip": "192.168.1.13",
295 "mac": "00:f3:43:20:a2:a3"
300 "macbond": "00:d9:00:82:11:d1",
301 "sfc_encapsulation": "",
303 "gateway_ip": "192.168.199.1",
304 "netmask": "255.255.255.0",
305 "interface_name": "fe-01-02",
307 "function": "control",
312 "fixed_ip_address": "test"
332 "volume_storage_id": "test",
336 "tenant": "chinamobile",
337 "availability_zone": "test",
339 "volume_name": "test",
340 "custom_volume_type": "test",
341 "size_of_storage": "\"10 GB\"",
343 "image_file": "test",
352 "tenant": "chinamobile",
355 "networkName": "test",
356 "networkType": "test",
357 "physicalNetwork": "test",
358 "vlanTransparent": "test",
359 "segmentationId": "1",
361 "dhcpEnabled": "test",
366 "connectivity_type": {
367 "layer_protocol": "ipv4",
369 "dns_nameservers": ["test"],
372 "destination": "10.43.26.0/24",
373 "nexthop": "10.41.23.1"
377 "route_external": False,
384 "networkId": "", # TODO
385 "subnetId": "", # TODO
389 "mac_address": "test",
394 "fixed_ip_address": "test"
399 "vnic_type": "direct",
401 "virtual_network_interface_requirements": [
403 "network_interface_requirements": {
404 "interfaceType": '{"schemaVersion": "0", "schemaLocation":"", "platformId": "generic", "mandatory": false, "configurationValue": "SR-IOV"}'
406 "support_mandatory": False,
407 "name": "SRIOV_Port",
408 "description": "sriov"
420 "tenant": "chinamobile",
421 "availability_zone": "test",
428 "vduName": "VDU_vbng_0",
440 "type": "tosca.nodes.nfv.Vdu.Compute",
443 "num_virtual_cpu": "16",
446 "virtual_mem_size": "8000 MB",
447 "vdu_memory_requirements": {
448 "memoryPageSize": "8 MB",
452 "virtual_storages": [{
453 "virtual_storage_id": "test",
454 "type_of_storage": "ephemeral",
455 "size_of_storage": "10 GB",
457 "type": "tosca.nodes.nfv.Vdu.Compute",
460 "artifact_name": "sw_image",
466 "volume_storage_id": "test",
473 "local_storages": [],
481 "description": "pe1_idofunderlayvpn"
485 "description": "pe2_idofunderlayvpn"
489 "description": "serviceTypeofunderlayvpn"
493 "description": "descriptionofunderlayvpn"
497 "description": "ac2_routeofunderlayvpn"
501 "description": "ac1_routeofunderlayvpn"
505 "description": "ac1_svlanofunderlayvpn"
509 "description": "ac2_ipofunderlayvpn"
513 "description": "ac1_ipofunderlayvpn"
517 "description": "ac2_portofunderlayvpn"
521 "description": "topologyofunderlayvpn"
525 "description": "technologyofunderlayvpn"
529 "description": "ac1_portofunderlayvpn"
533 "description": "ac2_svlanofunderlayvpn"
537 "description": "Nameofunderlayervpn"
542 "name": "underlayervpn",
543 "csarVersion": "1.0",
545 "csarProvider": "huawei",
548 "id": "ns_underlayervpn_1_0"
555 "volume_storage_id": "test",
559 "tenant": "chinamobile",
560 "availability_zone": "test",
562 "volume_name": "test",
563 "custom_volume_type": "test",
564 "size_of_storage": "\"10 GB\"",
566 "image_file": "test",
570 "type": "tosca.nodes.nfv.VNF",
578 "descriptor_id": "b1bb0ce7-1234-4fa7-95ed-4840d70a1179",
579 "flavour_description": "simple",
580 "descriptor_verison": "1.0",
581 "software_version": "1.0.0",
582 "template_name": "test",
586 "descriptor_version": "1.0.0",
588 "flavour_id": "simple",
589 "product_name": "test"
595 "template_name": "test",
596 "template_version": "1.0",
597 "template_author": "ZTE"
603 "virtual_storages": [
605 "virtual_storage_id": "test",
606 "type_of_storage": "ephemeral",
607 "size_of_storage": "10 GB",
612 "volume_storage_id": "test",
615 "vdu_id": "sunshine",
618 "artifact_name": "sw_image",
619 "type": "tosca.artifacts.nfv.SwImage",
631 "virtual_mem_size": "4096 MB"
640 "type": "tosca.nodes.nfv.Vdu.Compute",
643 "max_number_of_instances": 3,
644 "min_number_of_instances": 1
646 "name": "sunshine1234",
648 "operating_system": "linux",
651 "hash": "d0e7828293355a07c2dccaaa765c80b507e60e6167067c950dc2e6b0da0dbd34",
652 "algorithm": "SHA-256"
655 "disk_format": "qcow2",
657 "container_format": "bare",
661 "description": "vdu test",
665 "availability_zone": "",
672 "vduName": "sunshine1234",
681 "description": "test",
693 "basepath": "/tmp/tmpil6wVG",
697 "key_name": "virtual_link",
707 "type": "tosca.policies.nfv.InstantiationLevels",
710 "default_level": "instantiation_level_1",
712 "instantiation_level_1": {
718 "description": "vnf test instantiation_level_1"
720 "instantiation_level_2": {
726 "description": "vnf test instantiation_level_2"
728 "instantiation_level_3": {
734 "description": "vnf test instantiation_level_3"
740 "type": "tosca.policies.nfv.VduInstantiationLevels",
746 "instantiation_level_1": {
747 "number_of_instances": 1
749 "instantiation_level_2": {
750 "number_of_instances": 2
752 "instantiation_level_3": {
753 "number_of_instances": 3
759 "type": "tosca.policies.nfv.ScalingAspects",
764 "max_scale_level": 2,
765 "description": "sunshine aspect",
766 "name": "sunshine_aspect",
775 "type": "tosca.policies.nfv.VduInitialDelta",
781 "number_of_instances": 1
786 "type": "tosca.policies.nfv.VduScalingAspectDeltas",
793 "number_of_instances": 1
796 "aspect": "sunshine_aspect"
806 "vdu_id": "sunshine",
808 "trunk_mode": "false",
811 "address_type": "ip_address",
813 "floating_ip_activated": False,
814 "ip_address_assignment": False
824 "template_name": "test",
825 "template_version": "1.0",
826 "template_author": "ZTE"
830 vnfd_model_miss_required = {
833 "volume_storage_id": "test",
837 "tenant": "chinamobile",
838 "availability_zone": "test",
840 "volume_name": "test",
841 "custom_volume_type": "test",
842 "size_of_storage": "\"10 GB\"",
844 "image_file": "test",
848 "type": "tosca.nodes.nfv.VNF",
856 "descriptor_id": "b1bb0ce7-1234-4fa7-95ed-4840d70a1179",
857 "flavour_description": "simple",
858 "descriptor_verison": "1.0",
859 "software_version": "1.0.0",
860 "template_name": "test",
864 "descriptor_version": "1.0.0",
866 "flavour_id": "simple",
867 "product_name": "test"
873 "template_name": "test",
874 "template_version": "1.0",
875 "template_author": "ZTE"
881 "virtual_storages": [
883 "virtual_storage_id": "test",
884 "type_of_storage": "ephemeral",
885 "size_of_storage": "10 GB",
890 "volume_storage_id": "test",
893 "vdu_id": "sunshine",
896 "artifact_name": "sw_image",
897 "type": "tosca.artifacts.nfv.SwImage",
909 "virtual_mem_size": "4096 MB"
918 "type": "tosca.nodes.nfv.Vdu.Compute",
921 "max_number_of_instances": 3,
922 "min_number_of_instances": 1
924 "name": "sunshine1234",
926 "operating_system": "linux",
929 "hash": "d0e7828293355a07c2dccaaa765c80b507e60e6167067c950dc2e6b0da0dbd34",
930 "algorithm": "SHA-256"
933 "disk_format": "qcow2",
935 "container_format": "bare",
939 "description": "vdu test",
943 "availability_zone": "",
950 "vduName": "sunshine1234",
959 "description": "test",
971 "basepath": "/tmp/tmpil6wVG",
975 "key_name": "virtual_link",
985 "type": "tosca.policies.nfv.InstantiationLevels",
988 "default_level": "instantiation_level_1",
990 "instantiation_level_1": {
996 "description": "vnf test instantiation_level_1"
998 "instantiation_level_2": {
1000 "sunshine_aspect": {
1004 "description": "vnf test instantiation_level_2"
1006 "instantiation_level_3": {
1008 "sunshine_aspect": {
1012 "description": "vnf test instantiation_level_3"
1018 "type": "tosca.policies.nfv.VduInstantiationLevels",
1024 "instantiation_level_1": {
1025 "number_of_instances": 1
1027 "instantiation_level_2": {
1028 "number_of_instances": 2
1030 "instantiation_level_3": {
1031 "number_of_instances": 3
1037 "type": "tosca.policies.nfv.ScalingAspects",
1041 "sunshine_aspect": {
1042 "max_scale_level": 2,
1043 "description": "sunshine aspect",
1044 "name": "sunshine_aspect",
1053 "type": "tosca.policies.nfv.VduInitialDelta",
1059 "number_of_instances": 1
1064 "type": "tosca.policies.nfv.VduScalingAspectDeltas",
1071 "number_of_instances": 1
1074 "aspect": "sunshine_aspect"
1080 # "vl_id": "test", //required
1084 "tenant": "chinamobile",
1087 # "networkName": "test", //required
1088 "networkType": "test",
1089 "physicalNetwork": "test",
1090 "vlanTransparent": "test",
1091 "segmentationId": "1",
1093 "dhcpEnabled": "test",
1094 "gatewayIp": "test",
1098 # "connectivity_type": {
1099 # "layer_protocol": "ipv4",
1101 "dns_nameservers": "test",
1102 "host_routes": "test",
1104 "route_external": False,
1111 "vdu_id": "sunshine",
1113 "trunk_mode": "false",
1116 "address_type": "ip_address",
1117 # "l3_address_data": {
1118 # "floating_ip_activated": False,
1119 # "ip_address_assignment": False
1124 # "cp_id": "ext_cp", //required
1129 "template_name": "test",
1130 "template_version": "1.0",
1131 "template_author": "ZTE"