v0.4.49 allow IP parameters for networks, and network types in RO
[osm/RO.git] / vnfs / examples / linux_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:        linux_2VMs_v02\r
25     description: "Example of a linux VNF consisting of two VMs with one internal network"\r
26     # class: parent      # Optional. Used to organize VNFs\r
27     internal-connections:\r
28     -   name:        internalnet\r
29         description: internalnet\r
30         type:        e-lan\r
31         implementation: overlay\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:             linux_2VMs-VM1\r
43             local_iface_name: xe0\r
44             ip_address:       192.168.1.2\r
45         -   VNFC:             linux_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:              linux_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:              linux_2VMs-VM2\r
57         local_iface_name:  eth0\r
58         description:       control interface VM2\r
59     -   name:              in\r
60         type:              bridge\r
61         VNFC:              linux_2VMs-VM1\r
62         local_iface_name:  xe1\r
63         description:       data interface input\r
64     -   name:              out\r
65         type:              bridge\r
66         VNFC:              linux_2VMs-VM2\r
67         local_iface_name:  xe1\r
68         description:       data interface output\r
69     VNFC:\r
70     -   name:        linux_2VMs-VM1\r
71         description: "Linux VM1 with 4 CPUs, 2 GB RAM and 3 bridge interfaces"\r
72         #Copy the image to a compute path and edit this path\r
73         VNFC image:  /path/to/imagefolder/linux_VNF_2VMs.qcow2\r
74         disk: 10\r
75         vcpus: 4\r
76         ram: 2048\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         -   name: xe0\r
82             vpci:      "0000:00:11.0"\r
83             bandwidth: 1 Mbps\r
84         -   name: xe1\r
85             vpci:      "0000:00:12.0"\r
86             bandwidth: 1 Mbps\r
87     -   name:        linux_2VMs-VM2\r
88         description: "Linux VM2 with 2 CPUs, 2 GB RAM and 3 bridge interfaces"\r
89         #Copy the image to a compute path and edit this path\r
90         VNFC image:  /path/to/imagefolder/linux_VNF_2VMs.qcow2\r
91         disk: 10\r
92         vcpus: 2\r
93         ram: 2048\r
94         bridge-ifaces:\r
95         -   name:      eth0\r
96             vpci:      "0000:00:09.0"\r
97             bandwidth: 1 Mbps          # Optional, informative only\r
98         -   name: xe0\r
99             vpci:      "0000:00:11.0"\r
100             bandwidth: 1 Mbps\r
101         -   name: xe1\r
102             vpci:      "0000:00:12.0"\r
103             bandwidth: 1 Mbps\r
104 \r