1 tosca_definitions_version: tosca_simple_yaml_1_3
3 onap.datatypes.ToscaConceptIdentifier:
4 derived_from: tosca.datatypes.Root
12 onap.datatype.controlloop.Target:
13 derived_from: tosca.datatypes.Root
14 description: Definition for a entity in A&AI to perform a control loop operation on
18 description: Category for the target type
29 Map of values that identify the resource. If none are provided, it is assumed that the
30 entity that generated the ONSET event will be the target.
33 clamp_possible_values: ClampExecution:CSAR_RESOURCES
36 onap.datatype.controlloop.Actor:
37 derived_from: tosca.datatypes.Root
38 description: An actor/operation/target definition
42 description: The actor performing the operation.
45 clamp_possible_values: Dictionary:DefaultActors,ClampExecution:CDS/actor
48 description: The operation the actor is performing.
50 clamp_possible_values: Dictionary:DefaultOperations,ClampExecution:CDS/operation
53 type: onap.datatype.controlloop.Target
54 description: The resource the operation should be performed on.
58 description: Name/value pairs of payload information passed by Policy to the actor
61 clamp_possible_values: ClampExecution:CDS/payload
64 onap.datatype.controlloop.Operation:
65 derived_from: tosca.datatypes.Root
66 description: An operation supported by an actor
70 description: Unique identifier for the operation
74 description: A user-friendly description of the intent for the operation
77 type: onap.datatype.controlloop.Actor
78 description: The definition of the operation to be performed.
82 description: The amount of time for the actor to perform the operation.
86 description: The number of retries the actor should attempt to perform the operation.
91 description: Points to the operation to invoke on success. A value of "final_success" indicates and end to the operation.
93 default: final_success
96 description: Points to the operation to invoke on Actor operation failure.
98 default: final_failure
101 description: Points to the operation to invoke when the time out for the operation occurs.
103 default: final_failure_timeout
106 description: Points to the operation to invoke when the current operation has exceeded its max retries.
108 default: final_failure_retries
111 description: Points to the operation to invoke when the current operation causes an exception.
113 default: final_failure_exception
116 description: Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.
118 default: final_failure_guard
119 org.onap.datatypes.policy.clamp.controlloop.httpControlLoopElement.RestRequest:
121 derived_from: tosca.datatypes.Root
124 type: onap.datatypes.ToscaConceptIdentifier
127 description: The name and version of a REST request to be sent to a REST endpoint
132 - valid_values: [POST, PUT, GET, DELETE]
133 description: The REST method to use
137 description: The path of the REST request relative to the base URL
141 description: The body of the REST request for PUT and POST requests
146 - in_range: [100, 599]
147 description: THe expected HTTP status code for the REST request
148 org.onap.datatypes.policy.clamp.controlloop.httpControlLoopElement.ConfigurationEntity:
150 derived_from: tosca.datatypes.Root
152 configurationEntityId:
153 type: onap.datatypes.ToscaConceptIdentifier
156 description: The name and version of a Configuration Entity to be handled by the HTTP Control Loop Element
160 type: org.onap.datatypes.policy.clamp.controlloop.httpControlLoopElement.RestRequest
162 description: A sequence of REST commands to send to the REST endpoint
164 org.onap.policy.clamp.controlloop.Participant:
166 derived_from: tosca.nodetypes.Root
171 org.onap.policy.clamp.controlloop.ControlLoopElement:
173 derived_from: tosca.nodetypes.Root
180 description: Specifies the organization that provides the control loop element
182 type: onap.datatypes.ToscaConceptIdentifier
187 type: onap.datatypes.ToscaConceptIdentifier
191 description: The identity of the participant type that hosts this type of Control Loop Element
196 - greater_or_equal: 0
199 description: A value indicating the start phase in which this control loop element will be started, the
200 first start phase is zero. Control Loop Elements are started in their start_phase order and stopped
201 in reverse start phase order. Control Loop Elements with the same start phase are started and
202 stopped simultaneously
203 uninitializedToPassiveTimeout:
207 - greater_or_equal: 0
211 description: The maximum time in seconds to wait for a state chage from uninitialized to passive
212 passiveToRunningTimeout:
216 - greater_or_equal: 0
220 description: The maximum time in seconds to wait for a state chage from passive to running
221 runningToPassiveTimeout:
225 - greater_or_equal: 0
229 description: The maximum time in seconds to wait for a state chage from running to passive
230 passiveToUninitializedTimeout:
234 - greater_or_equal: 0
238 description: The maximum time in seconds to wait for a state chage from passive to uninitialized
239 org.onap.policy.clamp.controlloop.ControlLoop:
241 derived_from: tosca.nodetypes.Root
248 description: Specifies the organization that provides the control loop element
255 type: onap.datatypes.ToscaConceptIdentifier
256 description: Specifies a list of control loop element definitions that make up this control loop definition
257 org.onap.policy.clamp.controlloop.HttpControlLoopElement:
259 derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement
264 description: The base URL to be prepended to each path, identifies the host for the REST endpoints.
270 description: HTTP headers to send on REST requests
271 configurationEntities:
275 type: org.onap.datatypes.policy.clamp.controlloop.httpControlLoopElement.ConfigurationEntity
277 description: The connfiguration entities the Control Loop Element is managing and their associated REST requests
281 org.onap.controlloop.HttpControlLoopParticipant:
283 type: org.onap.policy.clamp.controlloop.Participant
285 description: Participant for Http requests
288 org.onap.domain.database.Http_PMSHMicroserviceControlLoopElement:
289 # Consul http config for PMSH.
291 type: org.onap.policy.clamp.controlloop.HttpControlLoopElement
293 description: Control loop element for the http requests of PMSH microservice
297 name: HttpParticipant0
300 name: org.onap.k8s.controlloop.HttpControlLoopParticipant
302 uninitializedToPassiveTimeout: 180
303 baseUrl: http://consul-server-ui:8500
305 Content-Type: application/json
306 configurationEntities:
307 - configurationEntityId:
315 path: v1/kv/dcae-pmsh2
317 "control_loop_name":"pmsh-control-loop",
318 "operational_policy_name":"pmsh-operational-policy",
319 "aaf_password":"demo123456!",
320 "aaf_identity":"dcae@dcae.onap.org",
321 "cert_path":"/opt/app/pmsh/etc/certs/cert.pem",
322 "key_path":"/opt/app/pmsh/etc/certs/key.pem",
323 "ca_cert_path":"/opt/app/pmsh/etc/certs/cacert.pem",
327 "subscriptionName":"ExtraPM-All-gNB-R2B",
328 "administrativeState":"UNLOCKED",
330 "fileLocation":"\/pm\/pm.xml",
336 "modelInvariantIDs":[
343 "measurementGroups":[
348 "measurementType":"countera"
351 "measurementType":"counterb"
354 "managedObjectDNsBasic":[
368 "measurementType":"counterc"
371 "measurementType":"counterd"
374 "managedObjectDNsBasic":[
387 "streams_subscribes":{
389 "type":"message_router",
391 "topic_url":"https://10.152.183.151:3905/events/AAI_EVENT",
392 "client_role":"org.onap.dcae.aaiSub",
393 "location":"san-francisco",
394 "client_id":"1575976809466"
397 "policy_pm_subscriber":{
398 "type":"message_router",
400 "topic_url":"https://10.152.183.151:3905/events/org.onap.dmaap.mr.PM_SUBSCRIPTIONS",
401 "client_role":"org.onap.dcae.pmSubscriber",
402 "location":"san-francisco",
403 "client_id":"1575876809456"
407 "streams_publishes":{
408 "policy_pm_publisher":{
409 "type":"message_router",
411 "topic_url":"https://10.152.183.151:3905/events/org.onap.dmaap.mr.PM_SUBSCRIPTIONS",
412 "client_role":"org.onap.dcae.pmPublisher",
413 "location":"san-francisco",
414 "client_id":"1475976809466"
418 "type":"message_router",
420 "topic_url":"https://10.152.183.151:3905/events/org.onap.dmaap.mr.SOME_OTHER_TOPIC",
421 "client_role":"org.onap.dcae.pmControlPub",
422 "location":"san-francisco",
423 "client_id":"1875976809466"
428 expectedResponse: 200
429 org.onap.domain.sample.GenericK8s_ControlLoopDefinition:
431 type: org.onap.policy.clamp.controlloop.ControlLoop
433 description: Control loop for Hello World
437 - name: org.onap.domain.database.Http_PMSHMicroserviceControlLoopElement