From dbb3ba15b358043f9e45d8dd211ce1bd970fb08e Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Wed, 25 Sep 2019 11:21:42 +0200 Subject: Automate vCPE closed loop policy pushing Added a library routine to set up CL policy in an idempotent fashion. Description of CL pushing related manual step was removed from documentation. Change-Id: I1fad5d71481252ce803dd58c6ccbbcfa0a4d246f Signed-off-by: Bartek Grzybowski Issue-ID: INT-1267 --- test/vcpe/preload_templates/operational.vcpe.json | 4 ++++ test/vcpe/preload_templates/operational.vcpe.json.txt | 4 ---- test/vcpe/preload_templates/operational.vcpe.pap.json.txt | 8 -------- 3 files changed, 4 insertions(+), 12 deletions(-) create mode 100644 test/vcpe/preload_templates/operational.vcpe.json delete mode 100644 test/vcpe/preload_templates/operational.vcpe.json.txt delete mode 100644 test/vcpe/preload_templates/operational.vcpe.pap.json.txt (limited to 'test/vcpe/preload_templates') diff --git a/test/vcpe/preload_templates/operational.vcpe.json b/test/vcpe/preload_templates/operational.vcpe.json new file mode 100644 index 000000000..f5e9ead81 --- /dev/null +++ b/test/vcpe/preload_templates/operational.vcpe.json @@ -0,0 +1,4 @@ +{ + "policy-id": "operational.vcpe", + "content": "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e%0D%0A++trigger_policy%3A+unique-policy-id-1-restart%0D%0A++timeout%3A+3600%0D%0A++abatement%3A+true%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-restart%0D%0A++++name%3A+Restart+the+VM%0D%0A++++description%3A%0D%0A++++actor%3A+APPC%0D%0A++++recipe%3A+Restart%0D%0A++++target%3A%0D%0A++++++type%3A+VM%0D%0A++++retry%3A+3%0D%0A++++timeout%3A+1200%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard" +} diff --git a/test/vcpe/preload_templates/operational.vcpe.json.txt b/test/vcpe/preload_templates/operational.vcpe.json.txt deleted file mode 100644 index f5e9ead81..000000000 --- a/test/vcpe/preload_templates/operational.vcpe.json.txt +++ /dev/null @@ -1,4 +0,0 @@ -{ - "policy-id": "operational.vcpe", - "content": "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e%0D%0A++trigger_policy%3A+unique-policy-id-1-restart%0D%0A++timeout%3A+3600%0D%0A++abatement%3A+true%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-restart%0D%0A++++name%3A+Restart+the+VM%0D%0A++++description%3A%0D%0A++++actor%3A+APPC%0D%0A++++recipe%3A+Restart%0D%0A++++target%3A%0D%0A++++++type%3A+VM%0D%0A++++retry%3A+3%0D%0A++++timeout%3A+1200%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard" -} diff --git a/test/vcpe/preload_templates/operational.vcpe.pap.json.txt b/test/vcpe/preload_templates/operational.vcpe.pap.json.txt deleted file mode 100644 index 22c50e7dd..000000000 --- a/test/vcpe/preload_templates/operational.vcpe.pap.json.txt +++ /dev/null @@ -1,8 +0,0 @@ -{ - "policies": [ - { - "policy-id": "operational.vcpe", - "policy-version": 1 - } - ] -} -- cgit 1.2.3-korg