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
|
[
{
"id": "56afbbe7.ef1b04",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
"x": 192.8720245361328,
"y": 121.44345092773438,
"z": "3ce368a2.78f878",
"wires": [
[
"4cb200e9.a9147"
]
]
},
{
"id": "1e0bb80b.2c8618",
"type": "method",
"name": "method self-serve-vnf-mdsal-put",
"xml": "<method rpc='self-serve-vnf-mdsal-put' mode='sync'>\n",
"comments": "",
"outputs": 1,
"x": 340.7410888671875,
"y": 213.29266166687012,
"z": "3ce368a2.78f878",
"wires": [
[
"54b0d2ab.4cd77c"
]
]
},
{
"id": "4cb200e9.a9147",
"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": 455.11022186279297,
"y": 121.63394355773926,
"z": "3ce368a2.78f878",
"wires": [
[
"1e0bb80b.2c8618"
]
]
},
{
"id": "54b0d2ab.4cd77c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
"x": 593.7769775390625,
"y": 394.4038600921631,
"z": "3ce368a2.78f878",
"wires": [
[
"fc67bb15.636f18",
"ed1a2851.984f28",
"5dff0dd.b9c11f4",
"f0753190.147fa"
]
]
},
{
"id": "ed1a2851.984f28",
"type": "execute",
"name": "generate ss-vnf url replace service-instance-id",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.ss-vnf-assignments`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ss-vnf-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id`\"/>\n",
"comments": "",
"outputs": 1,
"x": 952.8243865966797,
"y": 353.6346740722656,
"z": "3ce368a2.78f878",
"wires": [
[]
]
},
{
"id": "f0753190.147fa",
"type": "execute",
"name": "execute RestApiCallNode - PUT vnf",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ss.vnf.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ss-vnf-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ss-vnf\" />\n\n",
"comments": "",
"outputs": 1,
"x": 908.0029144287109,
"y": 542.2061910629272,
"z": "3ce368a2.78f878",
"wires": [
[
"f8cd63cc.a44ab",
"843810fe.b2d4e"
]
]
},
{
"id": "f8cd63cc.a44ab",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
"x": 1185.453758239746,
"y": 569.0614757537842,
"z": "3ce368a2.78f878",
"wires": [
[
"b45b5260.c22ef"
]
]
},
{
"id": "843810fe.b2d4e",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
"x": 1177.8823928833008,
"y": 515.5614957809448,
"z": "3ce368a2.78f878",
"wires": [
[
"b45b5260.c22ef"
]
]
},
{
"id": "fc67bb15.636f18",
"type": "set",
"name": "set vf data for restapi-call-node",
"xml": "<set>\n<parameter name='vf.vnf-id'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-id`' />\n<parameter name='vf.vnf-data.sdnc-request-header.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.`' />\n<parameter name='vf.vnf-data.request-information.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.`' />\n<parameter name='vf.vnf-data.service-information.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.`' />\n<parameter name='vf.vnf-data.vnf-information.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.`' />\n<parameter name='vf.vnf-data.vnf-topology.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.`' />\n<parameter name='vf.vnf-data.vnf-level-oper-status.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.`' />\n<parameter name='vf.vnf-data.vnf-request-input.vnf-input-parameters.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-input-parameters.`' />\n<parameter name='vf.vnf-data.vnf-request-input.request-version'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.request-version`' />\n<parameter name='vf.vnf-data.vnf-request-input.vnf-name'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-name`' />\n<parameter name='vf.vnf-data.vnf-request-input.tenant'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.tenant`' />\n<parameter name='vf.vnf-data.vnf-request-input.aic-cloud-region'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.aic-cloud-region`' />\n<parameter name='vf.vnf-data.vnf-request-input.aic-clli'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.aic-clli`' />",
"comments": "",
"x": 902.4194869995117,
"y": 284.01490211486816,
"z": "3ce368a2.78f878",
"wires": []
},
{
"id": "5dff0dd.b9c11f4",
"type": "execute",
"name": "generate ss-vnf url - replace vnf-id",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ss-vnf-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ss-vnf-url\"/>\n <parameter name=\"target\" value=\"{vnf-id}\"/>\n <parameter name=\"replacement\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-id`\"/>\n",
"comments": "",
"outputs": 1,
"x": 911.3957901000977,
"y": 438.7291421890259,
"z": "3ce368a2.78f878",
"wires": [
[]
]
},
{
"id": "b45b5260.c22ef",
"type": "set",
"name": "set error-message",
"xml": "<set>\n<parameter name=\"error-message\" value=\"`'Failed to persist self-serve vnf assignments during assign in MD-SAL. ' + $error-message`\" />",
"comments": "",
"x": 1397.8007164001465,
"y": 514.4315023422241,
"z": "3ce368a2.78f878",
"wires": []
}
]
|