# Copyright 2019 ETSI OSM # # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. vnfd: id: {{ name }}_vnfd product-name: {{ name }}_vnfd description: Generated by OSM package generator provider: OSM version: '1.0' mgmt-cp: vnf-cp0-ext virtual-storage-desc: - id: {{ name }}_vnfd-VM-storage size-of-storage: {{ storage }} {%- if detailed is sameas true %} #disk-io-quota: # limit: # reserve: # shares: {%- endif %} virtual-compute-desc: - id: {{ name }}_vnfd-VM-compute virtual-cpu: num-virtual-cpu: {{ vcpu }} {%- if detailed is sameas true %} #pinning: # # Choice cpu-pinning / cpu-quota # policy: [dynamic, static] # thread-policy: [AVOID, SEPARATED, ISOLATE, PREFER] # cpu-quota: # limit: # reserve: # shares: {%- endif %} virtual-memory: size: {{ memory }} {%- if detailed is sameas true %} #guest-epa: # mempage-size: # mem-quota: # limit: # reserve: # shares: {%- endif %} sw-image-desc: - id: "{{ image }}" name: "{{ image }}" image: "{{ image }}" {%- if detailed is sameas true %} #- id: # name: # image: # vim-type: {%- endif %} df: - id: default-df instantiation-level: - id: default-instantiation-level vdu-level: - vdu-id: {{ name }}_vnfd-VM number-of-instances: 1 vdu-profile: - id: {{ name }}_vnfd-VM min-number-of-instances: 1 max-number-of-instances: 1 {%- if detailed is sameas true %} #lcm-operations-configuration: # operate-vnf-op-config: # day1-2: # - id: {{ name }}_vnfd-VM # # Configure the VNF or VDU through Juju. # juju: # charm: # proxy: # vca-relationships: # relation: # - requires: # provides: # config-primitive: # - name: # parameter: # - name: # data-type: # mandatory: # default-value: # parameter-pool: # read-only: # hidden: # initial-config-primitive: # - seq: # name: # parameter: # - name: # data-type: # value: # terminate-config-primitive: # - seq: # name: # parameter: # - name: # data-type: # value: # metrics: # - name: # config-access: # ssh-access: # required: # default-user: #scaling-aspect: #- id: # name: # max-scale-level: # scaling-policy: # - name: # scaling-type: # enabled: # scale-in-operator-type: # scale-out-operator-type: # threshold-time: # cooldown-time: # scaling-criteria: # - name: # scale-in-threshold: # scale-in-relational-operation: # scale-out-threshold: # scale-out-relational-operation: # vnf-monitoring-param-ref: # scaling-config-action: # - trigger: # vnf-config-primitive-name-ref: # aspect-delta-details: # id: -delta # vdu-delta: # - number-of-instances: 1 # id: {{ name }}_vnfd-VM {%- endif %} {%- if detailed is sameas true %} ## Placement groups at VNF Level #placement-groups: #- name: # requirement: # strategy: # COLOCATION, ISOLATION # member-vdus: # - member-vdu-ref: {%- endif %} # At least one VDU need to be specified # Additional VDUs can be created by copying the # VDU descriptor below vdu: - id: {{ name }}_vnfd-VM name: {{ name }}_vnfd-VM description: {{ name }}_vnfd-VM sw-image-desc: "{{ image }}" {%- if detailed is sameas true %} ## Choice cloud-init / cloud-init-file #cloud-init: #cloud-init-file: #supplemental-boot-data: # boot-data-drive: #alarm: #- alarm-id: # vnf-monitoring-param-ref: # operation: # value: # actions: # ok: # - url: # insufficient-data: # - url: # alarm: # - url: #pdu-type: #alternative-sw-image-desc: #- id: # name: # image: # vim-type: {%- endif %} virtual-storage-desc: - {{ name }}_vnfd-VM-storage virtual-compute-desc: {{ name }}_vnfd-VM-compute {%- if detailed is sameas true %} #monitoring-parameter: #- id: # name: # performance-metric: {%- endif %} int-cpd: - id: eth0-int virtual-network-interface-requirement: - name: eth0 virtual-interface: type: PARAVIRT {%- if detailed is sameas true %} #vpci: #bandwidth: {%- endif %} ext-cpd: - id: vnf-cp0-ext int-cpd: vdu-id: {{ name }}_vnfd-VM cpd: eth0-int {%- if detailed is sameas true %} #port-security-enabled: #port-security-disable-strategy: {%- endif %}