From 5cb742b7e5174a02db7b50f8e92cab2829c7a507 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Tue, 21 Sep 2021 11:59:40 +0100 Subject: 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 --- .../tosca/ControlLoopTOSCAServiceTemplateTypes.yaml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'common/src/main/resources/tosca') 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 -- cgit 1.2.3-korg