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