summaryrefslogtreecommitdiffstats
path: root/models-examples/src/main/resources/policies
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2020-03-09 18:04:56 +0000
committerGerrit Code Review <gerrit@onap.org>2020-03-09 18:04:56 +0000
commit514b6bde1c25dccbd3ea1a0e8eab620318b0ae51 (patch)
tree9547ea7c0c324b619e1800a7ea2a9f168ebc6e58 /models-examples/src/main/resources/policies
parent3c1fb89886d7ebf2efe1183e92b4ed8191f506b4 (diff)
parente90d37c87fdc81b1ee95963f42f53edb48fec88a (diff)
Merge "Fix guard policy types and policies"
Diffstat (limited to 'models-examples/src/main/resources/policies')
-rw-r--r--models-examples/src/main/resources/policies/vDNS.policy.guard.blacklist.input.tosca.yaml15
-rw-r--r--models-examples/src/main/resources/policies/vDNS.policy.guard.minmaxvnfs.input.tosca.yaml28
2 files changed, 29 insertions, 14 deletions
diff --git a/models-examples/src/main/resources/policies/vDNS.policy.guard.blacklist.input.tosca.yaml b/models-examples/src/main/resources/policies/vDNS.policy.guard.blacklist.input.tosca.yaml
new file mode 100644
index 000000000..78a2de6b3
--- /dev/null
+++ b/models-examples/src/main/resources/policies/vDNS.policy.guard.blacklist.input.tosca.yaml
@@ -0,0 +1,15 @@
+tosca_definitions_version: tosca_simple_yaml_1_1_0
+topology_template:
+ policies:
+ - guard.blacklist.scaleout:
+ type: onap.policies.controlloop.guard.common.Blacklist
+ type_version: 1.0.0
+ version: 1.0.0
+ metadata:
+ policy-id: guard.blacklist.scaleout
+ properties:
+ actor: SO
+ operation: VF Module Create
+ id: ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
+ blacklist:
+ - the-vfmodule-where-root-is-true \ No newline at end of file
diff --git a/models-examples/src/main/resources/policies/vDNS.policy.guard.minmaxvnfs.input.tosca.yaml b/models-examples/src/main/resources/policies/vDNS.policy.guard.minmaxvnfs.input.tosca.yaml
index dafc524b5..4c3afb745 100644
--- a/models-examples/src/main/resources/policies/vDNS.policy.guard.minmaxvnfs.input.tosca.yaml
+++ b/models-examples/src/main/resources/policies/vDNS.policy.guard.minmaxvnfs.input.tosca.yaml
@@ -1,16 +1,16 @@
tosca_definitions_version: tosca_simple_yaml_1_1_0
topology_template:
- policies:
- -
- guard.minmax.scaleout:
- type: onap.policies.controlloop.guard.common.MinMax
- type_version: 1.0.0
- version: 1.0.0
- metadata:
- policy-id : guard.minmax.scaleout
- properties:
- actor: SO
- operation: VF Module Create
- id: ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
- min: 1
- max: 2 \ No newline at end of file
+ policies:
+ - guard.minmax.scaleout:
+ type: onap.policies.controlloop.guard.common.MinMax
+ type_version: 1.0.0
+ version: 1.0.0
+ metadata:
+ policy-id: guard.minmax.scaleout
+ properties:
+ actor: SO
+ operation: VF Module Create
+ id: ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
+ target: e6130d03-56f1-4b0a-9a1d-e1b2ebc30e0e
+ min: 1
+ max: 2 \ No newline at end of file