Notification Sub-DG with Restconf discovery node
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_sotn-notification-handler.json
1 [\r
2     {\r
3         "id": "d2908135.0d5d4",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 97,\r
8         "y": 79,\r
9         "z": "a630608e.55155",\r
10         "wires": [\r
11             [\r
12                 "5471a4fa.5564ec"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "5471a4fa.5564ec",\r
18         "type": "service-logic",\r
19         "name": "DataChange ${project.version}",\r
20         "module": "DataChange",\r
21         "version": "${project.version}",\r
22         "comments": "",\r
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}'>",\r
24         "outputs": 1,\r
25         "x": 297.5,\r
26         "y": 79,\r
27         "z": "a630608e.55155",\r
28         "wires": [\r
29             [\r
30                 "41ad4a7a.dfb5f4"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "41ad4a7a.dfb5f4",\r
36         "type": "method",\r
37         "name": "method sotn-notification-handler",\r
38         "xml": "<method rpc='sotn-notification-handler' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 268.5,\r
42         "y": 160,\r
43         "z": "a630608e.55155",\r
44         "wires": [\r
45             [\r
46                 "58822b09.726d74"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "3b461d1c.951192",\r
52         "type": "execute",\r
53         "name": "execute parseIdFromTarget",\r
54         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$notification.push-change-update.datastore-changes.yang-patch.edit[0].target`'/>\n<parameter name=\"regex\" value=\"/\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"yang-nodes\"/>",\r
55         "comments": "",\r
56         "outputs": 1,\r
57         "x": 254,\r
58         "y": 220,\r
59         "z": "a630608e.55155",\r
60         "wires": [\r
61             []\r
62         ]\r
63     },\r
64     {\r
65         "id": "a4b6ea60.fbfc48",\r
66         "type": "execute",\r
67         "name": "execute last node",\r
68         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$yang-nodes[$yang-nodes_length -1]`'/>\n<parameter name=\"regex\" value=\"=\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"last-node\"/>",\r
69         "comments": "",\r
70         "outputs": 1,\r
71         "x": 223.5,\r
72         "y": 280,\r
73         "z": "a630608e.55155",\r
74         "wires": [\r
75             [\r
76                 "4fda0bd8.3d5334",\r
77                 "a280007a.e935d"\r
78             ]\r
79         ]\r
80     },\r
81     {\r
82         "id": "4e95c5c1.30f36c",\r
83         "type": "execute",\r
84         "name": "execute parse topo node",\r
85         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$yang-nodes[$yang-nodes_length -2]`'/>\n<parameter name=\"regex\" value=\"=\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"node-prefix\"/>",\r
86         "comments": "",\r
87         "outputs": 1,\r
88         "x": 1185.5,\r
89         "y": 280,\r
90         "z": "a630608e.55155",\r
91         "wires": [\r
92             []\r
93         ]\r
94     },\r
95     {\r
96         "id": "4b491788.1b21b8",\r
97         "type": "set",\r
98         "name": "set unique-ltpId",\r
99         "xml": "<set>\n<parameter name='unique-ltpId' value=\"`'nodeId-' + $node-prefix[$node-prefix_length -1] + '-ltpId-' + $last-node[$last-node_length -1]`\" />\n",\r
100         "comments": "",\r
101         "x": 1156.5,\r
102         "y": 320,\r
103         "z": "a630608e.55155",\r
104         "wires": []\r
105     },\r
106     {\r
107         "id": "f935a561.72ecd8",\r
108         "type": "update",\r
109         "name": "update p-interface",\r
110         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n      key='pnf.pnf-name = $node.node-id\n      AND p-interface.interface-name = $unique-ltpId' >      \n<parameter name='interface-name' value='`$unique-ltpId`' />\n<parameter name='operational-status' value='`$notification.push-change-update.datastore-changes.yang-patch.edit[0].value.termination-point[0].te.oper-status`' />",\r
111         "comments": "",\r
112         "outputs": 1,\r
113         "x": 1165,\r
114         "y": 360,\r
115         "z": "a630608e.55155",\r
116         "wires": [\r
117             []\r
118         ]\r
119     },\r
120     {\r
121         "id": "58822b09.726d74",\r
122         "type": "block",\r
123         "name": "block : atomic",\r
124         "xml": "<block atomic=\"true\">",\r
125         "atomic": "true",\r
126         "outputs": 1,\r
127         "x": 491,\r
128         "y": 160,\r
129         "z": "a630608e.55155",\r
130         "wires": [\r
131             [\r
132                 "3b461d1c.951192",\r
133                 "a4b6ea60.fbfc48"\r
134             ]\r
135         ]\r
136     },\r
137     {\r
138         "id": "8ad7a79a.b1d9a8",\r
139         "type": "switchNode",\r
140         "name": "switch last-node type",\r
141         "xml": "<switch test='`$last-node[0]`'>\n",\r
142         "comments": "",\r
143         "outputs": 1,\r
144         "x": 734,\r
145         "y": 260,\r
146         "z": "a630608e.55155",\r
147         "wires": [\r
148             [\r
149                 "4f529877.c2c438"\r
150             ]\r
151         ]\r
152     },\r
153     {\r
154         "id": "4f529877.c2c438",\r
155         "type": "outcome",\r
156         "name": "outcome ietf-network-topology:termination-point",\r
157         "xml": "<outcome value='ietf-network-topology:termination-point'>\n",\r
158         "comments": "",\r
159         "outputs": 1,\r
160         "x": 696,\r
161         "y": 320,\r
162         "z": "a630608e.55155",\r
163         "wires": [\r
164             [\r
165                 "33395266.1d862e"\r
166             ]\r
167         ]\r
168     },\r
169     {\r
170         "id": "33395266.1d862e",\r
171         "type": "block",\r
172         "name": "block : atomic",\r
173         "xml": "<block atomic=\"true\">",\r
174         "atomic": "true",\r
175         "outputs": 1,\r
176         "x": 971,\r
177         "y": 320,\r
178         "z": "a630608e.55155",\r
179         "wires": [\r
180             [\r
181                 "4e95c5c1.30f36c",\r
182                 "4b491788.1b21b8",\r
183                 "f935a561.72ecd8"\r
184             ]\r
185         ]\r
186     },\r
187     {\r
188         "id": "f7127d7b.6e386",\r
189         "type": "block",\r
190         "name": "block",\r
191         "xml": "<block>\n",\r
192         "atomic": "false",\r
193         "comments": "",\r
194         "outputs": 1,\r
195         "x": 550,\r
196         "y": 260,\r
197         "z": "a630608e.55155",\r
198         "wires": [\r
199             [\r
200                 "8ad7a79a.b1d9a8"\r
201             ]\r
202         ]\r
203     },\r
204     {\r
205         "id": "4fda0bd8.3d5334",\r
206         "type": "success",\r
207         "name": "success",\r
208         "xml": "<outcome value='success'>\n",\r
209         "comments": "",\r
210         "outputs": 1,\r
211         "x": 414,\r
212         "y": 260,\r
213         "z": "a630608e.55155",\r
214         "wires": [\r
215             [\r
216                 "f7127d7b.6e386"\r
217             ]\r
218         ]\r
219     },\r
220     {\r
221         "id": "a280007a.e935d",\r
222         "type": "failure",\r
223         "name": "failure",\r
224         "xml": "<outcome value='failure'>\n",\r
225         "comments": "",\r
226         "outputs": 1,\r
227         "x": 410,\r
228         "y": 300,\r
229         "z": "a630608e.55155",\r
230         "wires": [\r
231             []\r
232         ]\r
233     }\r
234 ]