1 # Copyright 2018 ZTE Corporation.
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.
23 "unit_size": 1000000000
25 "type_of_storage": "volume",
26 "rdma_enabled": False,
29 "volume_storage_id": "vNAT_Storage_6wdgwzedlb6sq18uzrr41sof7",
37 "vNAT_Storage_6wdgwzedlb6sq18uzrr41sof7"
44 "configurable_properties": {
46 "additional_vnfc_configurable_properties": {
53 "description": "the virtual machine of vNat",
64 "artifact_name": "vNatVNFImage",
65 "type": "tosca.artifacts.nfv.SwImage",
67 "operating_system": "linux",
68 "sw_image": "/swimages/vRouterVNF_ControlPlane.qcow2",
69 "name": "vNatVNFImage",
70 "container_format": "bare",
72 "disk_format": "qcow2",
73 "supported_virtualisation_environments": [
81 "file": "/swimages/vRouterVNF_ControlPlane.qcow2"
85 "flavor_extra_specs": {
86 "hw:cpu_sockets": "2",
87 "sw:ovs_dpdk": "true",
88 "hw:cpu_threads": "2",
89 "hw:numa_mem.1": "3072",
90 "hw:numa_mem.0": "1024",
92 "hw:numa_cpus.0": "0,1",
93 "hw:numa_cpus.1": "2,3,4,5",
95 "hw:cpu_threads_policy": "isolate"
97 "cpu_frequency": "2.4 GHz",
101 "local_storages": [],
102 "image_file": "vNatVNFImage",
109 "operating_system": "linux",
110 "sw_image": "/swimages/vRouterVNF_ControlPlane.qcow2",
111 "name": "vNatVNFImage",
112 "container_format": "bare",
114 "disk_format": "qcow2",
115 "supported_virtualisation_environments": [
123 "image_file_id": "vNatVNFImage",
128 "local_storages": [],
132 "key_name": "sriov_plane",
133 "cp_id": "SRIOV_Port"
141 "vl_id": "sriov_link",
142 "route_external": False,
148 "connectivity_type": {
149 "layer_protocol": "ipv4",
150 "flow_pattern": "flat"
152 "description": "sriov_link",
161 "vl_id": "sriov_link",
162 "vdu_id": "vdu_vNat",
164 "cp_id": "SRIOV_Port",
168 "address_type": "ip_address",
170 "ip_address_type": "ipv4",
171 "floating_ip_activated": False,
172 "number_of_ip_address": 1,
173 "ip_address_assignment": True
177 "description": "sriov port",
178 "layer_protocol": "ipv4",
179 "virtual_network_interface_requirements": [
184 "support_mandatory": False,
186 "description": "sriov"
192 "support_mandatory": False,
194 "description": "normal"
198 "bitrate_requirement": 10
203 "vnfSoftwareVersion": "1.0.0",
204 "vnfProductName": "zte",
205 "localizationLanguage": [
209 "vnfProvider": "zte",
211 "defaultLocalizationLanguage": "english",
212 "vnfdId": "00342b18-a5c7-11e8-998c-bf1755941f12",
214 "vnfProductInfoDescription": "hss",
215 "vnfdVersion": "1.0.0",
216 "vnfProductInfoName": "hss"
220 "descriptor_id": "00342b18-a5c7-11e8-998c-bf1755941f12",
221 "descriptor_version": "1.0.0",
222 "software_version": "1.0.0",
230 nsd_data = {"vnffgs": [{"vnffg_id": "vnffg1",
234 "properties": {"vendor": "zte",
235 "connection_point": ["m6000_data_in",
239 "constituent_vnfs": ["VFW",
241 "number_of_endpoints": 3,
242 "dependent_virtual_link": ["sfc_data_network",
245 "inputs": {"sfc_data_network": {"type": "string",
246 "value": "sfc_data_network"},
247 "externalDataNetworkName": {"type": "string",
248 "value": "vlan_4004_tunnel_net"},
249 "externalManageNetworkName": {"type": "string",
250 "value": "vlan_4008_mng_net"},
251 "NatIpRange": {"type": "string",
252 "value": "192.167.0.10-192.168.0.20"},
253 "externalPluginManageNetworkName": {"type": "string",
254 "value": "vlan_4007_plugin_net"}},
255 "pnfs": [{"pnf_id": "m6000_s",
258 "properties": {"vendor": "zte",
259 "request_reclassification": False,
260 "pnf_type": "m6000s",
262 "management_address": "111111",
264 "nsh_aware": False}}],
265 "fps": [{"properties": {"symmetric": False,
266 "policy": {"type": "ACL",
267 "criteria": {"dest_port_range": "1-100",
268 "ip_protocol": "tcp",
269 "source_ip_range": ["119.1.1.1-119.1.1.10"],
270 "dest_ip_range": [{"get_input": "NatIpRange"}],
272 "source_port_range": "1-100"}}},
273 "forwarder_list": [{"capability": "",
275 "node_name": "m6000_data_out"},
278 "node_name": "m600_tunnel_cp"},
279 {"capability": "vnat_fw_inout",
281 "node_name": "VNAT"}],
284 {"properties": {"symmetric": True,
285 "policy": {"type": "ACL",
286 "criteria": {"dest_port_range": "1-100",
287 "ip_protocol": "tcp",
288 "source_ip_range": ["1-100"],
289 "dest_ip_range": ["1-100"],
291 "source_port_range": "1-100"}}},
292 "forwarder_list": [{"capability": "",
294 "node_name": "m6000_data_in"},
297 "node_name": "m600_tunnel_cp"},
298 {"capability": "vfw_fw_inout",
301 {"capability": "vnat_fw_inout",
303 "node_name": "VNAT"},
306 "node_name": "m600_tunnel_cp"},
309 "node_name": "m6000_data_out"}],
313 "vnfs": [{"vnf_id": "VFW",
315 "properties": {"plugin_info": "vbrasplugin_1.0",
318 "adjust_vnf_capacity": True,
320 "vnf_extend_type": "driver",
321 "csarVersion": "v1.0",
323 "csarProvider": "ZTE",
328 "vmnumber_overquota_alarm": True,
329 "vnfd_version": "1.0.0",
330 "externalPluginManageNetworkName": "vlan_4007_plugin_net",
331 "id": "vcpe_vfw_zte_1_0",
332 "request_reclassification": False},
333 "dependencies": [{"key_name": "vfw_ctrl_by_manager_cp",
334 "vl_id": "ext_mnet_net"},
335 {"key_name": "vfw_data_cp",
336 "vl_id": "sfc_data_network"}],
337 "type": "tosca.nodes.nfv.ext.zte.VNF.VFW",
339 "ns_exposed": {"external_cps": [],
341 "policies": [{"file_url": "policies/abc.drl",
343 "vls": [{"route_id": "",
344 "vl_id": "ext_mnet_net",
345 "route_external": False,
347 "properties": {"name": "vlan_4008_mng_net",
349 "location_info": {"tenant": "admin",
351 "availability_zone": "nova"},
353 "dhcp_enabled": True,
354 "network_name": "vlan_4008_mng_net",
355 "network_type": "vlan"}},
357 "vl_id": "ext_datanet_net",
358 "route_external": False,
360 "properties": {"name": "vlan_4004_tunnel_net",
362 "location_info": {"tenant": "admin",
364 "availability_zone": "nova"},
366 "dhcp_enabled": True,
367 "network_name": "vlan_4004_tunnel_net",
368 "network_type": "vlan"}},
370 "vl_id": "sfc_data_network",
371 "route_external": False,
373 "properties": {"name": "sfc_data_network",
374 "dhcp_enabled": True,
375 "is_predefined": False,
376 "location_info": {"tenant": "admin",
378 "availability_zone": "nova"},
381 "network_name": "sfc_data_network",
382 "network_type": "vlan"}}],
383 "cps": [{"pnf_id": "m6000_s",
386 "cp_id": "m6000_data_out",
387 "properties": {"direction": "bidirectional",
388 "vnic_type": "normal",
390 "mac_address": "11-22-33-22-11-44",
391 "interface_name": "xgei-0/4/1/5",
392 "ip_address": "176.1.1.2",
394 "sfc_encapsulation": "mac"}},
395 {"pnf_id": "m6000_s",
396 "vl_id": "ext_datanet_net",
398 "cp_id": "m600_tunnel_cp",
399 "properties": {"direction": "bidirectional",
400 "vnic_type": "normal",
402 "mac_address": "00-11-00-22-33-00",
403 "interface_name": "gei-0/4/0/13",
404 "ip_address": "191.167.100.5",
406 "sfc_encapsulation": "mac"}},
407 {"pnf_id": "m6000_s",
410 "cp_id": "m6000_data_in",
411 "properties": {"direction": "bidirectional",
412 "vnic_type": "normal",
414 "mac_address": "11-22-33-22-11-41",
415 "interface_name": "gei-0/4/0/7",
416 "ip_address": "1.1.1.1",
418 "sfc_encapsulation": "mac",
420 {"pnf_id": "m6000_s",
421 "vl_id": "ext_mnet_net",
423 "cp_id": "m600_mnt_cp",
424 "properties": {"direction": "bidirectional",
425 "vnic_type": "normal",
427 "mac_address": "00-11-00-22-33-11",
428 "interface_name": "gei-0/4/0/1",
429 "ip_address": "10.46.244.51",
431 "sfc_encapsulation": "mac",
433 "metadata": {"invariant_id": "vcpe_ns_sff_1",
435 "csarVersion": "v1.0",
437 "csarProvider": "ZTE",
441 "description": "vcpe_ns"},
444 # "descriptor_id": "VCPE_NS",
445 "descriptor_id": "b632bddc-bccd-4180-bd8d-4e8a9578eff7",
449 "invariant_id": "vcpe_ns_sff_1"
462 "sdwanvpnresource_list": [
464 "sdwanvpn_topology": "",
477 "request_reclassification": False,
478 "pnf_type": "m6000s",
480 "management_address": "111111",
489 "vnf_id": "sdwansiteresource",
492 "sdwandevice_type": "",
493 "sdwandevice_class": "PNF",
494 "multi_stage_design": "false",
495 "min_instances": "1",
496 "sdwansite_controlPoint": "",
497 "id": "cd557883-ac4b-462d-aa01-421b5fa606b1",
498 "sdwansite_longitude": "",
499 "sdwansite_latitude": "",
500 "sdwansite_postcode": "",
501 "sdwansite_type": "",
503 "ecomp_generated_naming": True
505 "sdwansite_emails": "",
506 "sdwansite_role": "",
508 "sdwansite_address": "",
509 "sdwansite_description": "",
510 "availability_zone_max_count": "1",
516 "type": "org.openecomp.service.EnhanceService",
518 "descriptor_id": "49ee73f4-1e31-4054-b871-eb9b1c29999b",
520 "invariant_id": "5de07996-7ff0-4ec1-b93c-e3a00bb3f207",
521 "name": "Enhance_Service",
525 "category": "E2E Service",
527 "description": "Enhance_Service",
528 "instantiationType": "A-la-carte",
530 "environmentContext": "General_Revenue-Bearing",
531 "serviceEcompNaming": True,
532 "UUID": "49ee73f4-1e31-4054-b871-eb9b1c29999b",
533 "ecompGeneratedNaming": True,
535 "invariantUUID": "5de07996-7ff0-4ec1-b93c-e3a00bb3f207",
537 "name": "Enhance_Service"
541 "category": "E2E Service",
543 "description": "Enhance_Service",
544 "instantiationType": "A-la-carte",
546 "environmentContext": "General_Revenue-Bearing",
547 "serviceEcompNaming": True,
548 "UUID": "49ee73f4-1e31-4054-b871-eb9b1c29999b",
549 "ecompGeneratedNaming": True,
551 "invariantUUID": "5de07996-7ff0-4ec1-b93c-e3a00bb3f207",
553 "name": "Enhance_Service"
557 vnf_subscription_data = {
559 "notificationTypes": [
560 "VnfPackageOnboardingNotification"
562 "vnfProductsFromProviders": [{
563 "vnfProvider": "string",
565 "vnfProductName": "string",
567 "vnfSoftwareVersion": "string",
575 "00342b18-a5c7-11e8-998c-bf1755941f12"
578 "3fa85f64-5717-4562-b3fc-2c963f66afa6"
580 "operationalState": [
587 "callbackUri": "http://www.vnf1.com/notification",
594 "password": "pwd1234"