From e4cfe3fc84f138fbb2c08ed1695586989734a0b4 Mon Sep 17 00:00:00 2001 From: jhh Date: Tue, 30 Aug 2022 16:14:03 -0500 Subject: Sample 5G SON A1 and O1 policies Issue-ID: POLICY-4108 Signed-off-by: jhh Change-Id: Id8df70ab7405ee6225443f6d98de834582f8de5d --- .../v5gSonA1.policy.operational.input.tosca.json | 36 ++++++++++++++++++++++ .../v5gSonA1.policy.operational.input.tosca.yaml | 28 +++++++++++++++++ .../v5gSonO1.policy.operational.input.tosca.json | 36 ++++++++++++++++++++++ .../v5gSonO1.policy.operational.input.tosca.yaml | 28 +++++++++++++++++ 4 files changed, 128 insertions(+) create mode 100644 models-examples/src/main/resources/policies/v5gSonA1.policy.operational.input.tosca.json create mode 100644 models-examples/src/main/resources/policies/v5gSonA1.policy.operational.input.tosca.yaml create mode 100644 models-examples/src/main/resources/policies/v5gSonO1.policy.operational.input.tosca.json create mode 100644 models-examples/src/main/resources/policies/v5gSonO1.policy.operational.input.tosca.yaml (limited to 'models-examples/src') diff --git a/models-examples/src/main/resources/policies/v5gSonA1.policy.operational.input.tosca.json b/models-examples/src/main/resources/policies/v5gSonA1.policy.operational.input.tosca.json new file mode 100644 index 000000000..c38e209ef --- /dev/null +++ b/models-examples/src/main/resources/policies/v5gSonA1.policy.operational.input.tosca.json @@ -0,0 +1,36 @@ +{ + "type": "onap.policies.controlloop.operational.common.Drools", + "type_version": "1.0.0", + "name": "op.5g.son.a1", + "version": "1.0.0", + "metadata": { + "policy-id": "op.5g.son.a1" + }, + "properties": { + "id": "ControlLoop-SONA1-7d4baf04-8875-4d1f-946d-06b874048b61", + "timeout": 1200, + "abatement": false, + "trigger": "modify-a1-config", + "operations": [ + { + "id": "modify-a1-config", + "description": "Control Loop Modify A1 Policy", + "operation": { + "actor": "SDNR", + "operation": "ModifyA1Config", + "target": { + "targetType": "PNF" + } + }, + "timeout": 60, + "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" + } + ] + } +} diff --git a/models-examples/src/main/resources/policies/v5gSonA1.policy.operational.input.tosca.yaml b/models-examples/src/main/resources/policies/v5gSonA1.policy.operational.input.tosca.yaml new file mode 100644 index 000000000..c80bb76ba --- /dev/null +++ b/models-examples/src/main/resources/policies/v5gSonA1.policy.operational.input.tosca.yaml @@ -0,0 +1,28 @@ +type: onap.policies.controlloop.operational.common.Drools +type_version: 1.0.0 +name: op.5g.son.a1 +version: 1.0.0 +metadata: + policy-id: op.5g.son.a1 +properties: + id: ControlLoop-SONA1-7d4baf04-8875-4d1f-946d-06b874048b61 + timeout: 1200 + abatement: false + trigger: modify-a1-config + operations: + - id: modify-a1-config + description: Control Loop Modify A1 Policy + operation: + actor: SDNR + operation: ModifyA1Policy + target: + targetType: PNF + timeout: 60 + 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 + diff --git a/models-examples/src/main/resources/policies/v5gSonO1.policy.operational.input.tosca.json b/models-examples/src/main/resources/policies/v5gSonO1.policy.operational.input.tosca.json new file mode 100644 index 000000000..842073cda --- /dev/null +++ b/models-examples/src/main/resources/policies/v5gSonO1.policy.operational.input.tosca.json @@ -0,0 +1,36 @@ +{ + "type": "onap.policies.controlloop.operational.common.Drools", + "type_version": "1.0.0", + "name": "op.5g.son.o1", + "version": "1.0.0", + "metadata": { + "policy-id": "op.5g.son.o1" + }, + "properties": { + "id": "ControlLoop-SONO1-fb41f388-a5f2-11e8-98d0-529269fb1459", + "timeout": 1200, + "abatement": false, + "trigger": "modify-o1-config", + "operations": [ + { + "id": "modify-o1-config", + "description": "Control Loop Modify O1 Policy", + "operation": { + "actor": "SDNR", + "operation": "ModifyO1Config", + "target": { + "targetType": "PNF" + } + }, + "timeout": 60, + "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" + } + ] + } +} diff --git a/models-examples/src/main/resources/policies/v5gSonO1.policy.operational.input.tosca.yaml b/models-examples/src/main/resources/policies/v5gSonO1.policy.operational.input.tosca.yaml new file mode 100644 index 000000000..dfb842bf1 --- /dev/null +++ b/models-examples/src/main/resources/policies/v5gSonO1.policy.operational.input.tosca.yaml @@ -0,0 +1,28 @@ +type: onap.policies.controlloop.operational.common.Drools +type_version: 1.0.0 +name: op.5g.son.o1 +version: 1.0.0 +metadata: + policy-id: op.5g.son.o1 +properties: + id: ControlLoop-SONO1-fb41f388-a5f2-11e8-98d0-529269fb1459 + timeout: 1200 + abatement: false + trigger: modify-o1-config + operations: + - id: modify-o1-config + description: Control Loop Modify O1 Policy + operation: + actor: SDNR + operation: ModifyO1Config + target: + targetType: PNF + timeout: 60 + 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 + -- cgit 1.2.3-korg