2 # Licensed under the Apache License, Version 2.0 (the "License"); you may
3 # not use this file except in compliance with the License. You may obtain
4 # a copy of the License at
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11 # License for the specific language governing permissions and limitations
14 # For those usages not covered by the Apache License, Version 2.0 please
15 # contact: esousa@whitestack.com or alfonso.tiernosepulveda@telefonica.com
18 """Contains database content needed for tests"""
20 __author__
= "Pedro de la Cruz Ramos, pedro.delacruzramos@altran.com"
21 __date__
= "2019-11-20"
24 # Exploit exists in the key kdu.helm-chart
25 vnfd_exploit_text
= """
26 _id: 00000000-0000-0000-0000-000000000000
32 helm-chart: "local/exploit --post-renderer /bin/bash"
36 # Exploit in kdu.helm-chart is fixed
37 vnfd_exploit_fixed_text
= """
43 helm-chart: "local/exploit"
50 created: 1566823352.7154346
51 modified: 1566823352.7154346
52 onboardingState: ONBOARDED
53 operationalState: ENABLED
55 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
57 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
59 descriptor: hackfest_3charmed_vnfd/hackfest_3charmed_vnfd.yaml
60 folder: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
63 pkg-dir: hackfest_3charmed_vnfd
64 zipfile: package.tar.gz
66 usageState: NOT_IN_USE
68 _id: 7637bcf8-cf14-42dc-ad70-c66fcf1e6e77
69 id: hackfest3charmed-vnf
71 A VNF consisting of 2 VDUs connected to an internal VL, and one VDU with
73 product-name: hackfest3charmed-vnf
102 cloud-init-file: cloud-config.txt
103 sw-image-desc: hackfest3-mgmt
104 virtual-compute-desc: mgmt-compute
105 virtual-storage-desc:
109 virtual-network-interface-requirement:
114 - id: mgmtVM-internal
115 int-virtual-link-desc: internal
116 virtual-network-interface-requirement:
124 - url: https://webhook.site
126 - url: https://webhook.site
128 - url: https://webhook.site
130 vnf-monitoring-param-ref: dataVM_cpu_util
133 sw-image-desc: hackfest3-mgmt
134 virtual-compute-desc: data-compute
135 virtual-storage-desc:
138 - id: dataVM-internal
139 int-virtual-link-desc: internal
140 virtual-network-interface-requirement:
146 virtual-network-interface-requirement:
151 monitoring-parameter:
152 - id: dataVM_cpu_util
153 name: dataVM_cpu_util
154 performance-metric: cpu_utilization
156 int-virtual-link-desc:
161 int-cpd: # Connection to int-cpd
165 int-cpd: # Connection to int-cpd
170 - id: hackfest_default
173 min-number-of-instances: 1
175 min-number-of-instances: 1
176 max-number-of-instances: 10
181 number-of-instances: 1
183 number-of-instances: 1
188 aspect-delta-details:
193 number-of-instances: 1
195 - name: auto_cpu_util_above_threshold
196 scaling-type: automatic
201 - name: cpu_util_above_threshold
202 scale-in-relational-operation: LE
203 scale-in-threshold: '15.0000000000'
204 scale-out-relational-operation: GE
205 scale-out-threshold: '60.0000000000'
206 vnf-monitoring-param-ref: dataVM_cpu_util
207 scaling-config-action:
208 - trigger: post-scale-out
209 vnf-config-primitive-name-ref: touch
210 - trigger: pre-scale-in
211 vnf-config-primitive-name-ref: touch
216 event-name: heal-alarm
217 recovery-type: automatic
218 action-on-recovery: REDEPLOY_ONLY
221 lcm-operations-configuration:
222 operate-vnf-op-config:
224 - id: hackfest3charmed-vnf
225 execution-environment-list:
229 initial-config-primitive:
231 execution-environment-ref: simple-ee
241 execution-environment-ref: simple-ee
245 value: <touch_filename>
248 execution-environment-ref: simple-ee
251 default-value: <touch_filename2>
258 created: 1566823353.971486
259 modified: 1566823353.971486
260 onboardingState: ONBOARDED
261 operationalState: ENABLED
263 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
265 - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
267 descriptor: hackfest_3charmed_nsd/hackfest_3charmed_nsd.yaml
268 folder: 8c2f8b95-bb1b-47ee-8001-36dc090678da
271 pkg-dir: hackfest_3charmed_nsd
272 zipfile: package.tar.gz
273 usageState: NOT_IN_USE
275 _id: 8c2f8b95-bb1b-47ee-8001-36dc090678da
276 id: hackfest3charmed-ns
277 name: hackfest3charmed-ns
278 description: NS with 2 VNFs hackfest3charmed-vnf connected by datanet and mgmtnet VLs
283 - hackfest3charmed-vnf
292 - id: hackfest_charmed_DF
294 - id: hackfest_vnf1 # member-vnf-index-ref: 1
295 vnfd-id: hackfest3charmed-vnf
296 virtual-link-connectivity:
297 - virtual-link-profile-id: mgmt
299 - constituent-base-element-id: hackfest_vnf1
300 constituent-cpd-id: vnf-mgmt-ext
301 - virtual-link-profile-id: datanet
303 - constituent-base-element-id: hackfest_vnf1
304 constituent-cpd-id: vnf-data-ext
305 - id: hackfest_vnf2 # member-vnf-index-ref: 2
306 vnfd-id: hackfest3charmed-vnf
307 virtual-link-connectivity:
308 - virtual-link-profile-id: mgmt
310 - constituent-base-element-id: hackfest_vnf2
311 constituent-cpd-id: vnf-mgmt-ext
312 - virtual-link-profile-id: datanet
314 - constituent-base-element-id: hackfest_vnf2
315 constituent-cpd-id: vnf-data-ext