| garciadeblas | edca7b3 | 2016-09-29 14:01:52 +0000 | [diff] [blame] | 1 | ## |
| 2 | # Copyright 2015 Telefónica Investigación 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: |
| garciadeblas | 9a241aa | 2016-09-30 12:25:59 +0200 | [diff] [blame] | 24 | name: dataplaneVNF4 |
| 25 | description: "Example of a dataplane VNF consisting of two VMs for data plane workloads with one internal network. VMs use image name instead of the path" |
| garciadeblas | edca7b3 | 2016-09-29 14:01:52 +0000 | [diff] [blame] | 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" |
| garciadeblas | 1448045 | 2017-01-10 13:08:07 +0100 | [diff] [blame] | 72 | image name: linux-linux-VM-img |
| garciadeblas | edca7b3 | 2016-09-29 14:01:52 +0000 | [diff] [blame] | 73 | disk: 10 |
| 74 | numas: |
| 75 | - paired-threads: 2 # "cores", "paired-threads", "threads" |
| 76 | memory: 2 # GBytes |
| 77 | interfaces: |
| 78 | - name: xe0 |
| 79 | vpci: "0000:00:11.0" |
| 80 | dedicated: "no" # "yes"(passthrough), "no"(sriov with vlan tags), "yes:sriov"(sriovi, but exclusive and without vlan tag) |
| 81 | bandwidth: 1 Gbps |
| 82 | - name: xe1 |
| 83 | vpci: "0000:00:12.0" |
| 84 | dedicated: "no" |
| 85 | bandwidth: 1 Gbps |
| 86 | bridge-ifaces: |
| 87 | - name: eth0 |
| 88 | vpci: "0000:00:09.0" |
| 89 | bandwidth: 1 Mbps # Optional, informative only |
| 90 | |
| 91 | - name: VNF_2VMs-VM2 |
| 92 | description: "Dataplane VM1 with 2 threads, 2 GB hugepages, 2 SR-IOV interface" |
| garciadeblas | 1448045 | 2017-01-10 13:08:07 +0100 | [diff] [blame] | 93 | image name: linux-linux-VM-img |
| garciadeblas | edca7b3 | 2016-09-29 14:01:52 +0000 | [diff] [blame] | 94 | disk: 10 |
| 95 | numas: |
| 96 | - paired-threads: 1 # "cores", "paired-threads", "threads" |
| 97 | memory: 2 # GBytes |
| 98 | interfaces: |
| 99 | - name: xe0 |
| 100 | vpci: "0000:00:11.0" |
| 101 | dedicated: "no" # "yes"(passthrough), "no"(sriov with vlan tags), "yes:sriov"(sriovi, but exclusive and without vlan tag) |
| 102 | bandwidth: 1 Gbps |
| 103 | - name: xe1 |
| 104 | vpci: "0000:00:12.0" |
| 105 | dedicated: "no" |
| 106 | bandwidth: 1 Gbps |
| 107 | bridge-ifaces: |
| 108 | - name: eth0 |
| 109 | vpci: "0000:00:09.0" |
| 110 | bandwidth: 1 Mbps # Optional, informative only |
| 111 | |