update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b second try
[osm/SO.git] / common / python / rift / mano / tosca_translator / test / data / tosca_ping_pong_epa / Definitions / ping_vnfd.yaml
1 tosca_definitions_version: tosca_simple_profile_for_nfv_1_0
2 description: This is an example RIFT.ware VNF
3 metadata:
4   ID: ping_vnfd
5   vendor: RIFT.io
6   version: 1.0
7 imports:
8 - riftiotypes.yaml
9 node_types:
10   tosca.nodes.nfv.riftio.pingvnfdVNF:
11     derived_from: tosca.nodes.nfv.riftio.VNF1
12     requirements:
13     - virtualLink1:
14         type: tosca.nodes.nfv.VL
15 topology_template:
16   policies:
17   - configuration:
18       properties:
19         config:
20           config_details:
21             script_type: rift
22           config_type: script
23         initial_config_primitive:
24         - name: set ping rate
25           parameter:
26           - rate: 5
27           seq: 1
28           user_defined_script: ping_set_rate.py
29       targets: [ping_vnfd_iovdu_0]
30       type: tosca.policies.nfv.riftio.vnf_configuration
31   substitution_mappings:
32     node_type: tosca.nodes.nfv.riftio.pingvnfdVNF
33     requirements:
34     - virtualLink1: [ping_vnfd_cp0, virtualLink]
35   node_templates:
36     ping_vnfd_iovdu_0:
37       type: tosca.nodes.nfv.riftio.VDU1
38       properties:
39         cloud_init: "#cloud-config\npassword: fedora\nchpasswd: { expire: False }\n\
40           ssh_pwauth: True\nruncmd:\n  - [ systemctl, daemon-reload ]\n  - [ systemctl,\
41           \ enable, ping.service ]\n  - [ systemctl, start, --no-block, ping.service\
42           \ ]\n  - [ ifup, eth1 ]\n"
43         count: 1
44       capabilities:
45         hypervisor_epa:
46           properties:
47             type: PREFER_KVM
48             version: 1
49         mgmt_interface:
50           properties:
51             dashboard_params:
52               path: api/v1/ping/stats
53               port: 18888
54             port: 18888
55             protocol: tcp
56         monitoring_param:
57           properties:
58             description: no of ping requests
59             json_query_method: namekey
60             name: ping-request-tx-count
61             ui_data:
62               group_tag: Group1
63               units: packets
64               widget_type: counter
65             url_path: api/v1/ping/stats
66         monitoring_param_1:
67           properties:
68             description: no of ping responses
69             json_query_method: namekey
70             name: ping-response-rx-count
71             ui_data:
72               group_tag: Group1
73               units: packets
74               widget_type: counter
75             url_path: api/v1/ping/stats
76         nfv_compute:
77           properties:
78             cpu_allocation:
79               cpu_affinity: dedicated
80               thread_allocation: prefer
81             disk_size: 4 GB
82             mem_page_size: normal
83             mem_size: 1024 MB
84             num_cpus: 4
85         numa_extension:
86           properties:
87             mem_policy: STRICT
88             node:
89             - id: 0
90               mem_size: 512 MB
91               vcpus:
92               - 0
93               - 1
94             - id: 1
95               mem_size: 512 MB
96               vcpus:
97               - 2
98               - 3
99             node_cnt: 2
100         vswitch_epa:
101           properties:
102             ovs_acceleration: DISABLED
103             ovs_offload: DISABLED
104       artifacts:
105         ping_vnfd_iovdu_0_vm_image:
106           file: ../images/Fedora-x86_64-20-20131211.1-sda-ping.qcow2
107           image_checksum: a6ffaa77f949a9e4ebb082c6147187cf
108           type: tosca.artifacts.Deployment.Image.riftio.QCOW2
109       interfaces:
110         Standard:
111           create: ping_vnfd_iovdu_0_vm_image
112     ping_vnfd_cp0:
113       type: tosca.nodes.nfv.riftio.CP1
114       properties:
115         cp_type: VPORT
116         name: ping_vnfd/cp0
117         vdu_intf_name: eth0
118         vdu_intf_type: VIRTIO
119       requirements:
120       - virtualBinding:
121           node: ping_vnfd_iovdu_0