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