summaryrefslogtreecommitdiffstats
path: root/models-examples
diff options
context:
space:
mode:
authora.sreekumar <ajith.sreekumar@est.tech>2020-01-31 14:30:29 +0000
committera.sreekumar <ajith.sreekumar@est.tech>2020-02-03 13:54:03 +0000
commitf6ef29e667a4e4b66a1feb2f6643f1c0abd5d19a (patch)
treee3f0f1a9f55be650f5eb6e8cffe618b0ba4d6e55 /models-examples
parent172a67f92943d64d5a1eda2b1dabf6c1c1c77f7e (diff)
Design Operational Policy Type for Apex
Design the TOSCA Policy Type for operational policy supported by Apex so that CLAMP can select this policy type for control loops that are designed to use Apex. Change-Id: I50099a47d5314fa42e353856715adaaa20352a96 Issue-ID: POLICY-2147 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
Diffstat (limited to 'models-examples')
-rw-r--r--models-examples/src/main/resources/policytypes/onap.policies.controlloop.operational.Common.yaml9
-rw-r--r--models-examples/src/main/resources/policytypes/onap.policies.controlloop.operational.common.Apex.yaml23
-rw-r--r--models-examples/src/main/resources/policytypes/onap.policies.native.Apex.yaml4
3 files changed, 26 insertions, 10 deletions
diff --git a/models-examples/src/main/resources/policytypes/onap.policies.controlloop.operational.Common.yaml b/models-examples/src/main/resources/policytypes/onap.policies.controlloop.operational.Common.yaml
index dfc96bad2..2dc6ba83b 100644
--- a/models-examples/src/main/resources/policytypes/onap.policies.controlloop.operational.Common.yaml
+++ b/models-examples/src/main/resources/policytypes/onap.policies.controlloop.operational.Common.yaml
@@ -31,13 +31,6 @@ policy_types:
entry_schema:
type: onap.datatype.controlloop.Operation
- onap.policies.controlloop.operational.common.Apex:
- derived_from: onap.policies.controlloop.operational.Common
- type_version: 1.0.0
- version: 1.0.0
- description: Operational policies for Apex PDP
- properties:
-
onap.policies.controlloop.operational.common.Drools:
derived_from: onap.policies.controlloop.operational.Common
type_version: 1.0.0
@@ -166,4 +159,4 @@ data_types:
type: String
description: Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.
required: false
- default: final_failure_guard
+ default: final_failure_guard
diff --git a/models-examples/src/main/resources/policytypes/onap.policies.controlloop.operational.common.Apex.yaml b/models-examples/src/main/resources/policytypes/onap.policies.controlloop.operational.common.Apex.yaml
new file mode 100644
index 000000000..dba656769
--- /dev/null
+++ b/models-examples/src/main/resources/policytypes/onap.policies.controlloop.operational.common.Apex.yaml
@@ -0,0 +1,23 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+policy_types:
+ onap.policies.controlloop.operational.common.Apex:
+ derived_from: onap.policies.controlloop.operational.Common
+ version: 1.0.0
+ description: Operational policies for Apex PDP
+ properties:
+ engineServiceParameters:
+ type: String
+ description: The engine parameters like name, instanceCount, policy implementation, parameters etc.
+ required: true
+ eventInputParameters:
+ type: String
+ description: The event input parameters.
+ required: true
+ eventOutputParameters:
+ type: String
+ description: The event output parameters.
+ required: true
+ javaProperties:
+ type: String
+ description: Name/value pairs of properties to be set for APEX if needed.
+ required: false
diff --git a/models-examples/src/main/resources/policytypes/onap.policies.native.Apex.yaml b/models-examples/src/main/resources/policytypes/onap.policies.native.Apex.yaml
index 11663944f..1a394cd7d 100644
--- a/models-examples/src/main/resources/policytypes/onap.policies.native.Apex.yaml
+++ b/models-examples/src/main/resources/policytypes/onap.policies.native.Apex.yaml
@@ -1,4 +1,4 @@
-tosca_definitions_version: tosca_simple_yaml_1_0_0,
+tosca_definitions_version: tosca_simple_yaml_1_0_0
policy_types:
onap.policies.Native:
derived_from: tosca.policies.Root
@@ -204,4 +204,4 @@ data_types:
required: true
plugin_class_name:
type: string
- description: The class path of the plugin class for this executor \ No newline at end of file
+ description: The class path of the plugin class for this executor