Revert "Removing deprecated/unused/outdated code"
[osm/RO.git] / vnfs / examples / dataplaneVNF3.yaml
1 ##
2 # Copyright 2015 Telefonica Investigacion y Desarrollo, S.A.U.
3 # This file is part of openmano
4 # All Rights Reserved.
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License"); you may
7 # not use this file except in compliance with the License. You may obtain
8 # a copy of the License at
9 #
10 #         http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15 # License for the specific language governing permissions and limitations
16 # under the License.
17 #
18 # For those usages not covered by the Apache License, Version 2.0 please
19 # contact with: nfvlabs@tid.es
20 ##
21 ---
22 vnf:
23     name:        dataplaneVNF3
24     description: "Example of a dataplane VNF consisting of one VM with two SR-IOV"
25     # class: parent      # Optional. Used to organize VNFs
26     external-connections:
27     -   name:              mgmt
28         type:              mgmt
29         VNFC:              dataplaneVNF3-VM
30         local_iface_name:  eth0
31         description:       control interface VM1
32     -   name:              data0
33         type:              data
34         VNFC:              dataplaneVNF3-VM
35         local_iface_name:  xe0
36         description:       Dataplane interface
37     -   name:              data1
38         type:              data
39         VNFC:              dataplaneVNF3-VM
40         local_iface_name:  xe1
41         description:       Dataplane interface
42     VNFC:
43     -   name:        dataplaneVNF3-VM
44         description: "Dataplane VM with 2 threads, 2 GB hugepages, 2 SR-IOV interface"
45         #Copy the image to a compute path and edit this path
46         VNFC image:  /path/to/imagefolder/dataplaneVNF3.qcow2
47         disk: 10
48         numas: 
49         -   threads: 2         # "cores", "paired-threads", "threads"
50             memory: 2                 # GBytes
51             interfaces:
52             -   name:      xe0
53                 vpci:      "0000:00:11.0"
54                 dedicated: "no"         # "yes"(passthrough), "no"(sriov with vlan tags), "yes:sriov"(sriovi, but exclusive and without vlan tag)
55                 bandwidth: 1 Gbps
56             -   name:      xe1
57                 vpci:      "0000:00:12.0"
58                 dedicated: "no"
59                 bandwidth: 1 Gbps
60         bridge-ifaces:
61         -   name:      eth0
62             vpci:      "0000:00:09.0"
63             bandwidth: 1 Mbps          # Optional, informative only
64
65