1 # Copyright 2019 ETSI OSM
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may
6 # not use this file except in compliance with the License. You may obtain
7 # a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 # License for the specific language governing permissions and limitations
19 product-name: {{ name }}_vnfd
20 description: Generated by OSM package generator
25 - id: {{ name }}_vnfd-VM-storage
26 size-of-storage: {{ storage }}
27 {%- if detailed is sameas true %}
29 # limit: <update, optional>
30 # reserve: <update, optional>
31 # shares: <update, optional>
34 - id: {{ name }}_vnfd-VM-compute
36 num-virtual-cpu: {{ vcpu }}
37 {%- if detailed is sameas true %}
39 # # Choice cpu-pinning / cpu-quota
40 # policy: <update, optional> [dynamic, static]
41 # thread-policy: <update, optional> [AVOID, SEPARATED, ISOLATE, PREFER]
43 # limit: <update, optional>
44 # reserve: <update, optional>
45 # shares: <update, optional>
49 {%- if detailed is sameas true %}
51 # mempage-size: <update, optional>
53 # limit: <update, optional>
54 # reserve: <update, optional>
55 # shares: <update, optional>
61 {%- if detailed is sameas true %}
63 # name: <update, optional>
64 # image: <update, optional>
70 - id: default-instantiation-level
72 - vdu-id: {{ name }}_vnfd-VM
73 number-of-instances: 1
75 - id: {{ name }}_vnfd-VM
76 min-number-of-instances: 1
77 max-number-of-instances: 1
78 {%- if detailed is sameas true %}
79 #lcm-operations-configuration:
80 # operate-vnf-op-config:
82 # - id: {{ name }}_vnfd-VM
83 # # Configure the VNF or VDU through Juju.
85 # charm: <update, optional>
86 # proxy: <update, optional>
89 # - requires: <update>
95 # data-type: <update, optional>
96 # mandatory: <update, optional>
97 # default-value: <update, optional>
98 # parameter-pool: <update, optional>
99 # read-only: <update, optional>
100 # hidden: <update, optional>
101 # initial-config-primitive:
103 # name: <update, optional>
106 # data-type: <update, optional>
107 # value: <update, optional>
108 # terminate-config-primitive:
110 # name: <update, optional>
113 # data-type: <update, optional>
114 # value: <update, optional>
119 # required: <update, optional>
120 # default-user: <update, optional>
124 # max-scale-level: <update, optional>
127 # scaling-type: <update, optional>
128 # enabled: <update, optional>
129 # scale-in-operator-type: <update, optional>
130 # scale-out-operator-type: <update, optional>
131 # threshold-time: <update, optional>
132 # cooldown-time: <update, optional>
133 # scaling-criteria: <update, optional>
135 # scale-in-threshold: <update, optional>
136 # scale-in-relational-operation: <update, optional>
137 # scale-out-threshold: <update, optional>
138 # scale-out-relational-operation: <update, optional>
139 # vnf-monitoring-param-ref: <update, optional>
140 # scaling-config-action:
141 # - trigger: <update>
142 # vnf-config-primitive-name-ref: <update, optional>
143 # aspect-delta-details:
146 # - number-of-instances: 1
147 # id: {{ name }}_vnfd-VM
149 {%- if detailed is sameas true %}
150 ## Placement groups at VNF Level
153 # requirement: <update, optional>
154 # strategy: <update, optional> # COLOCATION, ISOLATION
156 # - member-vdu-ref: <update>
158 # At least one VDU need to be specified
159 # Additional VDUs can be created by copying the
160 # VDU descriptor below
162 - id: {{ name }}_vnfd-VM
163 name: {{ name }}_vnfd-VM
164 description: {{ name }}_vnfd-VM
165 sw-image-desc: "{{ image }}"
166 {%- if detailed is sameas true %}
167 ## Choice cloud-init / cloud-init-file
168 #cloud-init: <update, optional>
169 #cloud-init-file: <update, optional>
170 #supplemental-boot-data:
171 # boot-data-drive: <update, optional>
173 #- alarm-id: <update>
174 # vnf-monitoring-param-ref: <update, optional>
175 # operation: <update, optional>
176 # value: <update, optional>
184 #pdu-type: <update, optional>
185 #alternative-sw-image-desc:
187 # name: <update, optional>
188 # image: <update, optional>
191 virtual-storage-desc:
192 - {{ name }}_vnfd-VM-storage
193 virtual-compute-desc: {{ name }}_vnfd-VM-compute
194 {%- if detailed is sameas true %}
195 #monitoring-parameter:
197 # name: <update, optional>
198 # performance-metric: <update>
202 virtual-network-interface-requirement:
206 {%- if detailed is sameas true %}
207 #vpci: <update, optional>
208 #bandwidth: <update, optional>
213 vdu-id: {{ name }}_vnfd-VM
215 {%- if detailed is sameas true %}
216 #port-security-enabled: <update, optional>
217 #port-security-disable-strategy: <update, optional>