aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2021-09-21 11:59:40 +0100
committerliamfallon <liam.fallon@est.tech>2021-09-21 11:59:44 +0100
commit5cb742b7e5174a02db7b50f8e92cab2829c7a507 (patch)
tree746e5fecaa3e6e177ad38cc50ee998eabc8b0668 /common
parentd9131ec55fd588ba6863de90756a8006adcc28b4 (diff)
Fix common properties constraint and add startDelay
The constraiont for greater or equal (>=) should be greater_or_equal, not greater-or-equal. Also, we need a startDelay parameter in order to synchronize the control loop element starts. Issue-ID: POLICY-3676 Change-Id: I20ecbafb1205c8af5364e75ac36a2cb879b9fe47 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'common')
-rw-r--r--common/src/main/resources/tosca/ControlLoopTOSCAServiceTemplateTypes.yaml19
1 files changed, 14 insertions, 5 deletions
diff --git a/common/src/main/resources/tosca/ControlLoopTOSCAServiceTemplateTypes.yaml b/common/src/main/resources/tosca/ControlLoopTOSCAServiceTemplateTypes.yaml
index e45a06257..a17cb7624 100644
--- a/common/src/main/resources/tosca/ControlLoopTOSCAServiceTemplateTypes.yaml
+++ b/common/src/main/resources/tosca/ControlLoopTOSCAServiceTemplateTypes.yaml
@@ -47,7 +47,7 @@ node_types:
type: integer
required: false
constraints:
- - greater-or-equal: 0
+ - greater_or_equal: 0
metadata:
common: true
description: A value indicating the start phase in which this control loop element will be started, the
@@ -58,7 +58,7 @@ node_types:
type: integer
required: false
constraints:
- - greater-or-equal: 0
+ - greater_or_equal: 0
default: 60
metadata:
common: true
@@ -67,7 +67,7 @@ node_types:
type: integer
required: false
constraints:
- - greater-or-equal: 0
+ - greater_or_equal: 0
default: 60
metadata:
common: true
@@ -76,7 +76,7 @@ node_types:
type: integer
required: false
constraints:
- - greater-or-equal: 0
+ - greater_or_equal: 0
default: 60
metadata:
common: true
@@ -85,11 +85,20 @@ node_types:
type: integer
required: false
constraints:
- - greater-or-equal: 0
+ - greater_or_equal: 0
default: 60
metadata:
common: true
description: The maximum time in seconds to wait for a state chage from passive to uninitialized
+ startDelay:
+ type: integer
+ required: false
+ constraints:
+ - greater_or_equal: 0
+ default: 0
+ metadata:
+ common: true
+ description: The number of milliseconds that the start of this control loop element should be delayed
org.onap.policy.clamp.controlloop.ControlLoop:
version: 1.0.1
derived_from: tosca.nodetypes.Root