1 # Copyright 2020 Whitestack LLC
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
28 A VNF consisting of 2 VDUs connected to an internal VL, and one VDU with
30 id: hackfest3charmed-vnf
33 internal-connection-point:
34 - id-ref: mgmtVM-internal
35 - id-ref: dataVM-internal
43 - aggregation-type: AVERAGE
47 vdu-monitoring-param-ref: dataVM_cpu_util
49 name: hackfest3charmed-vnf
50 scaling-group-descriptor:
51 - max-instance-count: 10
53 scaling-config-action:
54 - trigger: post-scale-out
55 vnf-config-primitive-name-ref: touch
56 - trigger: pre-scale-in
57 vnf-config-primitive-name-ref: touch
60 name: auto_cpu_util_above_threshold
62 - name: cpu_util_above_threshold
63 scale-in-relational-operation: LE
64 scale-in-threshold: '15.0000000000'
65 scale-out-relational-operation: GE
66 scale-out-threshold: '60.0000000000'
67 vnf-monitoring-param-ref: dataVM_cpu_util
68 scaling-type: automatic
74 short-name: hackfest3charmed-vnf
77 cloud-init-file: cloud-config.txt
81 - external-connection-point-ref: vnf-mgmt
87 - internal-connection-point-ref: mgmtVM-internal
93 internal-connection-point:
96 short-name: mgmtVM-internal
105 image: hackfest3-mgmt
107 - internal-connection-point-ref: dataVM-internal
113 - external-connection-point-ref: vnf-data
119 internal-connection-point:
120 - id: dataVM-internal
121 name: dataVM-internal
122 short-name: dataVM-internal
125 - id: dataVM_cpu_util
126 nfvi-metric: cpu_utilization
138 default-value: <touch_filename2>
140 initial-config-primitive:
153 value: <touch_filename>