diff options
author | 2020-03-08 10:39:21 -0400 | |
---|---|---|
committer | 2020-03-09 08:58:18 -0400 | |
commit | e90d37c87fdc81b1ee95963f42f53edb48fec88a (patch) | |
tree | 78e3d3fefd868e1314b71b5b639dc23cbaa243a9 /models-examples/src/main/resources/policytypes | |
parent | 8021fe6aa24b4a4c586cda78255c143eca3e3520 (diff) |
Fix guard policy types and policies
Ensured the correct properties are available for each guard
Policy Type.
Added vDNS blacklist policy for testing.
Issue-ID: POLICY-2243
Change-Id: I1cdcd3810f226446cd12f2123f8a9f41e6b5b4b2
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'models-examples/src/main/resources/policytypes')
3 files changed, 10 insertions, 3 deletions
diff --git a/models-examples/src/main/resources/policytypes/onap.policies.controlloop.guard.common.Blacklist.yaml b/models-examples/src/main/resources/policytypes/onap.policies.controlloop.guard.common.Blacklist.yaml index 058066c04..0456f43cb 100644 --- a/models-examples/src/main/resources/policytypes/onap.policies.controlloop.guard.common.Blacklist.yaml +++ b/models-examples/src/main/resources/policytypes/onap.policies.controlloop.guard.common.Blacklist.yaml @@ -8,7 +8,7 @@ policy_types: properties: blacklist: type: list - description: List of entity id's + description: List of entity id's not allowed to have control loop operations on. required: true entry_schema: type: string
\ No newline at end of file diff --git a/models-examples/src/main/resources/policytypes/onap.policies.controlloop.guard.common.FrequencyLimiter.yaml b/models-examples/src/main/resources/policytypes/onap.policies.controlloop.guard.common.FrequencyLimiter.yaml index af8efe851..bda3e4cc5 100644 --- a/models-examples/src/main/resources/policytypes/onap.policies.controlloop.guard.common.FrequencyLimiter.yaml +++ b/models-examples/src/main/resources/policytypes/onap.policies.controlloop.guard.common.FrequencyLimiter.yaml @@ -13,6 +13,7 @@ policy_types: timeUnits: type: string description: The units of time the window is counting. + required: true constraints: - valid_values: ["second", "minute", "hour", "day", "week", "month", "year"] limit: diff --git a/models-examples/src/main/resources/policytypes/onap.policies.controlloop.guard.common.MinMax.yaml b/models-examples/src/main/resources/policytypes/onap.policies.controlloop.guard.common.MinMax.yaml index 257515179..fb376d432 100644 --- a/models-examples/src/main/resources/policytypes/onap.policies.controlloop.guard.common.MinMax.yaml +++ b/models-examples/src/main/resources/policytypes/onap.policies.controlloop.guard.common.MinMax.yaml @@ -4,11 +4,17 @@ policy_types: derived_from: onap.policies.controlloop.guard.Common type_version: 1.0.0 version: 1.0.0 - description: Supports Min/Max number of entity for scaling operations + description: | + Supports Min/Max number of entity for scaling operations. Although min and max fields are marked as not + required, you need to have at least one or the other. properties: + target: + type: string + required: true + description: The target entity that has scaling restricted min: type: integer - required: true + required: false description: The minimum instances of this entity max: type: integer |