aboutsummaryrefslogtreecommitdiffstats
path: root/robot/assets/templates/policy
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2020-05-06 15:10:06 -0500
committerMarco Platania <platania@research.att.com>2020-05-07 12:42:14 +0000
commitdf0ca461be8369a1c3ab9ac66ecb8fb834532fe5 (patch)
tree6d81fba60f06e9ecf92a92290df94675478a7d49 /robot/assets/templates/policy
parentad59044d59a02dc26f7a0a58c24a3316c79d16ff (diff)
remove url_encoded operational policy
add Payload back into template fix tabs and remove commented out lines Issue-ID: INT-1350 Change-Id: Ieeaa6c9f6b2e18c4ee5cf433504654897f6157bb Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'robot/assets/templates/policy')
-rw-r--r--robot/assets/templates/policy/vFirewall_policy_operational_content_input.jinja51
-rw-r--r--robot/assets/templates/policy/vFirewall_push.jinja2
2 files changed, 52 insertions, 1 deletions
diff --git a/robot/assets/templates/policy/vFirewall_policy_operational_content_input.jinja b/robot/assets/templates/policy/vFirewall_policy_operational_content_input.jinja
new file mode 100644
index 00000000..be0d3ce7
--- /dev/null
+++ b/robot/assets/templates/policy/vFirewall_policy_operational_content_input.jinja
@@ -0,0 +1,51 @@
+{
+ "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
+ "topology_template": {
+ "policies": [
+ {
+ "operational.modifyconfig": {
+ "type": "onap.policies.controlloop.operational.common.Drools",
+ "type_version": "1.0.0",
+ "version": "1.0.0",
+ "metadata": {
+ "policy-id": "operational.modifyconfig"
+ },
+ "properties": {
+ "id": "ControlLoop-vFirewall-{{RESOURCE_ID}}",
+ "timeout": 1200,
+ "abatement": false,
+ "trigger": "unique-policy-id-1-modifyConfig",
+ "operations": [
+ {
+ "id": "unique-policy-id-1-modifyConfig",
+ "description": "Modify the packet generator",
+ "operation": {
+ "actor": "APPC",
+ "operation": "ModifyConfig",
+ "target": {
+ "targetType": "VNF",
+ "entityIds": {
+ "resourceID": "{{RESOURCE_ID}}"
+ }
+ },
+ "payload": {
+ "streams": "{\"active-streams\": 5 }"
+ }
+ },
+ "timeout": 300,
+ "retries": 0,
+ "success": "final_success",
+ "failure": "final_failure",
+ "failure_timeout": "final_failure_timeout",
+ "failure_retries": "final_failure_retries",
+ "failure_exception": "final_failure_exception",
+ "failure_guard": "final_failure_guard"
+ }
+ ],
+ "controllerName": "frankfurt"
+ }
+ }
+ }
+ ]
+ }
+}
diff --git a/robot/assets/templates/policy/vFirewall_push.jinja b/robot/assets/templates/policy/vFirewall_push.jinja
index 92f02fd6..37795a87 100644
--- a/robot/assets/templates/policy/vFirewall_push.jinja
+++ b/robot/assets/templates/policy/vFirewall_push.jinja
@@ -6,7 +6,7 @@
},
{
"policy-id": "operational.modifyconfig",
- "policy-version": "{{OP_POLICY_VERSION}}.0.0"
+ "policy-version": "{{OP_POLICY_VERSION}}"
}
]
}