| garciadeblas | edca7b3 | 2016-09-29 14:01:52 +0000 | [diff] [blame] | 1 | ## |
| tierno | 9202102 | 2018-09-12 16:29:23 +0200 | [diff] [blame] | 2 | # Copyright 2015 Telefonica Investigacion y Desarrollo, S.A.U. |
| garciadeblas | edca7b3 | 2016-09-29 14:01:52 +0000 | [diff] [blame] | 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 | vnf: |
| 23 | name: dataplaneVNF_2VMs |
| 24 | description: "Example of a dataplane VNF consisting of two VMs for data plane workloads with one internal network" |
| 25 | # class: parent # Optional. Used to organize VNFs |
| 26 | internal-connections: |
| 27 | - name: datanet |
| 28 | description: datanet |
| 29 | type: data |
| 30 | elements: |
| 31 | - VNFC: VNF_2VMs-VM1 |
| 32 | local_iface_name: xe0 |
| 33 | - VNFC: VNF_2VMs-VM2 |
| 34 | local_iface_name: xe0 |
| 35 | external-connections: |
| 36 | - name: control0 |
| 37 | type: mgmt |
| 38 | VNFC: VNF_2VMs-VM1 |
| 39 | local_iface_name: eth0 |
| 40 | description: control interface VM1 |
| 41 | - name: control1 |
| 42 | type: mgmt |
| 43 | VNFC: VNF_2VMs-VM2 |
| 44 | local_iface_name: eth0 |
| 45 | description: control interface VM2 |
| 46 | - name: in |
| 47 | type: data |
| 48 | VNFC: VNF_2VMs-VM1 |
| 49 | local_iface_name: xe1 |
| 50 | description: Dataplane interface input |
| 51 | - name: out |
| 52 | type: data |
| 53 | VNFC: VNF_2VMs-VM2 |
| 54 | local_iface_name: xe1 |
| 55 | description: Dataplane interface output |
| 56 | VNFC: |
| 57 | - name: VNF_2VMs-VM1 |
| 58 | description: "Dataplane VM1 with 4 threads, 2 GB hugepages, 2 SR-IOV interface" |
| 59 | #Copy the image to a compute path and edit this path |
| 60 | VNFC image: /path/to/imagefolder/dataplaneVNF_2VMs.qcow2 |
| 61 | disk: 10 |
| 62 | numas: |
| 63 | - paired-threads: 2 # "cores", "paired-threads", "threads" |
| 64 | memory: 2 # GBytes |
| 65 | interfaces: |
| 66 | - name: xe0 |
| 67 | vpci: "0000:00:11.0" |
| 68 | dedicated: "no" # "yes"(passthrough), "no"(sriov with vlan tags), "yes:sriov"(sriovi, but exclusive and without vlan tag) |
| 69 | bandwidth: 1 Gbps |
| 70 | - name: xe1 |
| 71 | vpci: "0000:00:12.0" |
| 72 | dedicated: "no" |
| 73 | bandwidth: 1 Gbps |
| 74 | bridge-ifaces: |
| 75 | - name: eth0 |
| 76 | vpci: "0000:00:09.0" |
| 77 | bandwidth: 1 Mbps # Optional, informative only |
| 78 | |
| 79 | - name: VNF_2VMs-VM2 |
| 80 | description: "Dataplane VM1 with 2 threads, 2 GB hugepages, 2 SR-IOV interface" |
| 81 | #Copy the image to a compute path and edit this path |
| 82 | VNFC image: /path/to/imagefolder/dataplaneVNF_2VMs.qcow2 |
| 83 | disk: 10 |
| 84 | numas: |
| 85 | - paired-threads: 1 # "cores", "paired-threads", "threads" |
| 86 | memory: 2 # GBytes |
| 87 | interfaces: |
| 88 | - name: xe0 |
| 89 | vpci: "0000:00:11.0" |
| 90 | dedicated: "no" # "yes"(passthrough), "no"(sriov with vlan tags), "yes:sriov"(sriovi, but exclusive and without vlan tag) |
| 91 | bandwidth: 1 Gbps |
| 92 | - name: xe1 |
| 93 | vpci: "0000:00:12.0" |
| 94 | dedicated: "no" |
| 95 | bandwidth: 1 Gbps |
| 96 | bridge-ifaces: |
| 97 | - name: eth0 |
| 98 | vpci: "0000:00:09.0" |
| 99 | bandwidth: 1 Mbps # Optional, informative only |
| 100 | |