1 tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
8 tosca.datatypes.network.riftio.vnf_configuration:
15 tosca.capabilities.riftio.mgmt_interface_type:
16 derived_from: tosca.capabilities.Endpoint
22 tosca.capabilities.riftio.http_endpoint_type:
23 derived_from: tosca.capabilities.Endpoint
29 tosca.capabilities.riftio.monitoring_param:
30 derived_from: tosca.capabilities.nfv.Metric
55 tosca.nodes.riftio.CP1:
56 derived_from: tosca.nodes.nfv.CP
59 description: Type of the connection point
62 description: Name of the connection point
65 description: Name of the interface on VDU
68 description: Type of the interface on VDU
70 tosca.nodes.riftio.VL1:
71 derived_from: tosca.nodes.nfv.VL.ELAN
75 tosca.nodes.riftio.VNF1:
76 derived_from: tosca.nodes.nfv.VNF
80 - in_range: [1, 65535]
86 type: tosca.datatypes.network.riftio.vnf_configuration
89 type: tosca.capabilities.riftio.http_endpoint_type
91 type: tosca.capabilities.riftio.mgmt_interface_type
93 type: tosca.capabilities.riftio.monitoring_param
95 type: tosca.capabilities.riftio.monitoring_param
98 node: tosca.nodes.riftio.VDU1
99 occurences: [1, UNBOUND]
100 relationship: tosca.relationships.nfv.VirtualLinksTo
101 type: tosca.capabilities.nfv.VirtualLinkable
102 tosca.nodes.riftio.VDU1:
103 derived_from: tosca.nodes.nfv.VDU
106 default: #cloud-config
113 type: tosca.capabilities.nfv.VirtualLinkable
115 tosca.groups.riftio.ConfigPrimitives:
116 derived_from: tosca.policies.Root
120 tosca.policies.riftio.InitialConfigPrimitive:
121 derived_from: tosca.policies.Root
131 tosca.policies.riftio.ScalingGroup:
132 derived_from: tosca.policies.Root
146 - scaling_group_descriptor:
148 post_scale_out: ping config
149 max_instance_count: 10
150 min_instance_count: 1
152 type: tosca.policies.riftio.ScalingGroup
155 - initial_config_primitive:
158 type: tosca.policies.riftio.InitialConfigPrimitive
159 user_defined_script: start_traffic.py
162 type: tosca.groups.riftio.ConfigPrimitives
169 user_defined_script: ping_config.py
173 description: Translated from YANG
176 type: tosca.nodes.riftio.VNF1
180 start_by_default: false
190 path: api/v1/ping/stats
197 path: api/v1/ping/stats
201 vdu: ping_vnfd_iovdu_0
204 description: no of ping requests
206 http_endpoint_ref: api/v1/ping/stats
208 json_query_method: NAMEKEY
209 name: ping-request-tx-count
215 description: no of ping responses
217 http_endpoint_ref: api/v1/ping/stats
219 json_query_method: NAMEKEY
220 name: ping-response-rx-count
226 node: ping_vnfd_iovdu_0
228 type: tosca.nodes.riftio.VDU1
230 cloud_init: "#cloud-config\npassword: fedora\nchpasswd: { expire: False }\n\
231 ssh_pwauth: True\nruncmd:\n - [ systemctl, daemon-reload ]\n - [ systemctl,\
232 \ enable, pong.service ]\n - [ systemctl, start, --no-block, pong.service\
233 \ ]\n - [ ifup, eth1 ]\n"
242 pong_vnfd_iovdu_0_vm_image:
243 file: ../images/Fedora-x86_64-20-20131211.1-sda-pong.qcow2
244 image_checksum: 1234567890abcdefg
245 type: tosca.artifacts.Deployment.Image.riftio.QCOW2
248 create: pong_vnfd_iovdu_0_vm_image
250 type: tosca.nodes.riftio.CP1
255 vdu_intf_type: VIRTIO
258 node: pong_vnfd_iovdu_0
262 type: tosca.nodes.riftio.VL1
267 type: tosca.nodes.riftio.CP1
272 vdu_intf_type: VIRTIO
275 node: ping_vnfd_iovdu_0
279 type: tosca.nodes.riftio.VNF1
290 config_template: "\n#!/bin/bash\n\n# Rest API configuration\npong_mgmt_ip=<rw_mgmt_ip>\n\
291 pong_mgmt_port=18889\n# username=<rw_username>\n# password=<rw_password>\n\
292 \n# VNF specific configuration\npong_server_ip=<rw_connection_point_name\
293 \ pong_vnfd/cp0>\nserver_port=5555\n\n# Make Rest API calls to configure\
294 \ VNF\ncurl -D /dev/stdout \\\n -H \"Accept: application/vnd.yang.data+xml\"\
295 \ \\\n -H \"Content-Type: application/vnd.yang.data+json\" \\\n \
296 \ -X POST \\\n -d \"{\\\"ip\\\":\\\"$pong_server_ip\\\", \\\"port\\\
297 \":$server_port}\" \\\n http://${pong_mgmt_ip}:${pong_mgmt_port}/api/v1/pong/server\n\
298 rc=$?\nif [ $rc -ne 0 ]\nthen\n echo \"Failed to set server(own) info\
299 \ for pong!\"\n exit $rc\nfi\n\nexit 0\n"
304 path: api/v1/pong/stats
311 path: api/v1/pong/stats
315 vdu: pong_vnfd_iovdu_0
318 description: no of ping requests
320 http_endpoint_ref: api/v1/pong/stats
322 json_query_method: NAMEKEY
323 name: ping-request-rx-count
329 description: no of ping responses
331 http_endpoint_ref: api/v1/pong/stats
333 json_query_method: NAMEKEY
334 name: ping-response-tx-count
340 node: pong_vnfd_iovdu_0
342 type: tosca.nodes.riftio.VDU1
344 cloud_init: "#cloud-config\npassword: fedora\nchpasswd: { expire: False }\n\
345 ssh_pwauth: True\nruncmd:\n - [ systemctl, daemon-reload ]\n - [ systemctl,\
346 \ enable, ping.service ]\n - [ systemctl, start, --no-block, ping.service\
347 \ ]\n - [ ifup, eth1 ]\n"
356 ping_vnfd_iovdu_0_vm_image:
357 file: ../images/Fedora-x86_64-20-20131211.1-sda-ping.qcow2
358 image_checksum: 1234567890abcdefg
359 type: tosca.artifacts.Deployment.Image.riftio.QCOW2
362 create: ping_vnfd_iovdu_0_vm_image