update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b second try
[osm/SO.git] / common / python / rift / mano / tosca_translator / test / data / tosca_ping_pong_epa / Definitions / pong_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: pong_vnfd
5   vendor: RIFT.io
6   version: 1.0
7 imports:
8 - riftiotypes.yaml
9 node_types:
10   tosca.nodes.nfv.riftio.pongvnfdVNF:
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       targets: [pong_vnfd_iovdu_0]
24       type: tosca.policies.nfv.riftio.vnf_configuration
25   substitution_mappings:
26     node_type: tosca.nodes.nfv.riftio.pongvnfdVNF
27     requirements:
28     - virtualLink1: [pong_vnfd_cp0, virtualLink]
29   node_templates:
30     pong_vnfd_iovdu_0:
31       type: tosca.nodes.nfv.riftio.VDU1
32       properties:
33         cloud_init: "#cloud-config\npassword: fedora\nchpasswd: { expire: False }\n\
34           ssh_pwauth: True\nruncmd:\n  - [ systemctl, daemon-reload ]\n  - [ systemctl,\
35           \ enable, pong.service ]\n  - [ systemctl, start, --no-block, pong.service\
36           \ ]\n  - [ ifup, eth1 ]\n"
37         count: 1
38       capabilities:
39         hypervisor_epa:
40           properties:
41             type: PREFER_KVM
42             version: 1
43         mgmt_interface:
44           properties:
45             dashboard_params:
46               path: api/v1/pong/stats
47               port: 18889
48             port: 18889
49             protocol: tcp
50         monitoring_param:
51           properties:
52             description: no of ping requests
53             json_query_method: namekey
54             name: ping-request-rx-count
55             ui_data:
56               group_tag: Group1
57               units: packets
58               widget_type: counter
59             url_path: api/v1/pong/stats
60         monitoring_param_1:
61           properties:
62             description: no of ping responses
63             json_query_method: namekey
64             name: ping-response-tx-count
65             ui_data:
66               group_tag: Group1
67               units: packets
68               widget_type: counter
69             url_path: api/v1/pong/stats
70         nfv_compute:
71           properties:
72             cpu_allocation:
73               cpu_affinity: dedicated
74               thread_allocation: prefer
75             disk_size: 4 GB
76             mem_page_size: normal
77             mem_size: 1024 MB
78             num_cpus: 4
79         numa_extension:
80           properties:
81             mem_policy: STRICT
82             node:
83             - id: 0
84               mem_size: 512 MB
85               vcpus:
86               - 0
87               - 1
88             - id: 1
89               mem_size: 512 MB
90               vcpus:
91               - 2
92               - 3
93             node_cnt: 2
94         vswitch_epa:
95           properties:
96             ovs_acceleration: DISABLED
97             ovs_offload: DISABLED
98       artifacts:
99         pong_vnfd_iovdu_0_vm_image:
100           file: ../images/Fedora-x86_64-20-20131211.1-sda-pong.qcow2
101           image_checksum: 977484d95575f80ef8399c9cf1d45ebd
102           type: tosca.artifacts.Deployment.Image.riftio.QCOW2
103       interfaces:
104         Standard:
105           create: pong_vnfd_iovdu_0_vm_image
106     pong_vnfd_cp0:
107       type: tosca.nodes.nfv.riftio.CP1
108       properties:
109         cp_type: VPORT
110         name: pong_vnfd/cp0
111         vdu_intf_name: eth0
112         vdu_intf_type: VIRTIO
113       requirements:
114       - virtualBinding:
115           node: pong_vnfd_iovdu_0