blob: ce288d63f90cc0334bb610de37753ef8b3a62850 [file] [log] [blame]
garciaale76f6a622020-11-19 17:57:42 -03001# Copyright 2020 Whitestack LLC
2#
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
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
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
12# implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16vnfd:vnfd-catalog:
17 vnfd:
18 - connection-point:
19 - id: vnf-mgmt
20 name: vnf-mgmt
21 short-name: vnf-mgmt
22 type: VPORT
23 - id: vnf-data
24 name: vnf-data
25 short-name: vnf-data
26 type: VPORT
27 description: >-
28 A VNF consisting of 2 VDUs connected to an internal VL, and one VDU with
29 cloud-init
30 id: hackfest3charmed-vnf
31 internal-vld:
32 - id: internal
33 internal-connection-point:
34 - id-ref: mgmtVM-internal
35 - id-ref: dataVM-internal
36 name: internal
37 short-name: internal
38 type: ELAN
39 logo: osm.png
40 mgmt-interface:
41 cp: vnf-mgmt
42 monitoring-param:
43 - aggregation-type: AVERAGE
garciaale0a517b92021-01-12 15:44:44 -030044 id: dataVM_cpu_util
45 name: dataVM_cpu_util
garciaale76f6a622020-11-19 17:57:42 -030046 vdu-monitoring-param:
47 vdu-monitoring-param-ref: dataVM_cpu_util
48 vdu-ref: dataVM
49 name: hackfest3charmed-vnf
50 scaling-group-descriptor:
51 - max-instance-count: 10
52 name: scale_dataVM
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
58 scaling-policy:
59 - cooldown-time: 60
60 name: auto_cpu_util_above_threshold
61 scaling-criteria:
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'
garciaale0a517b92021-01-12 15:44:44 -030067 vnf-monitoring-param-ref: dataVM_cpu_util
garciaale76f6a622020-11-19 17:57:42 -030068 scaling-type: automatic
garciaale0a517b92021-01-12 15:44:44 -030069 enabled: true
garciaale76f6a622020-11-19 17:57:42 -030070 threshold-time: 0
71 vdu:
72 - count: 1
73 vdu-id-ref: dataVM
74 short-name: hackfest3charmed-vnf
75 vdu:
76 - count: '1'
77 cloud-init-file: cloud-config.txt
78 id: mgmtVM
79 image: hackfest3-mgmt
80 interface:
81 - external-connection-point-ref: vnf-mgmt
82 name: mgmtVM-eth0
83 position: 1
84 type: EXTERNAL
85 virtual-interface:
86 type: VIRTIO
87 - internal-connection-point-ref: mgmtVM-internal
88 name: mgmtVM-eth1
89 position: 2
90 type: INTERNAL
91 virtual-interface:
92 type: VIRTIO
93 internal-connection-point:
94 - id: mgmtVM-internal
95 name: mgmtVM-internal
96 short-name: mgmtVM-internal
97 type: VPORT
98 name: mgmtVM
99 vm-flavor:
100 memory-mb: '1024'
101 storage-gb: '10'
102 vcpu-count: 1
103 - count: '1'
104 id: dataVM
105 image: hackfest3-mgmt
106 interface:
107 - internal-connection-point-ref: dataVM-internal
108 name: dataVM-eth0
109 position: 1
110 type: INTERNAL
111 virtual-interface:
112 type: VIRTIO
113 - external-connection-point-ref: vnf-data
114 name: dataVM-xe0
115 position: 2
116 type: EXTERNAL
117 virtual-interface:
118 type: VIRTIO
119 internal-connection-point:
120 - id: dataVM-internal
121 name: dataVM-internal
122 short-name: dataVM-internal
123 type: VPORT
124 monitoring-param:
125 - id: dataVM_cpu_util
126 nfvi-metric: cpu_utilization
127 name: dataVM
128 vm-flavor:
129 memory-mb: '1024'
130 storage-gb: '10'
131 vcpu-count: 1
132 version: '1.0'
133 vnf-configuration:
134 config-primitive:
135 - name: touch
136 parameter:
137 - data-type: STRING
138 default-value: <touch_filename2>
139 name: filename
140 initial-config-primitive:
141 - name: config
142 parameter:
143 - name: ssh-hostname
144 value: <rw_mgmt_ip>
145 - name: ssh-username
146 value: ubuntu
147 - name: ssh-password
148 value: osm4u
149 seq: '1'
150 - name: touch
151 parameter:
152 - name: filename
153 value: <touch_filename>
154 seq: '2'
155 juju:
156 charm: simple
157
158