aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vf-module-generate-name-changeassign.json
blob: 42ff2a9334405b6a211d0a231c044aa41a116e20 (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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236

@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 */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .s { color: #e6db74 } /* Literal.String */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .nl { color: #f8f8f2 } /* Name.Label */
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight .nx { color: #a6e22e } /* Name.Other */
.highlight .py { color: #f8f8f2 } /* Name.Property */
.highlight .nt { color: #f92672 } /* Name.Tag */
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
.highlight .ow { color: #f92672 } /* Operator.Word */
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.highlight .mb { color: #ae81ff } /* Literal.Number.Bin */
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.highlight .sa { color: #e6db74 } /* Literal.String.Affix */
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
.highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #a6e22e } /* Name.Function.Magic */
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
}
@media (prefers-color-scheme: light) {
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .g
[
    {
        "id": "ca0478b8.252088",
        "type": "dgstart",
        "name": "DGSTART",
        "outputs": 1,
        "x": 142.85714721679688,
        "y": 72.85714721679688,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "7c71ac58.1f4244"
            ]
        ]
    },
    {
        "id": "7c71ac58.1f4244",
        "type": "service-logic",
        "name": "GENERIC-RESOURCE-API ${project.version}",
        "module": "GENERIC-RESOURCE-API",
        "version": "${project.version}",
        "comments": "",
        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
        "outputs": 1,
        "x": 418.8571472167969,
        "y": 73.85714721679688,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "a2678c16.8e1eb"
            ]
        ]
    },
    {
        "id": "a2678c16.8e1eb",
        "type": "method",
        "name": "self-serve-vf-module-generate-name-changeassign",
        "xml": "<method rpc='self-serve-vf-module-generate-name-changeassign' mode='sync'>\n",
        "comments": "",
        "outputs": 1,
        "x": 323.4285583496094,
        "y": 125.71429061889648,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "afbcafe4.6d848"
            ]
        ]
    },
    {
        "id": "570da090.941e5",
        "type": "execute",
        "name": "execute NameGenerationNode-changeassign",
        "xml": "<execute plugin='org.openecomp.sdnc.prov.namegeneration.node.AssignNameNode' method='process'>\n   <parameter name='payload' value='`$tmp.vf-module.changeassign.naming-data-payload`' />\n   <parameter name=\"prifix\" value=\"vf-module.changeassign.nameGenResponse\" />\n",
        "comments": "",
        "outputs": 1,
        "x": 671.4285888671875,
        "y": 659.2857213020325,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "551cdc4a.e86e94",
                "ba2f7c73.31a28"
            ]
        ]
    },
    {
        "id": "551cdc4a.e86e94",
        "type": "failure",
        "name": "failure",
        "xml": "<outcome value='failure'>\n",
        "comments": "",
        "outputs": 1,
        "x": 959.4285888671875,
        "y": 613.2857213020325,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "7dfc16bc.be2d18"
            ]
        ]
    },
    {
        "id": "ba2f7c73.31a28",
        "type": "failure",
        "name": "not-found",
        "xml": "<outcome value='not-found'>\n",
        "comments": "",
        "outputs": 1,
        "x": 965.4285888671875,
        "y": 713.2857213020325,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "7dfc16bc.be2d18"
            ]
        ]
    },
    {
        "id": "7dfc16bc.be2d18",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic='true'>",
        "atomic": "true",
        "comments": "",
        "outputs": 1,
        "x": 1165.4285888671875,
        "y": 655.2857213020325,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "56db66db.f751e8",
                "2a9c646.dc70e9c"
            ]
        ]
    },
    {
        "id": "56db66db.f751e8",
        "type": "set",
        "name": "set status as FAILED",
        "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.service-data.param.index].resource-resolution-data.status`' value='FAILED' />",
        "comments": "",
        "x": 1374.4285888671875,
        "y": 604.2857213020325,
        "z": "7da44d34.41b8e4",
        "wires": []
    },
    {
        "id": "2a9c646.dc70e9c",
        "type": "returnFailure",
        "name": "return failure",
        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Error from NameGenerationNode ChangeAssign vf-module ' + $error-message`\" />\n",
        "comments": "",
        "x": 1360.4285888671875,
        "y": 713.2857213020325,
        "z": "7da44d34.41b8e4",
        "wires": []
    },
    {
        "id": "afbcafe4.6d848",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic='true'>",
        "atomic": "true",
        "comments": "",
        "outputs": 1,
        "x": 224.71428680419922,
        "y": 562.8571300506592,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "b979f5f1.ad8358",
                "ab950644.7d58a8",
                "975f7bc0.f4f5d8",
                "570da090.941e5",
                "f212bbb9.76a8b8",
                "1a352eb2.e4d9b1",
                "14d9ecdc.aff013"
            ]
        ]
    },
    {
        "id": "b979f5f1.ad8358",
        "type": "for",
        "name": "for service-data...vf-module...resource-key",
        "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.service-data.param.index].resource-resolution-data.resource-key_length`' >",
        "comments": "",
        "outputs": 1,
        "x": 667.0000076293945,
        "y": 375.00000858306885,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "56f43f1.46959c"
            ]
        ]
    },
    {
        "id": "56f43f1.46959c",
        "type": "switchNode",
        "name": "switch resource-key[].name",
        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.service-data.param.index].resource-resolution-data.resource-key[$i].name`'>\n\n",
        "comments": "",
        "outputs": 1,
        "x": 1004.8571624755859,
        "y": 374.9999942779541,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "db5132dc.231e6"
            ]
        ]
    },
    {
        "id": "db5132dc.231e6",
        "type": "outcome",
        "name": "external-key",
        "xml": "<outcome value='external-key'>\n",
        "comments": "",
        "outputs": 1,
        "x": 1245.857162475586,
        "y": 374.9999942779541,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "eace8af.3827778"
            ]
        ]
    },
    {
        "id": "eace8af.3827778",
        "type": "set",
        "name": "set tmp.external-key.value",
        "xml": "<set>\n<parameter name='tmp.external-key.value' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key[$i].value`' />\n",
        "comments": "",
        "x": 1475.857162475586,
        "y": 374.9999942779541,
        "z": "7da44d34.41b8e4",
        "wires": []
    },
    {
        "id": "975f7bc0.f4f5d8",
        "type": "set",
        "name": "set tmp.vf-module.changeassign.naming-data-payload",
        "xml": "<set>\n<parameter name=\"tmp.vf-module.changeassign.naming-data-payload\" value=\"`'{&quot;elements&quot;:[{' + '&quot;resource-name&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].name + '&quot;,&quot;resource-value&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].value + '&quot;,&quot;external-key&quot;:&quot;' + $tmp.external-key.value + '&quot;}]}'`\"/>",
        "comments": "",
        "x": 710.2856903076172,
        "y": 559.0000162124634,
        "z": "7da44d34.41b8e4",
        "wires": []
    },
    {
        "id": "ab950644.7d58a8",
        "type": "switchNode",
        "name": "switch tmp.external-key.value",
        "xml": "<switch test='`$tmp.external-key.value`'>\n\n",
        "comments": "",
        "outputs": 1,
        "x": 619.0000076293945,
        "y": 502.00000858306885,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "f0dcf6b8.eaab28"
            ]
        ]
    },
    {
        "id": "f0dcf6b8.eaab28",
        "type": "outcome",
        "name": "null",
        "xml": "<outcome value=''>",
        "comments": "",
        "outputs": 1,
        "x": 846.0000076293945,
        "y": 502.00000858306885,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "a8701ab3.e308f8"
            ]
        ]
    },
    {
        "id": "a8701ab3.e308f8",
        "type": "returnFailure",
        "name": "return failure",
        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"self-service-vf-module-generate-name-changeassign error : external-key is null for vf-module\" />\n",
        "comments": "",
        "x": 1007.0000076293945,
        "y": 502.00000858306885,
        "z": "7da44d34.41b8e4",
        "wires": []
    },
    {
        "id": "fe3c1b72.b16ba8",
        "type": "failure",
        "name": "failure",
        "xml": "<outcome value='failure'>\n",
        "comments": "",
        "outputs": 1,
        "x": 795.9523773193359,
        "y": 796.0475826263428,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "a8ee0931.de9688"
            ]
        ]
    },
    {
        "id": "a8ee0931.de9688",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic='true'>",
        "atomic": "true",
        "comments": "",
        "outputs": 1,
        "x": 977.8571929931641,
        "y": 834.5714569091797,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "73245796.36c418",
                "b4c5b7d.9734d48"
            ]
        ]
    },
    {
        "id": "73245796.36c418",
        "type": "set",
        "name": "set status as FAILED",
        "xml": "<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.service-data.param.index].resource-resolution-data.status`' value='FAILED' />",
        "comments": "",
        "x": 1192.857192993164,
        "y": 794.5714569091797,
        "z": "7da44d34.41b8e4",
        "wires": []
    },
    {
        "id": "b4c5b7d.9734d48",
        "type": "returnFailure",
        "name": "return failure",
        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Failed to update vf-module.vf-module-name to ' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].value + ' in AnAI'`\" />\n",
        "comments": "",
        "x": 1180.857192993164,
        "y": 882.5714569091797,
        "z": "7da44d34.41b8e4",
        "wires": []
    },
    {
        "id": "1a352eb2.e4d9b1",
        "type": "set",
        "name": "set param[].value and status",
        "xml": "<set>\n\t <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.service-data.param.index].value`' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].value`'/>\n\t <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.service-data.param.index].resource-resolution-data.status`' value='SUCCESS' />",
        "comments": "",
        "x": 629.5714416503906,
        "y": 1023.1428661346436,
        "z": "7da44d34.41b8e4",
        "wires": []
    },
    {
        "id": "f212bbb9.76a8b8",
        "type": "save",
        "name": "update vf-module",
        "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vf-module\" key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id AND vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id \" > \n<parameter name=\"vf-module-name\" value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].value`' />\n",
        "comments": "",
        "outputs": 1,
        "x": 598.2698364257812,
        "y": 835.0161256790161,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "fe3c1b72.b16ba8",
                "658b3ee2.d2b67"
            ]
        ]
    },
    {
        "id": "658b3ee2.d2b67",
        "type": "not-found",
        "name": "not-found",
        "xml": "<outcome value='not-found'>\n",
        "comments": "",
        "outputs": 1,
        "x": 793.5079803466797,
        "y": 882.1586666107178,
        "z": "7da44d34.41b8e4",
        "wires": [
            [
                "a8ee0931.de9688"
            ]
        ]
    },
    {
        "id": "14d9ecdc.aff013",
        "type": "set",
        "name": "set tmp.external-key.value = NULL",
        "xml": "<set>\n<parameter name='tmp.external-key.value' value='' />\n",
        "comments": "",
        "x": 638.5714263916016,
        "y": 321.42858600616455,
        "z": "7da44d34.41b8e4",
        "wires": []
    }
]