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