summaryrefslogtreecommitdiffstats
path: root/src/test/resources/tosca/operational-policy-properties.json
blob: a38334b552ab7c0f561ceaac2788f9a908254940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
  "operational_policy": {
    "controlLoop": {
      "timeout": "0",
      "abatement": "True",
      "trigger_policy": "policy1",
      "controlLoopName": "LOOP_ASJOy_v1_0_ResourceInstanceName1_tca"
    },
    "policies": [
      {
        "actor": {
          "actor": "APPC",
          "recipe": "Restart",
          "payload": "requestParameters: '{\"usePreload\":true,\"userParams\":[]}'\r\nconfigurationParameters: '[{\"ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[10].value\",\"oam-ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[15].value\",\"enabled\":\"$.vf-module-topology.vf-module-parameters.param[22].value\"}]'"
        },
        "id": "policy1",
        "retry": "0",
        "timeout": "0",
        "success": "final_success",
        "failure": "policy2",
        "failure_timeout": "final_failure_timeout",
        "failure_retries": "final_failure_retries",
        "failure_exception": "final_failure_exception",
        "failure_guard": "final_failure_guard",
        "target": {
          "type": "VNF",
          "resourceID": "vLoadBalancerMS"
        }
      },
      {
        "actor": {
          "actor": "SO",
          "recipe": "VF Module Create",
          "payload": ""
        },
        "id": "policy2",
        "retry": "0",
        "timeout": "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",
        "target": {
          "type": "VFMODULE",
          "resourceID": "Vloadbalancerms..vpkg..module-1",
          "modelInvariantId": "ca052563-eb92-4b5b-ad41-9111768ce043",
          "modelVersionId": "1e725ccc-b823-4f67-82b9-4f4367070dbc",
          "modelName": "Vloadbalancerms..vpkg..module-1",
          "modelVersion": "1",
          "modelCustomizationId": "1bffdc31-a37d-4dee-b65c-dde623a76e52"
        }
      },
      {
        "actor": {
          "actor": "CDS",
          "recipe": {
            "recipe": "resource-assignment",
            "payload": {
              "artifact_name": "baseconfiguration",
              "artifact_version": "1.0.0",
              "mode": "async",
              "data": {
                "resource-assignment-properties": {
                  "request-id": "request-id",
                  "service-instance-id": "service-instance-id",
                  "vnf-id": "vnf-id",
                  "action-name": "action-name",
                  "scope-type": "scope-type",
                  "hostname": "hostname",
                  "vnf_name": "vnf_name"
                }
              }
            }
          }
        },
        "id": "policy3",
        "retry": "0",
        "timeout": "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",
        "target": {
          "type": "VFMODULE",
          "resourceID": "Vloadbalancerms..vpkg..module-1",
          "modelInvariantId": "ca052563-eb92-4b5b-ad41-9111768ce043",
          "modelVersionId": "1e725ccc-b823-4f67-82b9-4f4367070dbc",
          "modelName": "Vloadbalancerms..vpkg..module-1",
          "modelVersion": "1",
          "modelCustomizationId": "1bffdc31-a37d-4dee-b65c-dde623a76e52"
        }
      },
      {
        "actor": {
          "actor": "CDS",
          "recipe": {
            "recipe": "modify-config",
            "payload": {
              "artifact_name": "baseconfiguration",
              "artifact_version": "1.0.0",
              "mode": "async",
              "data": {
              }
            }
          }
        },
        "id": "policy4",
        "retry": "0",
        "timeout": "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",
        "target": {
          "type": "VFMODULE",
          "resourceID": "Vloadbalancerms..vpkg..module-1",
          "modelInvariantId": "ca052563-eb92-4b5b-ad41-9111768ce043",
          "modelVersionId": "1e725ccc-b823-4f67-82b9-4f4367070dbc",
          "modelName": "Vloadbalancerms..vpkg..module-1",
          "modelVersion": "1",
          "modelCustomizationId": "1bffdc31-a37d-4dee-b65c-dde623a76e52"
        }
      }
    ]
  }
}