| garciaale | 74ed2e5 | 2020-10-23 15:28:33 -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 | # Example adapted from official ETSI repo: |
| 17 | # https://forge.etsi.org/rep/nfv/SOL006/blob/master/example-data/complex-vnfd.xml |
| 18 | |
| 19 | vnfd: |
| 20 | provider: My Company |
| 21 | product-name: complex-vnf |
| 22 | software-version: '1.0' |
| 23 | version: '1.0' |
| 24 | vnfm-info: netconf |
| 25 | id: complex-vnf |
| 26 | vdu: |
| 27 | - id: control-plane-active |
| 28 | name: control-plane-active |
| 29 | int-cpd: |
| 30 | - id: internal |
| 31 | int-virtual-link-desc: internal-vl |
| 32 | layer-protocol: ipv4 |
| 33 | - id: mgmt |
| 34 | int-virtual-link-desc: mgmt |
| 35 | layer-protocol: ipv4 |
| 36 | virtual-compute-desc: CP |
| 37 | virtual-storage-desc: root |
| 38 | sw-image-desc: CP |
| 39 | - id: control-plane-standby |
| 40 | name: control-plane-standby |
| 41 | int-cpd: |
| 42 | - id: internal |
| 43 | int-virtual-link-desc: internal-vl |
| 44 | layer-protocol: ipv4 |
| 45 | - id: mgmt |
| 46 | int-virtual-link-desc: mgmt |
| 47 | layer-protocol: ipv4 |
| 48 | virtual-compute-desc: CP |
| 49 | virtual-storage-desc: root |
| 50 | sw-image-desc: CP |
| 51 | - id: data-plane |
| 52 | name: data-plane |
| 53 | int-cpd: |
| 54 | - id: in |
| 55 | layer-protocol: ipv4 |
| 56 | - id: internal |
| 57 | int-virtual-link-desc: internal-vl |
| 58 | layer-protocol: ipv4 |
| 59 | - id: out |
| 60 | layer-protocol: ipv4 |
| 61 | virtual-compute-desc: DP |
| 62 | virtual-storage-desc: root |
| 63 | sw-image-desc: DP |
| 64 | virtual-compute-desc: |
| 65 | - id: CP |
| 66 | virtual-memory: |
| 67 | size: '16.0' |
| 68 | virtual-cpu: |
| 69 | num-virtual-cpu: '8' |
| 70 | - id: DP |
| 71 | virtual-memory: |
| 72 | size: '32.0' |
| 73 | virtual-cpu: |
| 74 | num-virtual-cpu: '16' |
| 75 | virtual-storage-desc: |
| 76 | - id: root |
| 77 | type-of-storage: ephemeral-storage |
| 78 | size-of-storage: '10' |
| 79 | rdma-enabled: 'true' |
| 80 | sw-image-desc: CP |
| 81 | sw-image-desc: |
| 82 | - id: CP |
| 83 | name: CP |
| 84 | version: '1.1' |
| 85 | checksum: |
| 86 | algorithm: sha-224 |
| 87 | hash: deadbeef |
| 88 | container-format: bare |
| 89 | disk-format: qcow2 |
| 90 | min-disk: '1' |
| 91 | min-ram: '2.0' |
| 92 | size: '1' |
| 93 | image: 'http://mycompany.images.com/control-plane.qcow2' |
| 94 | - id: DP |
| 95 | name: DP |
| 96 | version: '1.1' |
| 97 | checksum: |
| 98 | algorithm: sha-224 |
| 99 | hash: deadbeef |
| 100 | container-format: bare |
| 101 | disk-format: qcow2 |
| 102 | min-disk: '1' |
| 103 | min-ram: '2.0' |
| 104 | size: '1' |
| 105 | image: 'http://mycompany.images.com/data-plane.qcow2' |
| 106 | int-virtual-link-desc: |
| 107 | - id: internal-vl |
| 108 | connectivity-type: |
| 109 | layer-protocol: ipv4 |
| 110 | - id: mgmt |
| 111 | connectivity-type: |
| 112 | layer-protocol: ipv4 |
| 113 | ext-cpd: |
| 114 | - id: in |
| 115 | int-cpd: |
| 116 | vdu-id: data-plane |
| 117 | cpd: in |
| 118 | layer-protocol: ipv4 |
| 119 | - id: mgmt |
| 120 | int-virtual-link-desc: mgmt |
| 121 | layer-protocol: ipv4 |
| 122 | - id: out |
| 123 | int-cpd: |
| 124 | vdu-id: data-plane |
| 125 | cpd: out |
| 126 | layer-protocol: ipv4 |
| 127 | df: |
| 128 | - id: gold |
| 129 | vdu-profile: |
| 130 | - id: control-plane-active |
| 131 | min-number-of-instances: '1' |
| 132 | max-number-of-instances: '1' |
| 133 | affinity-or-anti-affinity-group: |
| 134 | - id: control-plane |
| 135 | - id: control-plane-standby |
| 136 | min-number-of-instances: '1' |
| 137 | max-number-of-instances: '1' |
| 138 | affinity-or-anti-affinity-group: |
| 139 | - id: control-plane |
| 140 | - id: data-plane |
| 141 | min-number-of-instances: '2' |
| 142 | max-number-of-instances: '8' |
| 143 | instantiation-level: |
| 144 | - id: il-1 |
| 145 | vdu-level: |
| 146 | - vdu-id: control-plane-active |
| 147 | number-of-instances: '1' |
| 148 | - vdu-id: control-plane-standby |
| 149 | number-of-instances: '1' |
| 150 | - vdu-id: data-plane |
| 151 | number-of-instances: '2' |
| 152 | - id: il-2 |
| 153 | vdu-level: |
| 154 | - vdu-id: control-plane-active |
| 155 | number-of-instances: '1' |
| 156 | - vdu-id: control-plane-standby |
| 157 | number-of-instances: '1' |
| 158 | - vdu-id: data-plane |
| 159 | number-of-instances: '4' |
| 160 | default-instantiation-level: il-1 |
| 161 | lcm-operations-configuration: |
| 162 | scale-vnf-to-level-op-config: |
| 163 | arbitrary-target-levels-supported: 'true' |
| 164 | terminate-vnf-op-config: |
| 165 | min-graceful-termination: '1' |
| 166 | operate-vnf-op-config: |
| 167 | min-graceful-stop-timeout: '1' |
| 168 | affinity-or-anti-affinity-group: |
| 169 | - id: control-plane |
| 170 | type: anti-affinity |
| 171 | scope: nfvi-node |
| 172 | - id: silver |
| 173 | vdu-profile: |
| 174 | - id: control-plane-active |
| 175 | min-number-of-instances: '1' |
| 176 | max-number-of-instances: '1' |
| 177 | affinity-or-anti-affinity-group: |
| 178 | - id: control-plane |
| 179 | - id: control-plane-standby |
| 180 | min-number-of-instances: '1' |
| 181 | max-number-of-instances: '1' |
| 182 | affinity-or-anti-affinity-group: |
| 183 | - id: control-plane |
| 184 | - id: data-plane |
| 185 | min-number-of-instances: '1' |
| 186 | max-number-of-instances: '4' |
| 187 | instantiation-level: |
| 188 | - id: il-1 |
| 189 | vdu-level: |
| 190 | - vdu-id: control-plane-active |
| 191 | number-of-instances: '1' |
| 192 | - vdu-id: control-plane-standby |
| 193 | number-of-instances: '1' |
| 194 | - vdu-id: data-plane |
| 195 | number-of-instances: '1' |
| 196 | - id: il-2 |
| 197 | vdu-level: |
| 198 | - vdu-id: control-plane-active |
| 199 | number-of-instances: '1' |
| 200 | - vdu-id: control-plane-standby |
| 201 | number-of-instances: '1' |
| 202 | - vdu-id: data-plane |
| 203 | number-of-instances: '2' |
| 204 | default-instantiation-level: il-1 |
| 205 | lcm-operations-configuration: |
| 206 | scale-vnf-to-level-op-config: |
| 207 | arbitrary-target-levels-supported: 'true' |
| 208 | terminate-vnf-op-config: |
| 209 | min-graceful-termination: '1' |
| 210 | operate-vnf-op-config: |
| 211 | min-graceful-stop-timeout: '1' |
| 212 | affinity-or-anti-affinity-group: |
| 213 | - id: control-plane |
| 214 | type: anti-affinity |
| 215 | scope: nfvi-node |