DG'S added for MDONS use case
[sdnc/oam.git] / platform-logic / optical-service / src / main / json / optical-service_call-bandwidth-update-pinterface.json
1 [\r
2     {\r
3         "id": "eea3e631.4d9b68",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 186,\r
8         "y": 126,\r
9         "z": "75b8fd05.797274",\r
10         "wires": [\r
11             [\r
12                 "cb6680a1.3045c"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "cb6680a1.3045c",\r
18         "type": "service-logic",\r
19         "name": "optical-service ${project.version}",\r
20         "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
24         "outputs": 1,\r
25         "x": 199,\r
26         "y": 186,\r
27         "z": "75b8fd05.797274",\r
28         "wires": [\r
29             [\r
30                 "fe24bdb7.c56f2"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "fe24bdb7.c56f2",\r
36         "type": "method",\r
37         "name": "method call-bandwidth-update-pinterface",\r
38         "xml": "<method rpc='call-bandwidth-update-pinterface' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 219,\r
42         "y": 266,\r
43         "z": "75b8fd05.797274",\r
44         "wires": [\r
45             [\r
46                 "f4138d82.af408"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "f4138d82.af408",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">\n",\r
55         "atomic": "false",\r
56         "comments": "",\r
57         "outputs": 1,\r
58         "x": 465.5,\r
59         "y": 265,\r
60         "z": "75b8fd05.797274",\r
61         "wires": [\r
62             [\r
63                 "644acd06.205cc4",\r
64                 "9946b93e.6bd4e8",\r
65                 "35af83ac.5dff5c"\r
66             ]\r
67         ]\r
68     },\r
69     {\r
70         "id": "644acd06.205cc4",\r
71         "type": "record",\r
72         "name": "record",\r
73         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/test.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$div`\"/>\n\n\n\n\n\n",\r
74         "comments": "",\r
75         "outputs": 1,\r
76         "x": 621,\r
77         "y": 105,\r
78         "z": "75b8fd05.797274",\r
79         "wires": [\r
80             []\r
81         ]\r
82     },\r
83     {\r
84         "id": "f55c6dd9.5cdaa",\r
85         "type": "set",\r
86         "name": "set",\r
87         "xml": "<set>\n<parameter name='new-odu-number' value='`0`' />\n",\r
88         "comments": "",\r
89         "x": 1768,\r
90         "y": 299,\r
91         "z": "75b8fd05.797274",\r
92         "wires": []\r
93     },\r
94     {\r
95         "id": "79209df4.edd3e4",\r
96         "type": "update",\r
97         "name": "update available bandwdth'",\r
98         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
99         "comments": "",\r
100         "outputs": 1,\r
101         "x": 1823,\r
102         "y": 353,\r
103         "z": "75b8fd05.797274",\r
104         "wires": [\r
105             []\r
106         ]\r
107     },\r
108     {\r
109         "id": "9946b93e.6bd4e8",\r
110         "type": "get-resource",\r
111         "name": "find if interface is uni or nni or enni",\r
112         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n key=\"pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND depth = 'all'\"\npfx='pin'      local-only='false'>\n\n",\r
113         "comments": "",\r
114         "outputs": 1,\r
115         "x": 754,\r
116         "y": 179,\r
117         "z": "75b8fd05.797274",\r
118         "wires": [\r
119             []\r
120         ]\r
121     },\r
122     {\r
123         "id": "35af83ac.5dff5c",\r
124         "type": "switchNode",\r
125         "name": "switch",\r
126         "xml": "<switch test='`$pin.network-interface-type`'>\n",\r
127         "comments": "",\r
128         "outputs": 1,\r
129         "x": 644,\r
130         "y": 262,\r
131         "z": "75b8fd05.797274",\r
132         "wires": [\r
133             [\r
134                 "e2e8e64.ad89518",\r
135                 "2d42a8a.f473958"\r
136             ]\r
137         ]\r
138     },\r
139     {\r
140         "id": "60b2bda3.41fbd4",\r
141         "type": "block",\r
142         "name": "block : atomic",\r
143         "xml": "<block atomic=\"true\">\n",\r
144         "atomic": "false",\r
145         "comments": "",\r
146         "outputs": 1,\r
147         "x": 951,\r
148         "y": 250,\r
149         "z": "75b8fd05.797274",\r
150         "wires": [\r
151             [\r
152                 "301928f8.f38eb8",\r
153                 "64426912.b5d438"\r
154             ]\r
155         ]\r
156     },\r
157     {\r
158         "id": "301928f8.f38eb8",\r
159         "type": "call",\r
160         "name": "call bandwidth update",\r
161         "xml": "<call module='optical-service' rpc='bandwidth-update' mode='sync' >\n",\r
162         "comments": "",\r
163         "outputs": 1,\r
164         "x": 1160,\r
165         "y": 249,\r
166         "z": "75b8fd05.797274",\r
167         "wires": [\r
168             []\r
169         ]\r
170     },\r
171     {\r
172         "id": "e2e8e64.ad89518",\r
173         "type": "outcome",\r
174         "name": "outcome",\r
175         "xml": "<outcome value='UNI'>\n",\r
176         "comments": "",\r
177         "outputs": 1,\r
178         "x": 756,\r
179         "y": 360,\r
180         "z": "75b8fd05.797274",\r
181         "wires": [\r
182             [\r
183                 "97cc233d.bc8a6"\r
184             ]\r
185         ]\r
186     },\r
187     {\r
188         "id": "97cc233d.bc8a6",\r
189         "type": "block",\r
190         "name": "block : atomic",\r
191         "xml": "<block atomic=\"true\">\n",\r
192         "atomic": "false",\r
193         "comments": "",\r
194         "outputs": 1,\r
195         "x": 926,\r
196         "y": 365,\r
197         "z": "75b8fd05.797274",\r
198         "wires": [\r
199             [\r
200                 "7a8337c7.492958",\r
201                 "118d5528.b1e21b"\r
202             ]\r
203         ]\r
204     },\r
205     {\r
206         "id": "7a8337c7.492958",\r
207         "type": "update",\r
208         "name": "update available bandwdth'",\r
209         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name' \n      local-only='false'>\n<parameter name='available-capacity' value='0' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
210         "comments": "",\r
211         "outputs": 1,\r
212         "x": 1161,\r
213         "y": 399,\r
214         "z": "75b8fd05.797274",\r
215         "wires": [\r
216             []\r
217         ]\r
218     },\r
219     {\r
220         "id": "64426912.b5d438",\r
221         "type": "record",\r
222         "name": "record",\r
223         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Port is NNI\"/>\n\n\n\n\n\n",\r
224         "comments": "",\r
225         "outputs": 1,\r
226         "x": 1092,\r
227         "y": 191,\r
228         "z": "75b8fd05.797274",\r
229         "wires": [\r
230             []\r
231         ]\r
232     },\r
233     {\r
234         "id": "118d5528.b1e21b",\r
235         "type": "record",\r
236         "name": "record",\r
237         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Port is UNI\"/>\n\n\n\n\n\n",\r
238         "comments": "",\r
239         "outputs": 1,\r
240         "x": 1110,\r
241         "y": 308,\r
242         "z": "75b8fd05.797274",\r
243         "wires": [\r
244             []\r
245         ]\r
246     },\r
247     {\r
248         "id": "2d42a8a.f473958",\r
249         "type": "other",\r
250         "name": "other",\r
251         "xml": "<outcome value='Other'>\n",\r
252         "comments": "",\r
253         "outputs": 1,\r
254         "x": 790,\r
255         "y": 264,\r
256         "z": "75b8fd05.797274",\r
257         "wires": [\r
258             [\r
259                 "60b2bda3.41fbd4"\r
260             ]\r
261         ]\r
262     }\r
263 ]