1 #============LICENSE_START=======================================================
3 # ================================================================================
4 # Copyright (C) 2019-2020 Wipro Limited.
5 # ==============================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=========================================================
19 tosca_definitions_version: cloudify_dsl_1_3
21 - "http://www.getcloudify.org/spec/cloudify/3.4/types.yaml"
22 - plugin:k8splugin?version=3.4.2
23 - plugin:pgaas?version=1.3.0
24 - plugin:dcaepolicyplugin?version=2.4.0
28 description: replica count for deployment
32 description: docker image name and version
33 default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.son-handler:2.1.2"
36 description: pg cluster
37 default: "dcae-pg-primary.onap"
40 description: database name
44 description: aaf username
48 description: aaf password
52 description: dmaap polling interval
56 description: cbs polling interval
60 description: dmaap polling timeout
64 description: num of solutions
68 description: minimum no. of collisions
72 description: minimum no. of confusions
76 description: maximum clusters
80 description: threshold for bad neighbors
84 description: threshold for poor neighbors
88 description: namespace
92 description: dmaap server
93 default: "message-router"
96 description: buffer time
100 description: consumer group
104 description: consumer id
105 default: "sonhms-cid"
108 description: config db location
109 default: "http://sdnc.onap:8181"
112 description: oof location
113 default: "https://oof-osdf.onap:8698"
116 description: oof endpoint
117 default: "/api/oof/v1/pci"
120 description: pci optimizer name in oof
124 description: pci and anr optimizer name in oof
128 description: log location in host
129 default: "/dockerdata-nfs/son-handler"
132 description: poor neighbor count threshold
136 description: bad neighbor count threshold
138 oofTriggerCountTimer:
140 description: timer for oof triggered count in minutes
142 oofTriggerCountThreshold:
144 description: Threshold for oof trigger count
148 description: policy response wait timer in seconds
152 description: policy id for config policy
153 default: "com.Config_PCIMS_CONFIG_POLICY"
154 performance_management_topic_url:
156 description: ves measurement topic url
157 default: "https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.VES_MEASUREMENT_OUTPUT"
158 fault_management_topic_url:
160 description: ves fault topic url
161 default: "https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.SEC_FAULT_OUTPUT"
162 nbr_list_change_topic_url:
164 description: neighbor list change notification topic url
165 default: "https://message-router.onap.svc.cluster.local:3905/events/PCI-NOTIF-TOPIC-NGHBR-LIST-CHANGE-INFO"
166 dcae_cl_response_topic_url:
168 description: dcae control loop response topic url
169 default: "https://message-router.onap.svc.cluster.local:3905/events/DCAE_CL_RSP"
172 description: dcae control loop topic url
173 default: "https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.DCAE_CL_OUTPUT"
174 policyNegativeAckThreshold:
176 description: negative acknowledgement from policy threshold
178 policyFixedPciTimeInterval:
180 description: time interval for checking FixedPci table
184 description: filter fm and pm notification using this parameter
185 default: "RansimAgent"
189 type: dcae.nodes.pgaas.database
191 writerfqdn: { get_input: pgaas_cluster_name }
192 name: { get_input: database_name }
196 type: dcae.nodes.ContainerizedServiceComponent
198 cloudify.interfaces.lifecycle:
207 path: { get_input: log_path }
209 bind: /home/sonhms/logs
213 get_input: tag_version
214 service_component_type: 'dcae-sonhms'
216 always_pull_image: true
217 replicas: {get_input: replicas}
220 endpoint: /healthcheck
226 performance_management_topic:
227 aaf_username: { get_input: aaf_username }
228 aaf_password: { get_input: aaf_password }
230 topic_url: { get_input: performance_management_topic_url }
232 fault_management_topic:
233 aaf_username: { get_input: aaf_username }
234 aaf_password: { get_input: aaf_password }
236 topic_url: { get_input: fault_management_topic_url }
238 nbr_list_change_topic:
239 aaf_username: { get_input: aaf_username }
240 aaf_password: { get_input: aaf_password }
242 topic_url: { get_input: nbr_list_change_topic_url }
244 dcae_cl_response_topic:
245 aaf_username: { get_input: aaf_username }
246 aaf_password: { get_input: aaf_password }
248 topic_url: { get_input: dcae_cl_response_topic_url }
252 aaf_username: { get_input: aaf_username }
253 aaf_password: { get_input: aaf_password }
255 topic_url: { get_input: dcae_cl_topic_url }
257 postgres.host: { get_attribute: [ pgaasvm, admin, host ] }
258 postgres.port: { get_attribute: [ pgaasvm, admin, port ] }
259 postgres.username: { get_attribute: [ pgaasvm, admin, user ] }
260 postgres.password: { get_attribute: [ pgaasvm, admin, password ] }
261 sonhandler.pollingInterval: { get_input: polling_interval}
262 sonhandler.pollingTimeout: { get_input: polling_timeout }
263 cbsPollingInterval: { get_input: cbs_polling_interval }
264 sonhandler.numSolutions: { get_input: num_solutions }
265 sonhandler.minCollision: { get_input: min_collision }
266 sonhandler.minConfusion: { get_input: min_confusion }
267 sonhandler.maximumClusters: { get_input: max_clusters }
268 sonhandler.badThreshold: { get_input: bad_threshold }
269 sonhandler.poorThreshold: { get_input: poor_threshold }
270 sonhandler.namespace: { get_input: namespace }
271 sonhandler.sourceId: SONHMS
272 sonhandler.dmaap.server:
273 - { get_input: dmaap }
274 sonhandler.bufferTime: { get_input: buffer_time }
275 sonhandler.cg: { get_input: cg }
276 sonhandler.cid: { get_input: cid }
277 sonhandler.configDb.service: { get_input: config_db }
278 sonhandler.oof.service: { get_input: oof }
279 sonhandler.oof.endpoint: { get_input: oof_endpoint }
280 sonhandler.pciOptimizer: { get_input: pci_optimizer }
281 sonhandler.pciAnrOptimizer: { get_input: pci_anr_optimizer }
282 sonhandler.poorCountThreshold: { get_input: poorCountThreshold}
283 sonhandler.badCountThreshold: { get_input: badCountThreshold}
284 sonhandler.oofTriggerCountTimer: { get_input: oofTriggerCountTimer}
285 sonhandler.oofTriggerCountThreshold: { get_input: oofTriggerCountThreshold}
286 sonhandler.policyRespTimer: { get_input: policyRespTimer}
287 sonhandler.policyNegativeAckThreshold: { get_input: policyNegativeAckThreshold}
288 sonhandler.policyFixedPciTimeInterval: { get_input: policyFixedPciTimeInterval}
289 sonhandler.nfNamingCode: { get_input: nfNamingCode}
298 - type: cloudify.relationships.depends_on
300 - type: cloudify.relationships.depends_on
304 type: dcae.nodes.policy