diff options
author | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2022-02-07 17:07:38 +0000 |
---|---|---|
committer | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2022-02-10 14:20:42 +0000 |
commit | 45b653fc5a8d641452247eca5c80cf580609e9bf (patch) | |
tree | 06cfd4529db05dc23cbd63d2fe2e53799eb07bdf /models-examples/src/main/resources/policies/apex.policy.decisionmaker.input.tosca.yaml | |
parent | 303d42453fbfcf2381f810b10a496b69aa8bc34b (diff) |
Add policy metadataSet handling as node templates
Each metadataSet is represented as a 'node_template' in Tosca
mapped to a specific node type.
Support added for db operations of node templates as
independent entities.
Detailed documentation available here :
https://wiki.onap.org/display/DW/Enable+Handling+of+Policy+Type+Metadata
Issue-ID: POLICY-3832
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I6c189142b1778ba858aae27cd92d4f136d950208
Diffstat (limited to 'models-examples/src/main/resources/policies/apex.policy.decisionmaker.input.tosca.yaml')
-rw-r--r-- | models-examples/src/main/resources/policies/apex.policy.decisionmaker.input.tosca.yaml | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/models-examples/src/main/resources/policies/apex.policy.decisionmaker.input.tosca.yaml b/models-examples/src/main/resources/policies/apex.policy.decisionmaker.input.tosca.yaml new file mode 100644 index 000000000..615402b11 --- /dev/null +++ b/models-examples/src/main/resources/policies/apex.policy.decisionmaker.input.tosca.yaml @@ -0,0 +1,130 @@ +--- +# Representation of apex decision maker policy with metadataSet reference in the metadata field. + +tosca_definitions_version: tosca_simple_yaml_1_1_0 +topology_template: + policies: + - operational.apex.decisionMaker: + type: onap.policies.native.Apex + type_version: 1.0.0 + name: operational.apex.decisionMaker + version: 1.0.0 + metadata: + metadataSetName: apexMetadata_decisionMaker + metadataSetVersion: 1.0.0 + properties: + engineServiceParameters: + name: MyApexEngine + version: 0.0.1 + id: 45 + instanceCount: 4 + deploymentPort: 12561 + engineParameters: + executorParameters: + JAVASCRIPT: + parameterClassName: org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters + contextParameters: + parameterClassName: org.onap.policy.apex.context.parameters.ContextParameters + schemaParameters: + Avro: + parameterClassName: org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters + Java: + parameterClassName: org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters + jsonAdapters: + Instant: + adaptedClass: java.time.Instant + adaptorClass: org.onap.policy.controlloop.util.Serialization$GsonInstantAdapter + taskParameters: + - key: ParameterKey1 + value: ParameterValue1 + - taskId: AAILookupTask:0.0.1 + key: SomeKeyForThisTask + value: Value + eventInputParameters: + GuardRequestorConsumer: + carrierTechnologyParameters: + carrierTechnology: RESTREQUESTOR + parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters + parameters: + url: http://111.222.333.444:5555/pdp/api/getDecision + httpMethod: POST + restRequestTimeout: 2000 + httpHeader: Authorization:aaaaaaaaa== ClientAuth:bbbbbbbbb= + eventProtocolParameters: + eventProtocol: JSON + eventName: GuardResponseEvent + eventNameFilter: GuardResponseEvent + requestorMode: true + requestorPeer: GuardRequestorProducer + requestorTimeout: 500 + DCAEConsumer: + carrierTechnologyParameters: + carrierTechnology: RESTCLIENT + parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters + parameters: + url: http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/APEX/1?timeout=60000 + eventProtocolParameters: + eventProtocol: JSON + parameters: + nameAlias: closedLoopControlName + versionAlias: version + sourceAlias: from + pojoField: VirtualControlLoopEvent + eventName: ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e + APPCConsumer: + carrierTechnologyParameters: + carrierTechnology: RESTCLIENT + parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters + parameters: + url: http://message-router:3904/events/APPC-LCM-WRITE/APEX/1?timeout=60000 + eventProtocolParameters: + eventProtocol: JSON + parameters: + versionAlias: version + pojoField: APPCLCMResponseEvent + eventName: APPCRestartVNFResponseEvent + eventNameFilter: APPCRestartVNFResponseEvent + eventOutputParameters: + logProducer: + carrierTechnologyParameters: + carrierTechnology: FILE + parameters: + fileName: "/tmp/VCPEEventsOut.json" + eventProtocolParameters: + eventProtocol: JSON + GuardRequestorProducer: + carrierTechnologyParameters: + carrierTechnology: RESTREQUESTOR + parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters + eventProtocolParameters: + eventProtocol: JSON + eventNameFilter: GuardRequestEvent + requestorMode: true + requestorPeer: GuardRequestorConsumer + requestorTimeout: 500 + APPCProducer: + carrierTechnologyParameters: + carrierTechnology: RESTCLIENT + parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters + parameters: + url: http://message-router:3904/events/APPC-LCM-READ + eventProtocolParameters: + eventProtocol: JSON + parameters: + versionAlias: version + sourceAlias: from + pojoField: APPCLCMRequestEvent + eventNameFilter: APPCRestartVNFRequestEvent + PolicyLogProducer: + carrierTechnologyParameters: + carrierTechnology: RESTCLIENT + parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters + parameters: + url: http://message-router:3904/events/POLICY-CL-MGT + eventProtocolParameters: + eventProtocol: JSON + parameters: + versionAlias: version + sourceAlias: from + pojoField: VirtualControlLoopNotification + eventNameFilter: ControlLoopLogEvent |