aboutsummaryrefslogtreecommitdiffstats
path: root/models-examples/src/main/resources/policies/vCPE.policy.operational.output.tosca.json
blob: c57103eb5c9a6df685930d66c5f53be47ffce760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.high
{
    "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
    "topology_template": {
        "policies": [
            {
                "operational.restart": {
                    "type": "onap.policies.controlloop.Operational",
                    "version": "1.0.0",
                    "metadata": {
                        "policy-id": "operational.restart",
                        "policy-version": 1
                    },
                    "properties": {
                        "controlLoop": {
                            "version": "2.0.0",
                            "controlLoopName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
                            "trigger_policy": "unique-policy-id-1-restart",
                            "timeout": 3600,
                            "abatement": true
                        },
                        "policies": [
                            {
                                "id": "unique-policy-id-1-restart",
                                "name": "Restart the VM",
                                "description": null,
                                "actor": "APPC",
                                "recipe": "Restart",
                                "target": {
                                    "targetType": "VM"
                                },
                                "retry": 3,
                                "timeout": 1200,
                                "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"
                            }
                        ]
                    }
                }
            }
        ]
    }
}