From df0ca461be8369a1c3ab9ac66ecb8fb834532fe5 Mon Sep 17 00:00:00 2001 From: Brian Freeman Date: Wed, 6 May 2020 15:10:06 -0500 Subject: 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 --- ...Firewall_policy_operational_content_input.jinja | 51 ++++++++++++++++++++++ robot/assets/templates/policy/vFirewall_push.jinja | 2 +- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 robot/assets/templates/policy/vFirewall_policy_operational_content_input.jinja (limited to 'robot/assets') 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}}" } ] } -- cgit 1.2.3-korg