| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 1 | # Copyright 2020 Whitestack LLC |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 12 | # implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | vnfd: |
| 17 | id: cirros_vnfd |
| 18 | product-name: cirros_vnf |
| 19 | description: Simple VNF example with a cirros |
| 20 | provider: OSM |
| 21 | version: "1.0" |
| 22 | mgmt-cp: eth0-ext |
| 23 | |
| 24 | virtual-compute-desc: |
| garciaale | 0a517b9 | 2021-01-12 15:44:44 -0300 | [diff] [blame] | 25 | - id: cirros_vnfd-VM-compute |
| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 26 | virtual-cpu: |
| 27 | num-virtual-cpu: 1 |
| 28 | virtual-memory: |
| garciaale | 0a517b9 | 2021-01-12 15:44:44 -0300 | [diff] [blame] | 29 | size: 0.25 # Memory size in GB |
| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 30 | |
| 31 | virtual-storage-desc: |
| garciaale | 0a517b9 | 2021-01-12 15:44:44 -0300 | [diff] [blame] | 32 | - id: cirros_vnfd-VM-storage |
| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 33 | size-of-storage: 2 |
| 34 | |
| 35 | sw-image-desc: |
| 36 | - id: cirros034 |
| 37 | name: cirros034 |
| garciaale | 0a517b9 | 2021-01-12 15:44:44 -0300 | [diff] [blame] | 38 | image: cirros034 |
| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 39 | |
| 40 | vdu: |
| 41 | - id: cirros_vnfd-VM |
| 42 | name: cirros_vnfd-VM |
| 43 | description: cirros_vnfd-VM |
| garciaale | 0a517b9 | 2021-01-12 15:44:44 -0300 | [diff] [blame] | 44 | virtual-compute-desc: cirros_vnfd-VM-compute |
| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 45 | virtual-storage-desc: |
| garciaale | 0a517b9 | 2021-01-12 15:44:44 -0300 | [diff] [blame] | 46 | - cirros_vnfd-VM-storage |
| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 47 | sw-image-desc: cirros034 |
| 48 | int-cpd: |
| 49 | - id: eth0-int |
| 50 | virtual-network-interface-requirement: |
| 51 | - name: eth0 |
| 52 | virtual-interface: |
| 53 | type: VIRTIO |
| 54 | bandwidth: "0" |
| 55 | vpci: 0000:00:0a.0 |
| 56 | |
| 57 | df: |
| garciaale | 0a517b9 | 2021-01-12 15:44:44 -0300 | [diff] [blame] | 58 | - id: default-df |
| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 59 | vdu-profile: |
| 60 | - id: cirros_vnfd-VM |
| 61 | min-number-of-instances: 1 |
| 62 | instantiation-level: |
| garciaale | 0a517b9 | 2021-01-12 15:44:44 -0300 | [diff] [blame] | 63 | - id: default-instantiation-level |
| garciaale | 76f6a62 | 2020-11-19 17:57:42 -0300 | [diff] [blame] | 64 | vdu-level: |
| 65 | - vdu-id: cirros_vnfd-VM |
| 66 | number-of-instances: 1 |
| 67 | |
| 68 | ext-cpd: |
| 69 | - id: eth0-ext |
| 70 | int-cpd: # Connection to int-cpd |
| 71 | vdu-id: cirros_vnfd-VM |
| 72 | cpd: eth0-int |