Merge "Connection attachment template issue fix"
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_update-network-to-aai.json
1 [
2   {
3     "id": "75e675fb.618e5c",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 135.00390625,
8     "y": 77.00390625,
9     "z": "3dcb52b5.f95fbe",
10     "wires": [
11       [
12         "7fa0e5e0.b33c5c"
13       ]
14     ]
15   },
16   {
17     "id": "7fa0e5e0.b33c5c",
18     "type": "service-logic",
19     "name": "DataChange ${project.version}",
20     "module": "DataChange",
21     "version": "${project.version}",
22     "comments": "",
23     "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='DataChange' version='${project.version}'>",
24     "outputs": 1,
25     "x": 224.00393676757812,
26     "y": 167.89281845092773,
27     "z": "3dcb52b5.f95fbe",
28     "wires": [
29       [
30         "d74cb25a.e2de3"
31       ]
32     ]
33   },
34   {
35     "id": "d74cb25a.e2de3",
36     "type": "method",
37     "name": "method update-network-to-aai",
38     "xml": "<method rpc='update-network-to-aai' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 260.1151580810547,
42     "y": 238.22614288330078,
43     "z": "3dcb52b5.f95fbe",
44     "wires": [
45       [
46         "a101ac8e.c59f1"
47       ]
48     ]
49   },
50   {
51     "id": "a101ac8e.c59f1",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 485.33734130859375,
59     "y": 237.78182983398438,
60     "z": "3dcb52b5.f95fbe",
61     "wires": [
62       [
63         "d5314164.19147",
64         "1d637de0.aa2f02",
65         "b183cf6c.88416"
66       ]
67     ]
68   },
69   {
70     "id": "1d637de0.aa2f02",
71     "type": "update",
72     "name": "save network-resource",
73     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource'  \n     key='network-resource.network-id = $tmp.network-id' >\n<parameter name='network-id' value='`$tmp.network-id`' />\n<parameter name='client-id' value='`$network.client-id`' />\n<parameter name='te-topo-id' value='`$network.te-topology-id`' />\n<parameter name='provider-id' value='`$network.provider-id`' />\n\n\n",
74     "comments": "",
75     "outputs": 1,
76     "x": 715.337158203125,
77     "y": 143.00392150878906,
78     "z": "3dcb52b5.f95fbe",
79     "wires": [
80       []
81     ]
82   },
83   {
84     "id": "8399fa0a.e7e2c8",
85     "type": "update",
86     "name": "save pnf",
87     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n      key='network-resource.network-id = $tmp.network-id\n      AND pnf.pnf-name = $node.node-id' >\n<parameter name='pnf-name' value='`$node.node-id`' />\n<parameter name='pnf-id' value='`$node.node-id`' />\n<parameter name='operational-status' value='`$node.te.oper-status`' />\n<parameter name='admin-status' value='`$node.te.te-node-attributes.admin-status`' />\n<parameter name='in-maint' value='true' />\n\n\n\n\n\n",
88     "comments": "",
89     "outputs": 1,
90     "x": 905.1150512695312,
91     "y": 195.11500549316406,
92     "z": "3dcb52b5.f95fbe",
93     "wires": [
94       []
95     ]
96   },
97   {
98     "id": "b183cf6c.88416",
99     "type": "for",
100     "name": "for each node",
101     "xml": "<for index='pidx' start='0' end='`$network.node_length`' >\n",
102     "comments": "",
103     "outputs": 1,
104     "x": 691.8927612304688,
105     "y": 187.33721923828125,
106     "z": "3dcb52b5.f95fbe",
107     "wires": [
108       [
109         "8399fa0a.e7e2c8",
110         "a42bad10.3ef0b",
111         "21ad025b.8c4fee",
112         "9a109c49.5a457",
113         "4710678b.b2f898"
114       ]
115     ]
116   },
117   {
118     "id": "a42bad10.3ef0b",
119     "type": "set",
120     "name": "set network",
121     "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n",
122     "comments": "",
123     "x": 912.114990234375,
124     "y": 161.2261199951172,
125     "z": "3dcb52b5.f95fbe",
126     "wires": []
127   },
128   {
129     "id": "21ad025b.8c4fee",
130     "type": "save",
131     "name": "save pnf relationship to network-resource in AAI",
132     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n      key='pnf.pnf-name = $node.node-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"network-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"network-resource.network-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.network-id`\" />",
133     "comments": "",
134     "outputs": 1,
135     "x": 1023.7819213867188,
136     "y": 228.44839477539062,
137     "z": "3dcb52b5.f95fbe",
138     "wires": [
139       []
140     ]
141   },
142   {
143     "id": "4710678b.b2f898",
144     "type": "for",
145     "name": "for each termination point",
146     "xml": "<for index='tidx' start='0' end='`$node.termination-point_length`' >\n",
147     "comments": "",
148     "outputs": 1,
149     "x": 956.4483642578125,
150     "y": 344.114990234375,
151     "z": "3dcb52b5.f95fbe",
152     "wires": [
153       [
154         "7bcb0931.538d48",
155         "56653317.e67e9c",
156         "5da0d24d.9b201c",
157         "2065ea1d.9bce86"
158       ]
159     ]
160   },
161   {
162     "id": "7bcb0931.538d48",
163     "type": "set",
164     "name": "set termination point",
165     "xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tidx].`' />\n",
166     "comments": "",
167     "x": 1223.115234375,
168     "y": 305.0039520263672,
169     "z": "3dcb52b5.f95fbe",
170     "wires": []
171   },
172   {
173     "id": "2065ea1d.9bce86",
174     "type": "update",
175     "name": "save p-interface",
176     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n      key='network-resource.network-id = $tmp.network-id\n      AND pnf.pnf-name = $node.node-id\n      AND p-interface.interface-name = $unique-ltpId' >\n<parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\n<parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='operational-status' value='`$tp.te.oper-status`' />\n<parameter name='in-maint' value=\"true\" />\n\n",
177     "comments": "",
178     "outputs": 1,
179     "x": 1206.8189697265625,
180     "y": 373.55950927734375,
181     "z": "3dcb52b5.f95fbe",
182     "wires": [
183       []
184     ]
185   },
186   {
187     "id": "56653317.e67e9c",
188     "type": "save",
189     "name": "save pnf relationship to p-interface in AAI",
190     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n      key='pnf.pnf-name = $node.node-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $node.node-id '/p-interfaces/p-interface/' + $unique-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ltpId`\" />",
191     "comments": "",
192     "outputs": 1,
193     "x": 1284.707763671875,
194     "y": 411.3372497558594,
195     "z": "3dcb52b5.f95fbe",
196     "wires": [
197       []
198     ]
199   },
200   {
201     "id": "5da0d24d.9b201c",
202     "type": "set",
203     "name": "set unique-ltpId",
204     "xml": "<set>\n<parameter name='unique-ltpId' value=\"`'nodeId-' + $node.node-id + '-ltpId-' + $tp.te-tp-id`\" />\n",
205     "comments": "",
206     "x": 1207.004150390625,
207     "y": 339.1150207519531,
208     "z": "3dcb52b5.f95fbe",
209     "wires": []
210   },
211   {
212     "id": "d5314164.19147",
213     "type": "execute",
214     "name": "execute",
215     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$network.network-id`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.network-id\"/>\n    <parameter name=\"target\" value=\"/\"/>\n    <parameter name=\"replacement\" value=\"-\"/>\n    ",
216     "comments": "",
217     "outputs": 1,
218     "x": 664.9974365234375,
219     "y": 103.99739837646484,
220     "z": "3dcb52b5.f95fbe",
221     "wires": [
222       []
223     ]
224   },
225   {
226     "id": "9a109c49.5a457",
227     "type": "save",
228     "name": "save pnf relation with esr-thirdparty-sdnc",
229     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='esr-thirdparty-sdnc:relationship-list' \n      key='esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"pnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $node.node-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$node.node-id`\" />\n",
230     "comments": "",
231     "outputs": 1,
232     "x": 1005.00390625,
233     "y": 264.9974060058594,
234     "z": "3dcb52b5.f95fbe",
235     "wires": [
236       []
237     ]
238   }
239 ]