3d702309ee46c642fdd48dde5ca25360ac6bd802
[osm/RO.git] / vnfs / examples / dataplaneVNF1.yaml
1 ##\r
2 # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.\r
3 # This file is part of openmano\r
4 # All Rights Reserved.\r
5 #\r
6 # Licensed under the Apache License, Version 2.0 (the "License"); you may\r
7 # not use this file except in compliance with the License. You may obtain\r
8 # a copy of the License at\r
9 #\r
10 #         http://www.apache.org/licenses/LICENSE-2.0\r
11 #\r
12 # Unless required by applicable law or agreed to in writing, software\r
13 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT\r
14 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\r
15 # License for the specific language governing permissions and limitations\r
16 # under the License.\r
17 #\r
18 # For those usages not covered by the Apache License, Version 2.0 please\r
19 # contact with: nfvlabs@tid.es\r
20 ##\r
21 ---\r
22 vnf:\r
23     name:        dataplaneVNF1\r
24     description: "Example of a dataplane VNF consisting of a single VM for data plane workloads with high I/O performance requirements: 14 HW threads, 16 GB hugepages and 4 10G interfaces"\r
25     external-connections:\r
26     -   name:              mgmt\r
27         type:              mgmt       # "mgmt"(autoconnect to management net)\r
28         VNFC:              dataplaneVNF1-VM\r
29         local_iface_name:  eth0\r
30         description:       Management interface for general use\r
31     -   name:              xe0\r
32         type:              data\r
33         VNFC:              dataplaneVNF1-VM\r
34         local_iface_name:  xe0\r
35         description:       Dataplane interface 1\r
36     -   name:              xe1\r
37         type:              data\r
38         VNFC:              dataplaneVNF1-VM\r
39         local_iface_name:  xe1\r
40         description:       Dataplane interface 2\r
41     -   name:              xe2\r
42         type:              data\r
43         VNFC:              dataplaneVNF1-VM\r
44         local_iface_name:  xe2\r
45         description:       Dataplane interface 3\r
46     -   name:              xe3\r
47         type:              data\r
48         VNFC:              dataplaneVNF1-VM\r
49         local_iface_name:  xe3\r
50         description:       Dataplane interface 4\r
51     VNFC:\r
52     -   name:        dataplaneVNF1-VM\r
53         description: "Dataplane VM with high I/O performance requirements: 14 HW threads, 16 GB hugepages and 4 10G interfaces"\r
54         #Copy the image to a compute path and edit this path\r
55         VNFC image:  /path/to/imagefolder/dataplaneVNF1.qcow2\r
56         numas: \r
57         -   paired-threads: 7          # "cores", "paired-threads", "threads"\r
58             paired-threads-id: [ [0,1], [2,3], [4,5], [6,7], [8,9], [10,11], [12, 13] ]\r
59             memory: 16                 # GBytes\r
60             interfaces:\r
61             -   name:      xe0\r
62                 vpci:      "0000:00:11.0"\r
63                 dedicated: "yes"         # "yes"(passthrough), "no"(sriov with vlan tags), "yes:sriov"(sriovi, but exclusive and without vlan tag)\r
64                 bandwidth: 10 Gbps\r
65             -   name:      xe1\r
66                 vpci:      "0000:00:12.0"\r
67                 dedicated: "yes"\r
68                 bandwidth: 10 Gbps\r
69             -   name:      xe2\r
70                 vpci:      "0000:00:13.0"\r
71                 dedicated: "yes"\r
72                 bandwidth: 10 Gbps\r
73             -   name:      xe3\r
74                 vpci:      "0000:00:14.0"\r
75                 dedicated: "yes"\r
76                 bandwidth: 10 Gbps\r
77         bridge-ifaces:\r
78         -   name:      eth0\r
79             vpci:      "0000:00:09.0"\r
80             bandwidth: 1 Mbps          # Optional, informative only\r
81 \r