Updates in docker-compose for policy framework
[nonrtric.git] / test / usecases / oruclosedlooprecovery / apexpolicyversion / LinkMonitor / controlloop-rest-payloads / commission.yaml
1 #  Copyright (C) 2021 Nordix Foundation. All rights reserved.
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 implied.
12 #  See the License for the specific language governing permissions and
13 #  limitations under the License.
14 #  ============LICENSE_END=================================================
15 #
16 tosca_definitions_version: tosca_simple_yaml_1_1_0
17 data_types:
18   onap.datatypes.ToscaConceptIdentifier:
19     derived_from: tosca.datatypes.Root
20     properties:
21       name:
22         type: string
23         required: true
24       version:
25         type: string
26         required: true
27   onap.datatype.controlloop.Target:
28     derived_from: tosca.datatypes.Root
29     description: Definition for a entity in A&AI to perform a control loop operation on
30     properties:
31       targetType:
32         type: string
33         description: Category for the target type
34         required: true
35         constraints:
36         - valid_values:
37           - VNF
38           - VM
39           - VFMODULE
40           - PNF
41       entityIds:
42         type: map
43         description: |
44           Map of values that identify the resource. If none are provided, it is assumed that the
45           entity that generated the ONSET event will be the target.
46         required: false
47         metadata:
48           clamp_possible_values: ClampExecution:CSAR_RESOURCES
49         entry_schema:
50           type: string
51   onap.datatype.controlloop.Actor:
52     derived_from: tosca.datatypes.Root
53     description: An actor/operation/target definition
54     properties:
55       actor:
56         type: string
57         description: The actor performing the operation.
58         required: true
59         metadata:
60           clamp_possible_values: Dictionary:DefaultActors,ClampExecution:CDS/actor
61       operation:
62         type: string
63         description: The operation the actor is performing.
64         metadata:
65           clamp_possible_values: Dictionary:DefaultOperations,ClampExecution:CDS/operation
66         required: true
67       target:
68         type: onap.datatype.controlloop.Target
69         description: The resource the operation should be performed on.
70         required: true
71       payload:
72         type: map
73         description: Name/value pairs of payload information passed by Policy to the actor
74         required: false
75         metadata:
76           clamp_possible_values: ClampExecution:CDS/payload
77         entry_schema:
78           type: string
79   onap.datatype.controlloop.Operation:
80     derived_from: tosca.datatypes.Root
81     description: An operation supported by an actor
82     properties:
83       id:
84         type: string
85         description: Unique identifier for the operation
86         required: true
87       description:
88         type: string
89         description: A user-friendly description of the intent for the operation
90         required: false
91       operation:
92         type: onap.datatype.controlloop.Actor
93         description: The definition of the operation to be performed.
94         required: true
95       timeout:
96         type: integer
97         description: The amount of time for the actor to perform the operation.
98         required: true
99       retries:
100         type: integer
101         description: The number of retries the actor should attempt to perform the operation.
102         required: true
103         default: 0
104       success:
105         type: string
106         description: Points to the operation to invoke on success. A value of "final_success" indicates and end to the operation.
107         required: false
108         default: final_success
109       failure:
110         type: string
111         description: Points to the operation to invoke on Actor operation failure.
112         required: false
113         default: final_failure
114       failure_timeout:
115         type: string
116         description: Points to the operation to invoke when the time out for the operation occurs.
117         required: false
118         default: final_failure_timeout
119       failure_retries:
120         type: string
121         description: Points to the operation to invoke when the current operation has exceeded its max retries.
122         required: false
123         default: final_failure_retries
124       failure_exception:
125         type: string
126         description: Points to the operation to invoke when the current operation causes an exception.
127         required: false
128         default: final_failure_exception
129       failure_guard:
130         type: string
131         description: Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.
132         required: false
133         default: final_failure_guard
134 policy_types:
135   onap.policies.controlloop.operational.Common:
136     derived_from: tosca.policies.Root
137     version: 1.0.0
138     name: onap.policies.controlloop.operational.Common
139     description: |
140       Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant
141       Policy Types. This does NOT support the legacy Policy YAML policy type.
142     properties:
143       id:
144         type: string
145         description: The unique control loop id.
146         required: true
147       timeout:
148         type: integer
149         description: |
150           Overall timeout for executing all the operations. This timeout should equal or exceed the total
151           timeout for each operation listed.
152         required: true
153       abatement:
154         type: boolean
155         description: Whether an abatement event message will be expected for the control loop from DCAE.
156         required: true
157         default: false
158       trigger:
159         type: string
160         description: Initial operation to execute upon receiving an Onset event message for the Control Loop.
161         required: true
162       operations:
163         type: list
164         description: List of operations to be performed when Control Loop is triggered.
165         required: true
166         entry_schema:
167           type: onap.datatype.controlloop.Operation
168   onap.policies.controlloop.operational.common.Apex:
169     derived_from: onap.policies.controlloop.operational.Common
170     type_version: 1.0.0
171     version: 1.0.0
172     name: onap.policies.controlloop.operational.common.Apex
173     description: Operational policies for Apex PDP
174     properties:
175       engineServiceParameters:
176         type: string
177         description: The engine parameters like name, instanceCount, policy implementation, parameters etc.
178         required: true
179       eventInputParameters:
180         type: string
181         description: The event input parameters.
182         required: true
183       eventOutputParameters:
184         type: string
185         description: The event output parameters.
186         required: true
187       javaProperties:
188         type: string
189         description: Name/value pairs of properties to be set for APEX if needed.
190         required: false
191 node_types:
192   org.onap.policy.clamp.controlloop.Participant:
193     version: 1.0.1
194     derived_from: tosca.nodetypes.Root
195     properties:
196       provider:
197         type: string
198         requred: false
199   org.onap.policy.clamp.controlloop.ControlLoopElement:
200     version: 1.0.1
201     derived_from: tosca.nodetypes.Root
202     properties:
203       provider:
204         type: string
205         requred: false
206       participant_id:
207         type: onap.datatypes.ToscaConceptIdentifier
208         requred: true
209   org.onap.policy.clamp.controlloop.ControlLoop:
210     version: 1.0.1
211     derived_from: tosca.nodetypes.Root
212     properties:
213       provider:
214         type: string
215         requred: false
216       elements:
217         type: list
218         required: true
219         entry_schema:
220           type: onap.datatypes.ToscaConceptIdentifier
221   org.onap.policy.clamp.controlloop.PolicyControlLoopElement:
222     version: 1.0.1
223     derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement
224     properties:
225       policy_type_id:
226         type: onap.datatypes.ToscaConceptIdentifier
227         requred: true
228       policy_id:
229         type: onap.datatypes.ToscaConceptIdentifier
230         requred: false
231 topology_template:
232   node_templates:
233     org.onap.domain.linkmonitor.LinkMonitorPolicyControlLoopElement:
234       version: 1.2.3
235       type: org.onap.policy.clamp.controlloop.PolicyControlLoopElement
236       type_version: 1.0.1
237       description: Control loop element for the Link Monitor
238       properties:
239         provider: Ericsson
240         participantType: org.onap.policy.controlloop.PolicyControlLoopParticipant:2.3.1
241         startPhase: 0
242         policyType: onap.policies.controlloop.operational.common.Apex:1.0.0
243         policyId: operational.apex.linkmonitor:1.0.0
244     org.onap.domain.linkmonitor.LinkMonitorControlLoopDefinition:
245       version: 1.2.3
246       type: org.onap.policy.clamp.controlloop.ControlLoop
247       type_version: 1.0.0
248       description: Control loop for Link Monitor
249       properties:
250         provider: Ericsson
251         elements:
252         - name: org.onap.domain.linkmonitor.LinkMonitorPolicyControlLoopElement
253           version: 1.2.3
254     org.onap.policy.controlloop.PolicyControlLoopParticipant:
255       version: 2.3.1
256       type: org.onap.policy.clamp.controlloop.Participant
257       type_version: 1.0.1
258       description: Participant for policy framework
259       properties:
260         provider: ONAP
261   policies:
262   - operational.apex.linkmonitor:
263       type: onap.policies.controlloop.operational.common.Apex
264       type_version: 1.0.0
265       version: 1.0.0
266       metadata:
267         policy-id: operational.apex.linkmonitor
268         policy-version: 1.0.0
269       properties:
270         engineServiceParameters:
271           name: LinkMonitorApexEngine
272           version: 0.0.1
273           id: 101
274           instanceCount: 1
275           deploymentPort: 12345
276           engineParameters:
277             executorParameters:
278               JAVASCRIPT:
279                 parameterClassName: org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters
280             contextParameters:
281               parameterClassName: org.onap.policy.apex.context.parameters.ContextParameters
282               schemaParameters:
283                 Avro:
284                   parameterClassName: org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters
285             taskParameters:
286             - key: ORU-ODU-Map
287               value: |-
288                 {"ERICSSON-O-RU-11220": "HCL-O-DU-1122",
289                                                "ERICSSON-O-RU-11221": "HCL-O-DU-1122",
290                                                "ERICSSON-O-RU-11222": "HCL-O-DU-1122",
291                                                "ERICSSON-O-RU-11223": "HCL-O-DU-1122",
292                                                "ERICSSON-O-RU-11224": "HCL-O-DU-1123",
293                                                "ERICSSON-O-RU-11225": "HCL-O-DU-1123",
294                                                "ERICSSON-O-RU-11226": "HCL-O-DU-1123",
295                                                "ERICSSON-O-RU-11227": "HCL-O-DU-1124",
296                                                "ERICSSON-O-RU-11228": "HCL-O-DU-1125",
297                                                "ERICSSON-O-RU-11229": "HCL-O-DU-1125"}
298           policy_type_impl:
299             apexPolicyModel:
300               key:
301                 name: LinkMonitorModel
302                 version: 0.0.1
303               keyInformation:
304                 key:
305                   name: LinkMonitorModel_KeyInfo
306                   version: 0.0.1
307                 keyInfoMap:
308                   entry:
309                   - key:
310                       name: ApexMessageOutputEvent
311                       version: 0.0.1
312                     value:
313                       key:
314                         name: ApexMessageOutputEvent
315                         version: 0.0.1
316                       UUID: cca47d74-7754-4a61-b163-ca31f66b157b
317                       description: Generated description for concept referred to by
318                         key "ApexMessageOutputEvent:0.0.1"
319                   - key:
320                       name: CreateLinkClearedOutfieldsEvent
321                       version: 0.0.1
322                     value:
323                       key:
324                         name: CreateLinkClearedOutfieldsEvent
325                         version: 0.0.1
326                       UUID: a295d6a3-1b73-387e-abba-b41e9b608802
327                       description: Generated description for concept referred to by
328                         key "CreateLinkClearedOutfieldsEvent:0.0.1"
329                   - key:
330                       name: CreateLinkClearedOutfieldsTask
331                       version: 0.0.1
332                     value:
333                       key:
334                         name: CreateLinkClearedOutfieldsTask
335                         version: 0.0.1
336                       UUID: fd594e88-411d-4a94-b2be-697b3a0d7adf
337                       description: This task creates the output fields when link failure
338                         is cleared.
339                   - key:
340                       name: CreateLinkFailureOutfieldsEvent
341                       version: 0.0.1
342                     value:
343                       key:
344                         name: CreateLinkFailureOutfieldsEvent
345                         version: 0.0.1
346                       UUID: 02be2b5d-45b7-3c54-ae54-97f2b5c30125
347                       description: Generated description for concept referred to by
348                         key "CreateLinkFailureOutfieldsEvent:0.0.1"
349                   - key:
350                       name: CreateLinkFailureOutfieldsTask
351                       version: 0.0.1
352                     value:
353                       key:
354                         name: CreateLinkFailureOutfieldsTask
355                         version: 0.0.1
356                       UUID: ac3d9842-80af-4a98-951c-bd79a431c613
357                       description: This task the output fields when link failure is
358                         detected.
359                   - key:
360                       name: LinkClearedTask
361                       version: 0.0.1
362                     value:
363                       key:
364                         name: LinkClearedTask
365                         version: 0.0.1
366                       UUID: eecfde90-896c-4343-8f9c-2603ced94e2d
367                       description: This task sends a message to the output when link
368                         failure is cleared.
369                   - key:
370                       name: LinkFailureInputEvent
371                       version: 0.0.1
372                     value:
373                       key:
374                         name: LinkFailureInputEvent
375                         version: 0.0.1
376                       UUID: c4500941-3f98-4080-a9cc-5b9753ed050b
377                       description: Generated description for concept referred to by
378                         key "LinkFailureInputEvent:0.0.1"
379                   - key:
380                       name: LinkFailureInputSchema
381                       version: 0.0.1
382                     value:
383                       key:
384                         name: LinkFailureInputSchema
385                         version: 0.0.1
386                       UUID: 3b3974fc-3012-3b02-9f33-c9d8eefe4dc1
387                       description: Generated description for concept referred to by
388                         key "LinkFailureInputSchema:0.0.1"
389                   - key:
390                       name: LinkFailureOutputEvent
391                       version: 0.0.1
392                     value:
393                       key:
394                         name: LinkFailureOutputEvent
395                         version: 0.0.1
396                       UUID: 4f04aa98-e917-4f4a-882a-c75ba5a99374
397                       description: Generated description for concept referred to by
398                         key "LinkFailureOutputEvent:0.0.1"
399                   - key:
400                       name: LinkFailureOutputSchema
401                       version: 0.0.1
402                     value:
403                       key:
404                         name: LinkFailureOutputSchema
405                         version: 0.0.1
406                       UUID: 2d1a7f6e-eb9a-3984-be1f-283d98111b84
407                       description: Generated description for concept referred to by
408                         key "LinkFailureOutputSchema:0.0.1"
409                   - key:
410                       name: LinkFailureTask
411                       version: 0.0.1
412                     value:
413                       key:
414                         name: LinkFailureTask
415                         version: 0.0.1
416                       UUID: 3351b0f4-cf06-4fa2-8823-edf67bd30223
417                       description: This task updates the config for O-RU when link
418                         failure is detected.
419                   - key:
420                       name: LinkMonitorModel
421                       version: 0.0.1
422                     value:
423                       key:
424                         name: LinkMonitorModel
425                         version: 0.0.1
426                       UUID: 540226fb-55ee-4f0e-a444-983a0494818e
427                       description: This is the Apex Policy Model for link monitoring.
428                   - key:
429                       name: LinkMonitorModel_Events
430                       version: 0.0.1
431                     value:
432                       key:
433                         name: LinkMonitorModel_Events
434                         version: 0.0.1
435                       UUID: 27ad3e7e-fe3b-3bd6-9081-718705c2bcea
436                       description: Generated description for concept referred to by
437                         key "LinkMonitorModel_Events:0.0.1"
438                   - key:
439                       name: LinkMonitorModel_KeyInfo
440                       version: 0.0.1
441                     value:
442                       key:
443                         name: LinkMonitorModel_KeyInfo
444                         version: 0.0.1
445                       UUID: ea0b5f58-eefd-358a-9660-840c640bf981
446                       description: Generated description for concept referred to by
447                         key "LinkMonitorModel_KeyInfo:0.0.1"
448                   - key:
449                       name: LinkMonitorModel_Policies
450                       version: 0.0.1
451                     value:
452                       key:
453                         name: LinkMonitorModel_Policies
454                         version: 0.0.1
455                       UUID: ee9e0b0f-2b7d-3ab7-9a98-c5ec05ed823d
456                       description: Generated description for concept referred to by
457                         key "LinkMonitorModel_Policies:0.0.1"
458                   - key:
459                       name: LinkMonitorModel_Schemas
460                       version: 0.0.1
461                     value:
462                       key:
463                         name: LinkMonitorModel_Schemas
464                         version: 0.0.1
465                       UUID: fa5f9b8f-796c-3c70-84e9-5140c958c4bb
466                       description: Generated description for concept referred to by
467                         key "LinkMonitorModel_Schemas:0.0.1"
468                   - key:
469                       name: LinkMonitorModel_Tasks
470                       version: 0.0.1
471                     value:
472                       key:
473                         name: LinkMonitorModel_Tasks
474                         version: 0.0.1
475                       UUID: eec592f7-69d5-39a9-981a-e552f787ed01
476                       description: Generated description for concept referred to by
477                         key "LinkMonitorModel_Tasks:0.0.1"
478                   - key:
479                       name: LinkMonitorPolicy
480                       version: 0.0.1
481                     value:
482                       key:
483                         name: LinkMonitorPolicy
484                         version: 0.0.1
485                       UUID: 6c5e410f-489a-46ff-964e-982ce6e8b6d0
486                       description: Generated description for concept referred to by
487                         key "LinkMonitorPolicy:0.0.1"
488                   - key:
489                       name: MessageSchema
490                       version: 0.0.1
491                     value:
492                       key:
493                         name: MessageSchema
494                         version: 0.0.1
495                       UUID: ac4b34ac-39d6-3393-a267-8d5b84854018
496                       description: A schema for messages from apex
497                   - key:
498                       name: NoPolicyDefinedTask
499                       version: 0.0.1
500                     value:
501                       key:
502                         name: NoPolicyDefinedTask
503                         version: 0.0.1
504                       UUID: d48b619e-d00d-4008-b884-02d76ea4350b
505                       description: This task sends a message to the output when an
506                         event is received for which no policy has been defined.
507                   - key:
508                       name: OduIdSchema
509                       version: 0.0.1
510                     value:
511                       key:
512                         name: OduIdSchema
513                         version: 0.0.1
514                       UUID: 50662174-a88b-3cbd-91bd-8e91b40b2660
515                       description: A schema for O-DU-ID
516                   - key:
517                       name: OruIdSchema
518                       version: 0.0.1
519                     value:
520                       key:
521                         name: OruIdSchema
522                         version: 0.0.1
523                       UUID: 54daf32b-015f-39cd-8530-a1175c5553e9
524                       description: A schema for O-RU-ID
525               policies:
526                 key:
527                   name: LinkMonitorModel_Policies
528                   version: 0.0.1
529                 policyMap:
530                   entry:
531                   - key:
532                       name: LinkMonitorPolicy
533                       version: 0.0.1
534                     value:
535                       policyKey:
536                         name: LinkMonitorPolicy
537                         version: 0.0.1
538                       template: Freestyle
539                       state:
540                         entry:
541                         - key: LinkClearedState
542                           value:
543                             stateKey:
544                               parentKeyName: LinkMonitorPolicy
545                               parentKeyVersion: 0.0.1
546                               parentLocalName: 'NULL'
547                               localName: LinkClearedState
548                             trigger:
549                               name: CreateLinkClearedOutfieldsEvent
550                               version: 0.0.1
551                             stateOutputs:
552                               entry:
553                               - key: LinkClearedLogic_Output_Direct
554                                 value:
555                                   key:
556                                     parentKeyName: LinkMonitorPolicy
557                                     parentKeyVersion: 0.0.1
558                                     parentLocalName: LinkClearedState
559                                     localName: LinkClearedLogic_Output_Direct
560                                   outgoingEvent:
561                                     name: ApexMessageOutputEvent
562                                     version: 0.0.1
563                                   nextState:
564                                     parentKeyName: 'NULL'
565                                     parentKeyVersion: 0.0.0
566                                     parentLocalName: 'NULL'
567                                     localName: 'NULL'
568                             contextAlbumReference: []
569                             taskSelectionLogic:
570                               key: 'NULL'
571                               logicFlavour: UNDEFINED
572                               logic: ''
573                             stateFinalizerLogicMap:
574                               entry: []
575                             defaultTask:
576                               name: LinkClearedTask
577                               version: 0.0.1
578                             taskReferences:
579                               entry:
580                               - key:
581                                   name: LinkClearedTask
582                                   version: 0.0.1
583                                 value:
584                                   key:
585                                     parentKeyName: LinkMonitorPolicy
586                                     parentKeyVersion: 0.0.1
587                                     parentLocalName: LinkClearedState
588                                     localName: LinkClearedTask
589                                   outputType: DIRECT
590                                   output:
591                                     parentKeyName: LinkMonitorPolicy
592                                     parentKeyVersion: 0.0.1
593                                     parentLocalName: LinkClearedState
594                                     localName: LinkClearedLogic_Output_Direct
595                         - key: LinkFailureOrClearedState
596                           value:
597                             stateKey:
598                               parentKeyName: LinkMonitorPolicy
599                               parentKeyVersion: 0.0.1
600                               parentLocalName: 'NULL'
601                               localName: LinkFailureOrClearedState
602                             trigger:
603                               name: LinkFailureInputEvent
604                               version: 0.0.1
605                             stateOutputs:
606                               entry:
607                               - key: CreateLinkClearedOutfieldsLogic_Output_Direct
608                                 value:
609                                   key:
610                                     parentKeyName: LinkMonitorPolicy
611                                     parentKeyVersion: 0.0.1
612                                     parentLocalName: LinkFailureOrClearedState
613                                     localName: CreateLinkClearedOutfieldsLogic_Output_Direct
614                                   outgoingEvent:
615                                     name: CreateLinkClearedOutfieldsEvent
616                                     version: 0.0.1
617                                   nextState:
618                                     parentKeyName: LinkMonitorPolicy
619                                     parentKeyVersion: 0.0.1
620                                     parentLocalName: 'NULL'
621                                     localName: LinkClearedState
622                               - key: CreateLinkFailureOutfieldsLogic_Output_Direct
623                                 value:
624                                   key:
625                                     parentKeyName: LinkMonitorPolicy
626                                     parentKeyVersion: 0.0.1
627                                     parentLocalName: LinkFailureOrClearedState
628                                     localName: CreateLinkFailureOutfieldsLogic_Output_Direct
629                                   outgoingEvent:
630                                     name: CreateLinkFailureOutfieldsEvent
631                                     version: 0.0.1
632                                   nextState:
633                                     parentKeyName: LinkMonitorPolicy
634                                     parentKeyVersion: 0.0.1
635                                     parentLocalName: 'NULL'
636                                     localName: LinkFailureState
637                               - key: NoPolicyDefinedLogic_Output_Direct
638                                 value:
639                                   key:
640                                     parentKeyName: LinkMonitorPolicy
641                                     parentKeyVersion: 0.0.1
642                                     parentLocalName: LinkFailureOrClearedState
643                                     localName: NoPolicyDefinedLogic_Output_Direct
644                                   outgoingEvent:
645                                     name: ApexMessageOutputEvent
646                                     version: 0.0.1
647                                   nextState:
648                                     parentKeyName: 'NULL'
649                                     parentKeyVersion: 0.0.0
650                                     parentLocalName: 'NULL'
651                                     localName: 'NULL'
652                             contextAlbumReference: []
653                             taskSelectionLogic:
654                               key: TaskSelectionLogic
655                               logicFlavour: JAVASCRIPT
656                               logic: |-
657                                 /*
658                                  * ============LICENSE_START=======================================================
659                                  * Copyright (C) 2021 Nordix Foundation.
660                                  * ================================================================================
661                                  * Licensed under the Apache License, Version 2.0 (the "License");
662                                  * you may not use this file except in compliance with the License.
663                                  * You may obtain a copy of the License at
664                                  *
665                                  *      http://www.apache.org/licenses/LICENSE-2.0
666                                  *
667                                  * Unless required by applicable law or agreed to in writing, software
668                                  * distributed under the License is distributed on an "AS IS" BASIS,
669                                  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
670                                  * See the License for the specific language governing permissions and
671                                  * limitations under the License.
672                                  *
673                                  * SPDX-License-Identifier: Apache-2.0
674                                  * ============LICENSE_END=========================================================
675                                  */
676
677                                 executor.logger.info("Task Selection Execution: '"+executor.subject.id+
678                                     "'. InputFields: '"+executor.inFields+"'");
679
680                                 var linkFailureInput = executor.inFields.get("LinkFailureInput");
681                                 var commonEventHeader = linkFailureInput.get("event").get("commonEventHeader");
682                                 var domain = commonEventHeader.get("domain");
683
684                                 taskFailure = executor.subject.getTaskKey("CreateLinkFailureOutfieldsTask");
685                                 taskCleared = executor.subject.getTaskKey("CreateLinkClearedOutfieldsTask");
686                                 taskDefault = executor.subject.getDefaultTaskKey();
687
688                                 if (domain == "fault") {
689                                     var faultFields = linkFailureInput.get("event").get("faultFields");
690                                     var alarmCondition = faultFields.get("alarmCondition");
691                                     var eventSeverity = faultFields.get("eventSeverity");
692                                     if (alarmCondition == "28" && eventSeverity != "NORMAL") {
693                                         taskFailure.copyTo(executor.selectedTask);
694                                     } else if (alarmCondition == "28" && eventSeverity == "NORMAL") {
695                                         taskCleared.copyTo(executor.selectedTask);
696                                     } else {
697                                         taskDefault.copyTo(executor.selectedTask);
698                                     }
699                                 } else {
700                                     taskDefault.copyTo(executor.selectedTask);
701                                 }
702
703                                 true;
704                             stateFinalizerLogicMap:
705                               entry: []
706                             defaultTask:
707                               name: NoPolicyDefinedTask
708                               version: 0.0.1
709                             taskReferences:
710                               entry:
711                               - key:
712                                   name: CreateLinkClearedOutfieldsTask
713                                   version: 0.0.1
714                                 value:
715                                   key:
716                                     parentKeyName: LinkMonitorPolicy
717                                     parentKeyVersion: 0.0.1
718                                     parentLocalName: LinkFailureOrClearedState
719                                     localName: CreateLinkClearedOutfieldsTask
720                                   outputType: DIRECT
721                                   output:
722                                     parentKeyName: LinkMonitorPolicy
723                                     parentKeyVersion: 0.0.1
724                                     parentLocalName: LinkFailureOrClearedState
725                                     localName: CreateLinkClearedOutfieldsLogic_Output_Direct
726                               - key:
727                                   name: CreateLinkFailureOutfieldsTask
728                                   version: 0.0.1
729                                 value:
730                                   key:
731                                     parentKeyName: LinkMonitorPolicy
732                                     parentKeyVersion: 0.0.1
733                                     parentLocalName: LinkFailureOrClearedState
734                                     localName: CreateLinkFailureOutfieldsTask
735                                   outputType: DIRECT
736                                   output:
737                                     parentKeyName: LinkMonitorPolicy
738                                     parentKeyVersion: 0.0.1
739                                     parentLocalName: LinkFailureOrClearedState
740                                     localName: CreateLinkFailureOutfieldsLogic_Output_Direct
741                               - key:
742                                   name: NoPolicyDefinedTask
743                                   version: 0.0.1
744                                 value:
745                                   key:
746                                     parentKeyName: LinkMonitorPolicy
747                                     parentKeyVersion: 0.0.1
748                                     parentLocalName: LinkFailureOrClearedState
749                                     localName: NoPolicyDefinedTask
750                                   outputType: DIRECT
751                                   output:
752                                     parentKeyName: LinkMonitorPolicy
753                                     parentKeyVersion: 0.0.1
754                                     parentLocalName: LinkFailureOrClearedState
755                                     localName: NoPolicyDefinedLogic_Output_Direct
756                         - key: LinkFailureState
757                           value:
758                             stateKey:
759                               parentKeyName: LinkMonitorPolicy
760                               parentKeyVersion: 0.0.1
761                               parentLocalName: 'NULL'
762                               localName: LinkFailureState
763                             trigger:
764                               name: CreateLinkFailureOutfieldsEvent
765                               version: 0.0.1
766                             stateOutputs:
767                               entry:
768                               - key: LinkFailureLogic_Output_Direct
769                                 value:
770                                   key:
771                                     parentKeyName: LinkMonitorPolicy
772                                     parentKeyVersion: 0.0.1
773                                     parentLocalName: LinkFailureState
774                                     localName: LinkFailureLogic_Output_Direct
775                                   outgoingEvent:
776                                     name: LinkFailureOutputEvent
777                                     version: 0.0.1
778                                   nextState:
779                                     parentKeyName: 'NULL'
780                                     parentKeyVersion: 0.0.0
781                                     parentLocalName: 'NULL'
782                                     localName: 'NULL'
783                             contextAlbumReference: []
784                             taskSelectionLogic:
785                               key: 'NULL'
786                               logicFlavour: UNDEFINED
787                               logic: ''
788                             stateFinalizerLogicMap:
789                               entry: []
790                             defaultTask:
791                               name: LinkFailureTask
792                               version: 0.0.1
793                             taskReferences:
794                               entry:
795                               - key:
796                                   name: LinkFailureTask
797                                   version: 0.0.1
798                                 value:
799                                   key:
800                                     parentKeyName: LinkMonitorPolicy
801                                     parentKeyVersion: 0.0.1
802                                     parentLocalName: LinkFailureState
803                                     localName: LinkFailureTask
804                                   outputType: DIRECT
805                                   output:
806                                     parentKeyName: LinkMonitorPolicy
807                                     parentKeyVersion: 0.0.1
808                                     parentLocalName: LinkFailureState
809                                     localName: LinkFailureLogic_Output_Direct
810                       firstState: LinkFailureOrClearedState
811               tasks:
812                 key:
813                   name: LinkMonitorModel_Tasks
814                   version: 0.0.1
815                 taskMap:
816                   entry:
817                   - key:
818                       name: CreateLinkClearedOutfieldsTask
819                       version: 0.0.1
820                     value:
821                       key:
822                         name: CreateLinkClearedOutfieldsTask
823                         version: 0.0.1
824                       inputFields:
825                         entry:
826                         - key: LinkFailureInput
827                           value:
828                             key: LinkFailureInput
829                             fieldSchemaKey:
830                               name: LinkFailureInputSchema
831                               version: 0.0.1
832                             optional: false
833                       outputFields:
834                         entry:
835                         - key: OruId
836                           value:
837                             key: OruId
838                             fieldSchemaKey:
839                               name: OruIdSchema
840                               version: 0.0.1
841                             optional: false
842                       taskParameters:
843                         entry: []
844                       contextAlbumReference: []
845                       taskLogic:
846                         key: TaskLogic
847                         logicFlavour: JAVASCRIPT
848                         logic: |-
849                           /*
850                            * ============LICENSE_START=======================================================
851                            * Copyright (C) 2021 Nordix Foundation.
852                            * ================================================================================
853                            * Licensed under the Apache License, Version 2.0 (the "License");
854                            * you may not use this file except in compliance with the License.
855                            * You may obtain a copy of the License at
856                            *
857                            *      http://www.apache.org/licenses/LICENSE-2.0
858                            *
859                            * Unless required by applicable law or agreed to in writing, software
860                            * distributed under the License is distributed on an "AS IS" BASIS,
861                            * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
862                            * See the License for the specific language governing permissions and
863                            * limitations under the License.
864                            *
865                            * SPDX-License-Identifier: Apache-2.0
866                            * ============LICENSE_END=========================================================
867                            */
868
869                           executor.logger.info("Task Execution: '"+executor.subject.id+"'. Input Fields: '"+executor.inFields+"'");
870
871                           var linkFailureInput = executor.inFields.get("LinkFailureInput");
872                           var oruId = linkFailureInput.get("event").get("commonEventHeader").get("sourceName");
873
874                           executor.outFields.put("OruId", oruId);
875
876                           executor.logger.info(executor.outFields);
877
878                           true;
879                   - key:
880                       name: CreateLinkFailureOutfieldsTask
881                       version: 0.0.1
882                     value:
883                       key:
884                         name: CreateLinkFailureOutfieldsTask
885                         version: 0.0.1
886                       inputFields:
887                         entry:
888                         - key: LinkFailureInput
889                           value:
890                             key: LinkFailureInput
891                             fieldSchemaKey:
892                               name: LinkFailureInputSchema
893                               version: 0.0.1
894                             optional: false
895                       outputFields:
896                         entry:
897                         - key: OduId
898                           value:
899                             key: OduId
900                             fieldSchemaKey:
901                               name: OduIdSchema
902                               version: 0.0.1
903                             optional: false
904                         - key: OruId
905                           value:
906                             key: OruId
907                             fieldSchemaKey:
908                               name: OruIdSchema
909                               version: 0.0.1
910                             optional: false
911                       taskParameters:
912                         entry: []
913                       contextAlbumReference: []
914                       taskLogic:
915                         key: TaskLogic
916                         logicFlavour: JAVASCRIPT
917                         logic: |-
918                           /*
919                            * ============LICENSE_START=======================================================
920                            * Copyright (C) 2021 Nordix Foundation.
921                            * ================================================================================
922                            * Licensed under the Apache License, Version 2.0 (the "License");
923                            * you may not use this file except in compliance with the License.
924                            * You may obtain a copy of the License at
925                            *
926                            *      http://www.apache.org/licenses/LICENSE-2.0
927                            *
928                            * Unless required by applicable law or agreed to in writing, software
929                            * distributed under the License is distributed on an "AS IS" BASIS,
930                            * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
931                            * See the License for the specific language governing permissions and
932                            * limitations under the License.
933                            *
934                            * SPDX-License-Identifier: Apache-2.0
935                            * ============LICENSE_END=========================================================
936                            */
937
938                           executor.logger.info("Task Execution: '"+executor.subject.id+"'. Input Fields: '"+executor.inFields+"'");
939
940                           var returnValue = true;
941                           var linkFailureInput = executor.inFields.get("LinkFailureInput");
942                           var oruId = linkFailureInput.get("event").get("commonEventHeader").get("sourceName");
943                           var oruOduMap = JSON.parse(executor.parameters.get("ORU-ODU-Map"));
944
945                           if (oruId in oruOduMap) {
946                               var oduId = oruOduMap[oruId];
947                               executor.outFields.put("OruId", oruId);
948                               executor.outFields.put("OduId", oduId);
949                               executor.logger.info(executor.outFields);
950                           } else {
951                               executor.message = "No O-RU found in the config with this ID: " + oruId;
952                               returnValue = false;
953                           }
954
955                           returnValue;
956                   - key:
957                       name: LinkClearedTask
958                       version: 0.0.1
959                     value:
960                       key:
961                         name: LinkClearedTask
962                         version: 0.0.1
963                       inputFields:
964                         entry:
965                         - key: OruId
966                           value:
967                             key: OruId
968                             fieldSchemaKey:
969                               name: OruIdSchema
970                               version: 0.0.1
971                             optional: false
972                       outputFields:
973                         entry:
974                         - key: message
975                           value:
976                             key: message
977                             fieldSchemaKey:
978                               name: MessageSchema
979                               version: 0.0.1
980                             optional: false
981                       taskParameters:
982                         entry: []
983                       contextAlbumReference: []
984                       taskLogic:
985                         key: TaskLogic
986                         logicFlavour: JAVASCRIPT
987                         logic: |-
988                           /*
989                            * ============LICENSE_START=======================================================
990                            * Copyright (C) 2021 Nordix Foundation.
991                            * ================================================================================
992                            * Licensed under the Apache License, Version 2.0 (the "License");
993                            * you may not use this file except in compliance with the License.
994                            * You may obtain a copy of the License at
995                            *
996                            *      http://www.apache.org/licenses/LICENSE-2.0
997                            *
998                            * Unless required by applicable law or agreed to in writing, software
999                            * distributed under the License is distributed on an "AS IS" BASIS,
1000                            * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1001                            * See the License for the specific language governing permissions and
1002                            * limitations under the License.
1003                            *
1004                            * SPDX-License-Identifier: Apache-2.0
1005                            * ============LICENSE_END=========================================================
1006                            */
1007
1008                           executor.logger.info("Task Execution: '"+executor.subject.id+"'. Input Fields: '"+executor.inFields+"'");
1009
1010                           var oruId = executor.inFields.get("OruId");
1011
1012                           executor.outFields.put("message", "CLEARED link failure for O-RU: " + oruId);
1013
1014                           executor.logger.info(executor.outFields);
1015
1016                           true;
1017                   - key:
1018                       name: LinkFailureTask
1019                       version: 0.0.1
1020                     value:
1021                       key:
1022                         name: LinkFailureTask
1023                         version: 0.0.1
1024                       inputFields:
1025                         entry:
1026                         - key: OduId
1027                           value:
1028                             key: OduId
1029                             fieldSchemaKey:
1030                               name: OduIdSchema
1031                               version: 0.0.1
1032                             optional: false
1033                         - key: OruId
1034                           value:
1035                             key: OruId
1036                             fieldSchemaKey:
1037                               name: OruIdSchema
1038                               version: 0.0.1
1039                             optional: false
1040                       outputFields:
1041                         entry:
1042                         - key: LinkFailureOutput
1043                           value:
1044                             key: LinkFailureOutput
1045                             fieldSchemaKey:
1046                               name: LinkFailureOutputSchema
1047                               version: 0.0.1
1048                             optional: false
1049                       taskParameters:
1050                         entry: []
1051                       contextAlbumReference: []
1052                       taskLogic:
1053                         key: TaskLogic
1054                         logicFlavour: JAVASCRIPT
1055                         logic: |-
1056                           /*
1057                            * ============LICENSE_START=======================================================
1058                            * Copyright (C) 2021 Nordix Foundation.
1059                            * ================================================================================
1060                            * Licensed under the Apache License, Version 2.0 (the "License");
1061                            * you may not use this file except in compliance with the License.
1062                            * You may obtain a copy of the License at
1063                            *
1064                            *      http://www.apache.org/licenses/LICENSE-2.0
1065                            *
1066                            * Unless required by applicable law or agreed to in writing, software
1067                            * distributed under the License is distributed on an "AS IS" BASIS,
1068                            * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1069                            * See the License for the specific language governing permissions and
1070                            * limitations under the License.
1071                            *
1072                            * SPDX-License-Identifier: Apache-2.0
1073                            * ============LICENSE_END=========================================================
1074                            */
1075
1076                           executor.logger.info("Task Execution: '"+executor.subject.id+"'. Input Fields: '"+executor.inFields+"'");
1077
1078                           var linkFailureOutput = executor.subject.getOutFieldSchemaHelper("LinkFailureOutput").createNewInstance();
1079
1080                           var oruId = executor.inFields.get("OruId");
1081                           var oduId = executor.inFields.get("OduId");
1082
1083                           var unlockMessageArray = new java.util.ArrayList();
1084                           for (var i = 0; i < 1; i++) {
1085                               unlockMessageArray.add({
1086                                   "name" : oruId,
1087                                   "administrative_DasH_state" : "UNLOCKED"
1088                               });
1089                           }
1090
1091                           linkFailureOutput.put("o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_du_DasH_to_DasH_ru_DasH_connection", unlockMessageArray);
1092                           executor.outFields.put("LinkFailureOutput", linkFailureOutput.toString());
1093
1094                           executor.getExecutionProperties().setProperty("OduId", oduId);
1095                           executor.getExecutionProperties().setProperty("OruId", oruId);
1096
1097                           executor.logger.info(executor.outFields);
1098
1099                           true;
1100                   - key:
1101                       name: NoPolicyDefinedTask
1102                       version: 0.0.1
1103                     value:
1104                       key:
1105                         name: NoPolicyDefinedTask
1106                         version: 0.0.1
1107                       inputFields:
1108                         entry:
1109                         - key: LinkFailureInput
1110                           value:
1111                             key: LinkFailureInput
1112                             fieldSchemaKey:
1113                               name: LinkFailureInputSchema
1114                               version: 0.0.1
1115                             optional: false
1116                       outputFields:
1117                         entry:
1118                         - key: message
1119                           value:
1120                             key: message
1121                             fieldSchemaKey:
1122                               name: MessageSchema
1123                               version: 0.0.1
1124                             optional: false
1125                       taskParameters:
1126                         entry: []
1127                       contextAlbumReference: []
1128                       taskLogic:
1129                         key: TaskLogic
1130                         logicFlavour: JAVASCRIPT
1131                         logic: |-
1132                           /*
1133                            * ============LICENSE_START=======================================================
1134                            * Copyright (C) 2021 Nordix Foundation.
1135                            * ================================================================================
1136                            * Licensed under the Apache License, Version 2.0 (the "License");
1137                            * you may not use this file except in compliance with the License.
1138                            * You may obtain a copy of the License at
1139                            *
1140                            *      http://www.apache.org/licenses/LICENSE-2.0
1141                            *
1142                            * Unless required by applicable law or agreed to in writing, software
1143                            * distributed under the License is distributed on an "AS IS" BASIS,
1144                            * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1145                            * See the License for the specific language governing permissions and
1146                            * limitations under the License.
1147                            *
1148                            * SPDX-License-Identifier: Apache-2.0
1149                            * ============LICENSE_END=========================================================
1150                            */
1151
1152                           executor.logger.info("Task Execution: '"+executor.subject.id+"'. Input Fields: '"+executor.inFields+"'");
1153
1154                           executor.outFields.put("message", "No policy defined for this event");
1155
1156                           executor.logger.info(executor.outFields);
1157
1158                           true;
1159               events:
1160                 key:
1161                   name: LinkMonitorModel_Events
1162                   version: 0.0.1
1163                 eventMap:
1164                   entry:
1165                   - key:
1166                       name: ApexMessageOutputEvent
1167                       version: 0.0.1
1168                     value:
1169                       key:
1170                         name: ApexMessageOutputEvent
1171                         version: 0.0.1
1172                       nameSpace: org.onap.policy.apex.auth.clieditor
1173                       source: APEX
1174                       target: APEX
1175                       parameter:
1176                         entry:
1177                         - key: message
1178                           value:
1179                             key: message
1180                             fieldSchemaKey:
1181                               name: MessageSchema
1182                               version: 0.0.1
1183                             optional: false
1184                   - key:
1185                       name: CreateLinkClearedOutfieldsEvent
1186                       version: 0.0.1
1187                     value:
1188                       key:
1189                         name: CreateLinkClearedOutfieldsEvent
1190                         version: 0.0.1
1191                       nameSpace: org.onap.policy.apex.auth.clieditor
1192                       source: APEX
1193                       target: APEX
1194                       parameter:
1195                         entry:
1196                         - key: OruId
1197                           value:
1198                             key: OruId
1199                             fieldSchemaKey:
1200                               name: OruIdSchema
1201                               version: 0.0.1
1202                             optional: false
1203                   - key:
1204                       name: CreateLinkFailureOutfieldsEvent
1205                       version: 0.0.1
1206                     value:
1207                       key:
1208                         name: CreateLinkFailureOutfieldsEvent
1209                         version: 0.0.1
1210                       nameSpace: org.onap.policy.apex.auth.clieditor
1211                       source: APEX
1212                       target: APEX
1213                       parameter:
1214                         entry:
1215                         - key: OduId
1216                           value:
1217                             key: OduId
1218                             fieldSchemaKey:
1219                               name: OduIdSchema
1220                               version: 0.0.1
1221                             optional: false
1222                         - key: OruId
1223                           value:
1224                             key: OruId
1225                             fieldSchemaKey:
1226                               name: OruIdSchema
1227                               version: 0.0.1
1228                             optional: false
1229                   - key:
1230                       name: LinkFailureInputEvent
1231                       version: 0.0.1
1232                     value:
1233                       key:
1234                         name: LinkFailureInputEvent
1235                         version: 0.0.1
1236                       nameSpace: org.onap.policy.apex.auth.clieditor
1237                       source: DMAAP
1238                       target: APEX
1239                       parameter:
1240                         entry:
1241                         - key: LinkFailureInput
1242                           value:
1243                             key: LinkFailureInput
1244                             fieldSchemaKey:
1245                               name: LinkFailureInputSchema
1246                               version: 0.0.1
1247                             optional: false
1248                   - key:
1249                       name: LinkFailureOutputEvent
1250                       version: 0.0.1
1251                     value:
1252                       key:
1253                         name: LinkFailureOutputEvent
1254                         version: 0.0.1
1255                       nameSpace: org.onap.policy.apex.auth.clieditor
1256                       source: APEX
1257                       target: OAM
1258                       parameter:
1259                         entry:
1260                         - key: LinkFailureOutput
1261                           value:
1262                             key: LinkFailureOutput
1263                             fieldSchemaKey:
1264                               name: LinkFailureOutputSchema
1265                               version: 0.0.1
1266                             optional: false
1267               schemas:
1268                 key:
1269                   name: LinkMonitorModel_Schemas
1270                   version: 0.0.1
1271                 schemas:
1272                   entry:
1273                   - key:
1274                       name: LinkFailureInputSchema
1275                       version: 0.0.1
1276                     value:
1277                       key:
1278                         name: LinkFailureInputSchema
1279                         version: 0.0.1
1280                       schemaFlavour: Avro
1281                       schemaDefinition: |-
1282                         {
1283                             "type": "record",
1284                             "name": "Link_Failure_Input",
1285                             "fields": [
1286                                 {
1287                                     "name": "event",
1288                                     "type": {
1289                                         "type": "record",
1290                                         "name": "Event_Type",
1291                                         "fields": [
1292                                             {
1293                                                 "name": "commonEventHeader",
1294                                                 "type": {
1295                                                     "type": "record",
1296                                                     "name": "Common_Event_Header_Type",
1297                                                     "fields": [
1298                                                         {
1299                                                             "name": "domain",
1300                                                             "type": "string"
1301                                                         },
1302                                                         {
1303                                                             "name": "eventId",
1304                                                             "type": "string"
1305                                                         },
1306                                                         {
1307                                                             "name": "eventName",
1308                                                             "type": "string"
1309                                                         },
1310                                                         {
1311                                                             "name": "eventType",
1312                                                             "type": "string"
1313                                                         },
1314                                                         {
1315                                                             "name": "sequence",
1316                                                             "type": "int"
1317                                                         },
1318                                                         {
1319                                                             "name": "priority",
1320                                                             "type": "string"
1321                                                         },
1322                                                         {
1323                                                             "name": "reportingEntityId",
1324                                                             "type": "string"
1325                                                         },
1326                                                         {
1327                                                             "name": "reportingEntityName",
1328                                                             "type": "string"
1329                                                         },
1330                                                         {
1331                                                             "name": "sourceId",
1332                                                             "type": "string"
1333                                                         },
1334                                                         {
1335                                                             "name": "sourceName",
1336                                                             "type": "string"
1337                                                         },
1338                                                         {
1339                                                             "name": "startEpochMicrosec",
1340                                                             "type": "string"
1341                                                         },
1342                                                         {
1343                                                             "name": "lastEpochMicrosec",
1344                                                             "type": "string"
1345                                                         },
1346                                                         {
1347                                                             "name": "nfNamingCode",
1348                                                             "type": "string"
1349                                                         },
1350                                                         {
1351                                                             "name": "nfVendorName",
1352                                                             "type": "string"
1353                                                         },
1354                                                         {
1355                                                             "name": "timeZoneOffset",
1356                                                             "type": "string"
1357                                                         },
1358                                                         {
1359                                                             "name": "version",
1360                                                             "type": "string"
1361                                                         },
1362                                                         {
1363                                                             "name": "vesEventListenerVersion",
1364                                                             "type": "string"
1365                                                         }
1366                                                     ]
1367                                                 }
1368                                             },
1369                                             {
1370                                                 "name": "faultFields",
1371                                                 "type": {
1372                                                     "type": "record",
1373                                                     "name": "Fault_Fields_Type",
1374                                                     "fields": [
1375                                                         {
1376                                                             "name": "faultFieldsVersion",
1377                                                             "type": "string"
1378                                                         },
1379                                                         {
1380                                                             "name": "alarmCondition",
1381                                                             "type": "string"
1382                                                         },
1383                                                         {
1384                                                             "name": "alarmInterfaceA",
1385                                                             "type": "string"
1386                                                         },
1387                                                         {
1388                                                             "name": "eventSourceType",
1389                                                             "type": "string"
1390                                                         },
1391                                                         {
1392                                                             "name": "specificProblem",
1393                                                             "type": "string"
1394                                                         },
1395                                                         {
1396                                                             "name": "eventSeverity",
1397                                                             "type": "string"
1398                                                         },
1399                                                         {
1400                                                             "name": "vfStatus",
1401                                                             "type": "string"
1402                                                         },
1403                                                         {
1404                                                             "name": "alarmAdditionalInformation",
1405                                                             "type": {
1406                                                                 "type": "record",
1407                                                                 "name": "Alarm_Additional_Information_Type",
1408                                                                 "fields": [
1409                                                                     {
1410                                                                         "name": "eventTime",
1411                                                                         "type": "string"
1412                                                                     },
1413                                                                     {
1414                                                                         "name": "equipType",
1415                                                                         "type": "string"
1416                                                                     },
1417                                                                     {
1418                                                                         "name": "vendor",
1419                                                                         "type": "string"
1420                                                                     },
1421                                                                     {
1422                                                                         "name": "model",
1423                                                                         "type": "string"
1424                                                                     }
1425                                                                 ]
1426                                                             }
1427                                                         }
1428                                                     ]
1429                                                 }
1430                                             }
1431                                         ]
1432                                     }
1433                                 }
1434                             ]
1435                         }
1436                   - key:
1437                       name: LinkFailureOutputSchema
1438                       version: 0.0.1
1439                     value:
1440                       key:
1441                         name: LinkFailureOutputSchema
1442                         version: 0.0.1
1443                       schemaFlavour: Avro
1444                       schemaDefinition: "{\n    \"type\": \"record\",\n    \"name\":
1445                         \"Link_Failure_Output\",\n    \"fields\": [\n        {\n            \"name\":
1446                         \"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_du_DasH_to_DasH_ru_DasH_connection\",\n
1447                         \           \"type\": {\n        \t\"type\": \"array\",\n
1448                         \       \t\"items\": {\n\t\t    \"name\": \"Config_Change_Message\",\n
1449                         \                   \"type\": \"record\",\n                    \"fields\":
1450                         [\n                        {\n                            \"name\":
1451                         \"name\",\n                            \"type\": \"string\"\n
1452                         \                       },\n\t\t\t{\n                            \"name\":
1453                         \"administrative_DasH_state\",\n                            \"type\":
1454                         \"string\"\n                        }\n                    ]\n
1455                         \               }\n\t    }\n        }\n    ]\n}"
1456                   - key:
1457                       name: MessageSchema
1458                       version: 0.0.1
1459                     value:
1460                       key:
1461                         name: MessageSchema
1462                         version: 0.0.1
1463                       schemaFlavour: Java
1464                       schemaDefinition: java.lang.String
1465                   - key:
1466                       name: OduIdSchema
1467                       version: 0.0.1
1468                     value:
1469                       key:
1470                         name: OduIdSchema
1471                         version: 0.0.1
1472                       schemaFlavour: Java
1473                       schemaDefinition: java.lang.String
1474                   - key:
1475                       name: OruIdSchema
1476                       version: 0.0.1
1477                     value:
1478                       key:
1479                         name: OruIdSchema
1480                         version: 0.0.1
1481                       schemaFlavour: Java
1482                       schemaDefinition: java.lang.String
1483         eventOutputParameters:
1484           RestProducer:
1485             carrierTechnologyParameters:
1486               carrierTechnology: RESTCLIENT
1487               parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters
1488               parameters:
1489                 url: http://sdnr-sim:9990/rests/data/network-topology:network-topology/topology=topology-netconf/node={OduId}/yang-ext:mount/o-ran-sc-du-hello-world:network-function/du-to-ru-connection={OruId}
1490                 httpMethod: PUT
1491                 httpHeaders:
1492                 - - Authorization
1493                   - Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ==
1494             eventProtocolParameters:
1495               eventProtocol: JSON
1496               parameters:
1497                 pojoField: LinkFailureOutput
1498             eventNameFilter: LinkFailureOutputEvent
1499           StdOutProducer:
1500             carrierTechnologyParameters:
1501               carrierTechnology: FILE
1502               parameters:
1503                 standardIo: true
1504             eventProtocolParameters:
1505               eventProtocol: JSON
1506               parameters:
1507                 pojoField: message
1508             eventNameFilter: ApexMessageOutputEvent
1509         eventInputParameters:
1510           DMaaPConsumer:
1511             carrierTechnologyParameters:
1512               carrierTechnology: RESTCLIENT
1513               parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters
1514               parameters:
1515                 url: http://onap-dmaap:3904/events/unauthenticated.SEC_FAULT_OUTPUT/users/link-monitor-nonrtric?timeout=15000&limit=100
1516             eventProtocolParameters:
1517               eventProtocol: JSON
1518               parameters:
1519                 versionAlias: version
1520                 pojoField: LinkFailureInput
1521             eventName: LinkFailureInputEvent