7 "x": 101.42857360839844,
17 "id": "bf3f1e52.b503c",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
21 "version": "${project.version}",
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='GENERIC-RESOURCE-API' version='${project.version}'>",
25 "x": 215.04759979248047,
26 "y": 120.23811340332031,
35 "id": "113ca55d.9f806b",
37 "name": "method port-mirror-topology-operation-deactivate-sync",
38 "xml": "<method rpc='port-mirror-topology-operation-deactivate-sync' mode='sync'>\n",
41 "x": 239.8572006225586,
51 "id": "f3e36ac1.5fde88",
53 "name": "port-mirror-topology-operation-deactivate-sync",
56 "x": 495.77342987060547,
57 "y": 27.58634376525879,
62 "id": "291f858d.e8a8da",
64 "name": "block : atomic",
65 "xml": "<block atomic=\"true\">",
68 "x": 161.42857360839844,
69 "y": 524.2857112884521,
83 "id": "44bf4c29.2ac2b4",
84 "type": "returnSuccess",
85 "name": "return success",
86 "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n<parameter name='ack-final' value='N' />",
88 "x": 436.8571472167969,
89 "y": 624.2856426239014,
94 "id": "18f8a407.260c1c",
96 "name": "set tmp.pm.configuration-id",
97 "xml": "<set>\n<parameter name='tmp.pm.configuration-id' value='`$port-mirror-topology-operation-input.configuration-information.configuration-id`' />\n\n",
99 "x": 476.1428680419922,
100 "y": 337.1428451538086,
101 "z": "64e470a6.f1c2",
105 "id": "b325942e.c008a8",
107 "name": "execute readProperties",
108 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
111 "x": 464.2857131958008,
112 "y": 385.7142734527588,
113 "z": "64e470a6.f1c2",
119 "id": "e8420d4.e95eaf",
121 "name": "generate port-mirror-configuration url",
122 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.pm-configuration`\"/>\n <parameter name=\"outputPath\" value=\"tmp.pmc-url\"/>\n <parameter name=\"target\" value=\"{configuration-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.pm.configuration-id`\"/>\n",
125 "x": 507.1428756713867,
126 "y": 432.857120513916,
127 "z": "64e470a6.f1c2",
133 "id": "dfd22f0a.d304b",
135 "name": "execute RestApiCallNode - get port-mirror-configuration",
136 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.pmc-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='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-pmc\" />\n\n",
139 "x": 567.1428604125977,
140 "y": 480.00005531311035,
141 "z": "64e470a6.f1c2",
150 "id": "c4ace799.8ee718",
153 "xml": "<outcome value='success'>\n",
156 "x": 865.2959823608398,
157 "y": 450.80790424346924,
158 "z": "64e470a6.f1c2",
166 "id": "4908b83c.f73098",
169 "xml": "<outcome value='Other'>\n",
172 "x": 862.857120513916,
173 "y": 499.99999809265137,
174 "z": "64e470a6.f1c2",
182 "id": "757e722e.e4749c",
183 "type": "returnFailure",
184 "name": "return failure",
185 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Cannot find port-mirror-configuration ' + $tmp.pm.configuration-id`\" />\n",
187 "x": 1377.1427993774414,
188 "y": 497.14286041259766,
189 "z": "64e470a6.f1c2",
193 "id": "58c32a6.c5959d4",
194 "type": "switchNode",
195 "name": "switch order-status == 'Active'",
196 "xml": "<switch test=\"`$mdsal-pmc.port-mirror-configuration[0].configuration-data.configuration-oper-status.order-status == 'Active'`\">\n",
199 "x": 490.00003814697266,
200 "y": 554.2856636047363,
201 "z": "64e470a6.f1c2",
209 "id": "fe1d6d18.fd8e7",
210 "type": "switchNode",
211 "name": "switch length == 1",
212 "xml": "<switch test='`$mdsal-pmc.port-mirror-configuration_length == 1`'>\n",
215 "x": 1044.2856826782227,
216 "y": 450.0000123977661,
217 "z": "64e470a6.f1c2",
225 "id": "a174e8a2.7a8d78",
226 "type": "outcomeFalse",
228 "xml": "<outcome value='false'>\n",
231 "x": 1214.2857131958008,
232 "y": 450.00000381469727,
233 "z": "64e470a6.f1c2",
241 "id": "d5ac79e0.1c9168",
242 "type": "outcomeFalse",
244 "xml": "<outcome value='false'>\n",
247 "x": 718.5714492797852,
248 "y": 554.2857513427734,
249 "z": "64e470a6.f1c2",
257 "id": "11d549bd.b63176",
258 "type": "returnFailure",
259 "name": "return failure",
260 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Order status is ' + $mdsal-pmc.port-mirror-configuration[0].configuration-data.configuration-oper-status.order-status + ' but must be Active'`\" />\n",
262 "x": 880.0000381469727,
263 "y": 552.8571624755859,
264 "z": "64e470a6.f1c2",