Fix common properties constraint and add startDelay 78/124378/1
authorliamfallon <liam.fallon@est.tech>
Tue, 21 Sep 2021 10:59:40 +0000 (11:59 +0100)
committerliamfallon <liam.fallon@est.tech>
Tue, 21 Sep 2021 10:59:44 +0000 (11:59 +0100)
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>
common/src/main/resources/tosca/ControlLoopTOSCAServiceTemplateTypes.yaml

index e45a062..a17cb76 100644 (file)
@@ -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