summaryrefslogtreecommitdiffstats
path: root/robot/assets
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2020-04-08 09:13:41 -0500
committermrichomme <morgan.richomme@orange.com>2020-04-08 18:56:12 +0200
commit419876de3e915e02a86ca15df2c53cf3a0e412c5 (patch)
treeb919edb6a8a0a50f8262d12288d58583b9477d63 /robot/assets
parent52a02b2a4d2d9a6055a9ad0f0768f057f9259fb2 (diff)
vFW Operational Policy tosca change
Issue-ID: INT-1350 Change-Id: I3491b45f80038adbad1f5e25013dd22382be8a24 Signed-off-by: Brian Freeman <bf1936@att.com> Signed-off-by: mrichomme <morgan.richomme@orange.com>
Diffstat (limited to 'robot/assets')
-rw-r--r--robot/assets/policy/vFirewall_policy_operational_content.yaml35
-rw-r--r--robot/assets/templates/policy/vFirewall_policy_operational_content.yaml25
2 files changed, 35 insertions, 25 deletions
diff --git a/robot/assets/policy/vFirewall_policy_operational_content.yaml b/robot/assets/policy/vFirewall_policy_operational_content.yaml
new file mode 100644
index 00000000..daafd798
--- /dev/null
+++ b/robot/assets/policy/vFirewall_policy_operational_content.yaml
@@ -0,0 +1,35 @@
+---
+topology_template:
+ policies:
+ -
+ operational.modifyconfig:
+ metadata:
+ policy-id: operational.modifyconfig
+ properties:
+ abatement: false
+ id: ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
+ operations:
+ -
+ controllerName: frankfurt
+ description: "Modify the packet generator"
+ id: unique-policy-id-1-modifyConfig
+ operation:
+ actor: APPC
+ failure: final_failure
+ failure_exception: final_failure_exception
+ failure_guard: final_failure_guard
+ failure_retries: final_failure_retries
+ failure_timeout: final_failure_timeout
+ operation: ModifyConfig
+ retries: 0
+ success: final_success
+ target:
+ entityIds:
+ resourceID: __RESOURCE_ID__
+ targetType: VNF
+ timeout: 300
+ timeout: 1200
+ trigger: unique-policy-id-1-modifyConfig
+ type: onap.policies.controlloop.operational.common.Drools
+ type_version: "1.0.0"
+tosca_definitions_version: tosca_simple_yaml_1_1_0
diff --git a/robot/assets/templates/policy/vFirewall_policy_operational_content.yaml b/robot/assets/templates/policy/vFirewall_policy_operational_content.yaml
deleted file mode 100644
index 121c8b6e..00000000
--- a/robot/assets/templates/policy/vFirewall_policy_operational_content.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-controlLoop:
- version: 2.0.0
- controlLoopName: ControlLoop-vFirewall-__RESOURCE_ID__
- trigger_policy: unique-policy-id-1-modifyConfig
- timeout: 1200
- abatement: false
-policies:
- - id: unique-policy-id-1-modifyConfig
- name: modify_packet_gen_config
- description:
- actor: APPC
- recipe: ModifyConfig
- target:
- resourceID: __RESOURCE_ID__
- type: VNF
- payload:
- streams: '{"active-streams":5}'
- retry: 0
- timeout: 300
- 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