1 tosca_definitions_version: tosca_simple_profile_for_nfv_1_0
2 description: This is an example RIFT.ware VNF
10 tosca.nodes.nfv.riftio.pongvnfdVNF:
11 derived_from: tosca.nodes.nfv.riftio.VNF1
14 type: tosca.nodes.nfv.VL
24 config_template: "\n#!/bin/bash\n\n# Rest API configuration\npong_mgmt_ip=<rw_mgmt_ip>\n\
25 pong_mgmt_port=18889\n# username=<rw_username>\n# password=<rw_password>\n\
26 \n# VNF specific configuration\npong_server_ip=<rw_connection_point_name\
27 \ pong_vnfd/cp0>\nserver_port=5555\n\n# Make Rest API calls to configure\
28 \ VNF\ncurl -D /dev/null \\\n -H \"Accept: application/vnd.yang.data+xml\"\
29 \ \\\n -H \"Content-Type: application/vnd.yang.data+json\" \\\n \
30 \ -X POST \\\n -d \"{\\\"ip\\\":\\\"$pong_server_ip\\\", \\\"port\\\
31 \":$server_port}\" \\\n http://${pong_mgmt_ip}:${pong_mgmt_port}/api/v1/pong/server\n\
32 rc=$?\nif [ $rc -ne 0 ]\nthen\n echo \"Failed to set server(own) info\
33 \ for pong!\"\n exit $rc\nfi\n\nexit 0\n"
35 targets: [pong_vnfd_iovdu_0]
36 type: tosca.policies.nfv.riftio.vnf_configuration
37 substitution_mappings:
38 node_type: tosca.nodes.nfv.riftio.pongvnfdVNF
40 - virtualLink1: [pong_vnfd_cp0, virtualLink]
43 type: tosca.nodes.nfv.riftio.VDU1
45 cloud_init: "#cloud-config\npassword: fedora\nchpasswd: { expire: False }\n\
46 ssh_pwauth: True\nruncmd:\n - [ systemctl, daemon-reload ]\n - [ systemctl,\
47 \ enable, pong.service ]\n - [ systemctl, start, --no-block, pong.service\
48 \ ]\n - [ ifup, eth1 ]\n"
58 path: api/v1/pong/stats
64 description: no of ping requests
65 json_query_method: namekey
66 name: ping-request-rx-count
71 url_path: api/v1/pong/stats
74 description: no of ping responses
75 json_query_method: namekey
76 name: ping-response-tx-count
81 url_path: api/v1/pong/stats
85 cpu_affinity: dedicated
86 thread_allocation: prefer
108 ovs_acceleration: DISABLED
109 ovs_offload: DISABLED
111 pong_vnfd_iovdu_0_vm_image:
112 file: ../images/Fedora-x86_64-20-20131211.1-sda-pong.qcow2
113 image_checksum: 977484d95575f80ef8399c9cf1d45ebd
114 type: tosca.artifacts.Deployment.Image.riftio.QCOW2
117 create: pong_vnfd_iovdu_0_vm_image
119 type: tosca.nodes.nfv.riftio.CP1
124 vdu_intf_type: VIRTIO
127 node: pong_vnfd_iovdu_0