SOL006 patch for POL
[osm/POL.git] / osm_policy_module / tests / unit / utils / examples / cirros_vdu_scaling_vnfd.yaml
1 # -*- coding: utf-8 -*-
2 # pylint: disable=no-member
3
4 # Copyright 2020 Whitestack, LLC
5 # *************************************************************
6
7 # This file is part of OSM Monitoring module
8 # All Rights Reserved to Whitestack, LLC
9
10 # Licensed under the Apache License, Version 2.0 (the "License"); you may
11 # not use this file except in compliance with the License. You may obtain
12 # a copy of the License at
13
14 #         http://www.apache.org/licenses/LICENSE-2.0
15
16 # Unless required by applicable law or agreed to in writing, software
17 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
19 # License for the specific language governing permissions and limitations
20 # under the License.
21
22 # For those usages not covered by the Apache License, Version 2.0 please
23 # contact: agarcia@whitestack.com
24 ##
25
26 vnfd:
27   id: cirros_vdu_scaling_vnf
28   product-name: cirros_vdu_scaling_vnf
29   description: Simple VNF example with a cirros and a scaling group descriptor
30   provider: OSM
31   version: '1.0'
32   mgmt-cp: eth0-ext
33
34   ext-cpd:
35   - id: eth0-ext
36     int-cpd:
37       cpd: eth0-int
38       vdu-id: cirros_vnfd-VM
39
40   df:
41   - id: default-df
42     instantiation-level:
43     - id: default-instantiation-level
44       vdu-level:
45       - number-of-instances: 1
46         vdu-id: cirros_vnfd-VM
47     scaling-aspect:
48     - id: scale_cirros_vnfd-VM
49       name: scale_cirros_vnfd-VM
50       aspect-delta-details:
51         deltas:
52         - id: scale_cirros_vnfd-VM-delta
53           vdu-delta:
54           - id: cirros_vnfd-VM
55             number-of-instances: 1
56       max-scale-level: 10
57       scaling-policy:
58       - name: auto_cpu_util_above_threshold
59         cooldown-time: 60
60         scaling-criteria:
61         - name: group1_cpu_util_above_threshold
62           scale-in-relational-operation: LT
63           scale-in-threshold: 20
64           scale-out-relational-operation: GT
65           scale-out-threshold: 80
66           vnf-monitoring-param-ref: cirros_vnf_cpu_util
67         scaling-type: automatic
68         threshold-time: 10
69     vdu-profile:
70     - id: cirros_vnfd-VM
71       max-number-of-instances: 10
72       min-number-of-instances: 1
73
74   vdu:
75   - id: cirros_vnfd-VM
76     name: cirros_vnfd-VM
77     description: cirros_vnfd-VM
78     int-cpd:
79     - id: eth0-int
80       virtual-network-interface-requirement:
81       - name: eth0
82         virtual-interface:
83           bandwidth: '0'
84           type: VIRTIO
85           vpci: 0000:00:0a.0
86     monitoring-parameter:
87     - id: cirros_vnf_cpu_util
88       name: cirros_vnf_cpu_util
89       performance-metric: cpu_utilization
90     sw-image-desc: cirros034
91     virtual-compute-desc: cirros_vnfd-VM-compute
92     virtual-storage-desc:
93     - cirros_vnfd-VM-storage
94
95   sw-image-desc:
96   - id: cirros034
97     name: cirros034
98     image: cirros034
99
100   virtual-compute-desc:
101   - id: cirros_vnfd-VM-compute
102     virtual-cpu:
103       num-virtual-cpu: 1
104     virtual-memory:
105       size: 0.25
106
107   virtual-storage-desc:
108   - id: cirros_vnfd-VM-storage
109     size-of-storage: 2