Merge changes I392f2858,Iba0cab65,I16304baf,Ic5befeff,I77f648f4, ...
[osm/RO.git] / vnfs / examples / dataplaneVNF_2VMs.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:        dataplaneVNF_2VMs\r
24     description: "Example of a dataplane VNF consisting of two VMs for data plane workloads with one internal network"\r
25     # class: parent      # Optional. Used to organize VNFs\r
26     internal-connections:\r
27     -   name:        datanet\r
28         description: datanet\r
29         type:        data\r
30         elements:\r
31         -   VNFC:             VNF_2VMs-VM1\r
32             local_iface_name: xe0\r
33         -   VNFC:             VNF_2VMs-VM2\r
34             local_iface_name: xe0\r
35     external-connections:\r
36     -   name:              control0\r
37         type:              mgmt\r
38         VNFC:              VNF_2VMs-VM1\r
39         local_iface_name:  eth0\r
40         description:       control interface VM1\r
41     -   name:              control1\r
42         type:              mgmt\r
43         VNFC:              VNF_2VMs-VM2\r
44         local_iface_name:  eth0\r
45         description:       control interface VM2\r
46     -   name:              in\r
47         type:              data\r
48         VNFC:              VNF_2VMs-VM1\r
49         local_iface_name:  xe1\r
50         description:       Dataplane interface input\r
51     -   name:              out\r
52         type:              data\r
53         VNFC:              VNF_2VMs-VM2\r
54         local_iface_name:  xe1\r
55         description:       Dataplane interface output\r
56     VNFC:\r
57     -   name:        VNF_2VMs-VM1\r
58         description: "Dataplane VM1 with 4 threads, 2 GB hugepages, 2 SR-IOV interface"\r
59         #Copy the image to a compute path and edit this path\r
60         VNFC image:  /path/to/imagefolder/dataplaneVNF_2VMs.qcow2\r
61         disk: 10\r
62         numas: \r
63         -   paired-threads: 2         # "cores", "paired-threads", "threads"\r
64             memory: 2                 # GBytes\r
65             interfaces:\r
66             -   name:      xe0\r
67                 vpci:      "0000:00:11.0"\r
68                 dedicated: "no"         # "yes"(passthrough), "no"(sriov with vlan tags), "yes:sriov"(sriovi, but exclusive and without vlan tag)\r
69                 bandwidth: 1 Gbps\r
70             -   name:      xe1\r
71                 vpci:      "0000:00:12.0"\r
72                 dedicated: "no"\r
73                 bandwidth: 1 Gbps\r
74         bridge-ifaces:\r
75         -   name:      eth0\r
76             vpci:      "0000:00:09.0"\r
77             bandwidth: 1 Mbps          # Optional, informative only\r
78 \r
79     -   name:        VNF_2VMs-VM2\r
80         description: "Dataplane VM1 with 2 threads, 2 GB hugepages, 2 SR-IOV interface"\r
81         #Copy the image to a compute path and edit this path\r
82         VNFC image:  /path/to/imagefolder/dataplaneVNF_2VMs.qcow2\r
83         disk: 10\r
84         numas: \r
85         -   paired-threads: 1         # "cores", "paired-threads", "threads"\r
86             memory: 2                 # GBytes\r
87             interfaces:\r
88             -   name:      xe0\r
89                 vpci:      "0000:00:11.0"\r
90                 dedicated: "no"         # "yes"(passthrough), "no"(sriov with vlan tags), "yes:sriov"(sriovi, but exclusive and without vlan tag)\r
91                 bandwidth: 1 Gbps\r
92             -   name:      xe1\r
93                 vpci:      "0000:00:12.0"\r
94                 dedicated: "no"\r
95                 bandwidth: 1 Gbps\r
96         bridge-ifaces:\r
97         -   name:      eth0\r
98             vpci:      "0000:00:09.0"\r
99             bandwidth: 1 Mbps          # Optional, informative only\r
100 \r