openmano first code upload
[osm/RO.git] / vnfs / examples / dataplaneVNF_2VMs.yaml
1 ---\r
2 vnf:\r
3     name:        dataplaneVNF_2VMs\r
4     description: "Example of a dataplane VNF consisting of two VMs for data plane workloads with one internal network"\r
5     # class: parent      # Optional. Used to organize VNFs\r
6     internal-connections:\r
7     -   name:        datanet\r
8         description: datanet\r
9         type:        data\r
10         elements:\r
11         -   VNFC:             VNF_2VMs-VM1\r
12             local_iface_name: xe0\r
13         -   VNFC:             VNF_2VMs-VM2\r
14             local_iface_name: xe0\r
15     external-connections:\r
16     -   name:              control0\r
17         type:              mgmt\r
18         VNFC:              VNF_2VMs-VM1\r
19         local_iface_name:  eth0\r
20         description:       control interface VM1\r
21     -   name:              control1\r
22         type:              mgmt\r
23         VNFC:              VNF_2VMs-VM2\r
24         local_iface_name:  eth0\r
25         description:       control interface VM2\r
26     -   name:              in\r
27         type:              data\r
28         VNFC:              VNF_2VMs-VM1\r
29         local_iface_name:  xe1\r
30         description:       Dataplane interface input\r
31     -   name:              out\r
32         type:              data\r
33         VNFC:              VNF_2VMs-VM2\r
34         local_iface_name:  xe1\r
35         description:       Dataplane interface output\r
36     VNFC:\r
37     -   name:        VNF_2VMs-VM1\r
38         description: "Dataplane VM1 with 4 threads, 2 GB hugepages, 2 SR-IOV interface"\r
39         #Copy the image to a compute path and edit this path\r
40         VNFC image:  /path/to/imagefolder/dataplaneVNF_2VMs.qcow2\r
41         disk: 10\r
42         numas: \r
43         -   paired-threads: 2         # "cores", "paired-threads", "threads"\r
44             memory: 2                 # GBytes\r
45             interfaces:\r
46             -   name:      xe0\r
47                 vpci:      "0000:00:11.0"\r
48                 dedicated: "no"         # "yes"(passthrough), "no"(sriov with vlan tags), "yes:sriov"(sriovi, but exclusive and without vlan tag)\r
49                 bandwidth: 1 Gbps\r
50             -   name:      xe1\r
51                 vpci:      "0000:00:12.0"\r
52                 dedicated: "no"\r
53                 bandwidth: 1 Gbps\r
54         bridge-ifaces:\r
55         -   name:      eth0\r
56             vpci:      "0000:00:09.0"\r
57             bandwidth: 1 Mbps          # Optional, informative only\r
58 \r
59     -   name:        VNF_2VMs-VM2\r
60         description: "Dataplane VM1 with 2 threads, 2 GB hugepages, 2 SR-IOV interface"\r
61         #Copy the image to a compute path and edit this path\r
62         VNFC image:  /path/to/imagefolder/dataplaneVNF_2VMs.qcow2\r
63         disk: 10\r
64         numas: \r
65         -   paired-threads: 1         # "cores", "paired-threads", "threads"\r
66             memory: 2                 # GBytes\r
67             interfaces:\r
68             -   name:      xe0\r
69                 vpci:      "0000:00:11.0"\r
70                 dedicated: "no"         # "yes"(passthrough), "no"(sriov with vlan tags), "yes:sriov"(sriovi, but exclusive and without vlan tag)\r
71                 bandwidth: 1 Gbps\r
72             -   name:      xe1\r
73                 vpci:      "0000:00:12.0"\r
74                 dedicated: "no"\r
75                 bandwidth: 1 Gbps\r
76         bridge-ifaces:\r
77         -   name:      eth0\r
78             vpci:      "0000:00:09.0"\r
79             bandwidth: 1 Mbps          # Optional, informative only\r
80 \r