3 "id": "7c240df1.6781c4",
8 "y": 91.42857360839844,
17 "id": "dedc83da.c4349",
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": 223.85713577270508,
26 "y": 131.23811149597168,
27 "z": "aabede20.89a51",
35 "id": "dfb24d0c.2db3f",
37 "name": "method port-mirror-get-policy",
38 "xml": "<method rpc='port-mirror-get-policy' mode='sync'>\n",
41 "x": 172.42862701416016,
42 "y": 172.42857360839844,
43 "z": "aabede20.89a51",
51 "id": "684506ac.6795f8",
53 "name": "port-mirror-get-policy",
56 "x": 515.3210983276367,
57 "y": 34.40427303314209,
58 "z": "aabede20.89a51",
62 "id": "4883d77b.032d28",
64 "name": "block : atomic",
65 "xml": "<block atomic=\"true\">",
68 "x": 153.3333511352539,
69 "y": 478.09523010253906,
70 "z": "aabede20.89a51",
84 "id": "fb8923b4.bd56c",
86 "name": "RestapiCallnode getConfig",
87 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.pm.getpolicy.templatefile`\" />\n <parameter name='restapiUrl' value=\"`$prop.policy-manager.url + '/pdp/api/getConfig'`\" />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='responsePrefix' value=\"policy\" /> \n <parameter name='customHttpHeaders'\n value=\"`'Authorization=Basic ' + $prop.policy-manager.authorization + ',ClientAuth=Basic ' + $prop.policy-manager.clientauth + ',Environment=' + $prop.policy-manager.environment `\" />\n",
90 "x": 446.66664123535156,
91 "y": 298.09522438049316,
92 "z": "aabede20.89a51",
101 "id": "827dce65.48224",
104 "xml": "<outcome value='success'>\n",
107 "x": 653.8094863891602,
108 "y": 275.2381076812744,
109 "z": "aabede20.89a51",
117 "id": "fb7ccb16.ee0298",
119 "name": "block: atomic",
120 "xml": "<block atomic=\"true\">\n",
124 "x": 817.523811340332,
125 "y": 275.1665835380554,
126 "z": "aabede20.89a51",
132 "id": "9effab4f.242cd8",
135 "xml": "<outcome value='Other'>\n",
138 "x": 649.9470252990723,
139 "y": 323.16132068634033,
140 "z": "aabede20.89a51",
148 "id": "17302ca7.ec4b13",
149 "type": "returnFailure",
150 "name": "return failure",
151 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Failed to get policy from Policy Manager' />\n",
153 "x": 814.3809089660645,
154 "y": 322.8095302581787,
155 "z": "aabede20.89a51",
159 "id": "7801d204.937cbc",
161 "name": "convert json config to variables",
162 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx' >\n <parameter name='source' value=\"policy.config\" />\n <parameter name='outputPath' value=\"tmp.config-ctx\" />\n <parameter name='isEscaped' value='false' />\n",
165 "x": 453.0951156616211,
166 "y": 397.38094329833984,
167 "z": "aabede20.89a51",
176 "id": "849bff9a.446d3",
179 "xml": "<outcome value='success'>\n",
182 "x": 660.2379608154297,
183 "y": 374.5238265991211,
184 "z": "aabede20.89a51",
192 "id": "a0c3cf22.714c7",
194 "name": "block: atomic",
195 "xml": "<block atomic=\"true\">\n",
199 "x": 823.9522857666016,
200 "y": 374.4523024559021,
201 "z": "aabede20.89a51",
207 "id": "c6ca48ae.e5cc58",
210 "xml": "<outcome value='Other'>\n",
213 "x": 656.3754997253418,
214 "y": 422.447039604187,
215 "z": "aabede20.89a51",
223 "id": "e9ddad6b.d165b",
224 "type": "returnFailure",
225 "name": "return failure",
226 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Failed to convert config variable from PolicyManager' />\n",
228 "x": 820.809383392334,
229 "y": 422.0952491760254,
230 "z": "aabede20.89a51",
234 "id": "f7d9a896.cf5de8",
236 "name": "set tmp.policy-name",
237 "xml": "<set>\n<parameter name='tmp.policy-name' value='`$db.cap[0].policy-name`' />\n",
239 "x": 426.66667429606105,
240 "y": 223.09524281819654,
241 "z": "aabede20.89a51",
245 "id": "f823c40b.99b648",
247 "name": "set tmp.dest-p-interface from productionContext",
248 "xml": "<set>\n<parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.productionContext`' />\n",
250 "x": 1268.750015258789,
251 "y": 578.4285373687744,
252 "z": "aabede20.89a51",
256 "id": "2c07a59d.60025a",
257 "type": "returnSuccess",
258 "name": "return success",
259 "xml": "<return status='success'>\n",
261 "x": 407.5000991821289,
262 "y": 850.1786298751831,
263 "z": "aabede20.89a51",
267 "id": "8913e0a1.253a",
268 "type": "switchNode",
269 "name": "switch lc-tenant-context",
270 "xml": "<switch test='`$tmp.lc-tenant-context`'>\n",
273 "x": 434.166690826416,
274 "y": 574.7618494033813,
275 "z": "aabede20.89a51",
284 "id": "c7d91e4f.cd2b2",
286 "name": "set tmp.dest-p-interface from testContext",
287 "xml": "<set>\n<parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.testContext`' />\n",
289 "x": 1605.833396911621,
290 "y": 622.4285373687744,
291 "z": "aabede20.89a51",
295 "id": "6f1dcecb.0bf3e",
297 "name": "set tmp.dest-p-interface from developmentContext",
298 "xml": "<set>\n<parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.developmentContext`' />\n",
300 "x": 1999.1666564941406,
301 "y": 663.9285373687744,
302 "z": "aabede20.89a51",
306 "id": "d0335872.4a8e58",
308 "name": "set tmp.dest-p-interface",
309 "xml": "<set>\n<parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.defaultContext`' />\n",
311 "x": 2283.333282470703,
312 "y": 703.9286003112793,
313 "z": "aabede20.89a51",
317 "id": "e3391f9f.5f004",
318 "type": "returnFailure",
319 "name": "return failure",
320 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Unexpected tenant-context value of ' + $tmp.tenant-context`\" />\n",
322 "x": 2252.0834007263184,
323 "y": 768.9285402297974,
324 "z": "aabede20.89a51",
328 "id": "47b76e8a.2929c",
329 "type": "switchNode",
330 "name": "switch tmp.dest-p-interface",
331 "xml": "<switch test='`$tmp.dest-p-interface`'>\n",
334 "x": 447.50000762939453,
335 "y": 791.8453493118286,
336 "z": "aabede20.89a51",
344 "id": "fe95b2b0.257d8",
347 "xml": "<outcome value=''>\n",
350 "x": 647.5000228881836,
351 "y": 791.8452577590942,
352 "z": "aabede20.89a51",
360 "id": "a6b2a82a.01ec88",
361 "type": "returnFailure",
362 "name": "return failure",
363 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Unable to find p-interface in policy ' + tmp.policy-name`\" />\n",
365 "x": 807.4999542236328,
366 "y": 791.8452672958374,
367 "z": "aabede20.89a51",
371 "id": "883f5bc7.851688",
374 "xml": "<outcome value=''>\n",
377 "x": 638.7500076293945,
378 "y": 533.9286003112793,
379 "z": "aabede20.89a51",
387 "id": "5b6d06f7.787ce8",
389 "name": "set tmp.dest-p-interface from defaultContext",
390 "xml": "<set>\n<parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.defaultContext`' />\n",
393 "y": 533.9285869598389,
394 "z": "aabede20.89a51",
398 "id": "aa12e112.2f8bd",
400 "name": "convert tenant-context to lower case",
401 "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"toLower\">\n\t<parameter name=\"source\" value=\"`$tmp.tenant-context`\" />\n\t<parameter name=\"outputPath\" value=\"tmp.lc-tenant-context\" />\n",
404 "x": 470.00000762939453,
405 "y": 475.00000762939453,
406 "z": "aabede20.89a51",
412 "id": "89d18dfc.fe3f9",
415 "xml": "<outcome value='Other'>\n",
418 "x": 640.0000076293945,
419 "y": 617.5000095367432,
420 "z": "aabede20.89a51",
428 "id": "d320e4c3.2e4e58",
430 "name": "lc-tenant-contains 'prod'",
431 "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"contains\" emitsOutcome='true'>\n\t<parameter name=\"source\" value=\"`$tmp.lc-tenant-context`\" />\n\t<parameter name=\"target\" value=\"prod\" />\n",
436 "z": "aabede20.89a51",
445 "id": "92d9b5db.979da8",
446 "type": "outcomeTrue",
448 "xml": "<outcome value='true'>\n",
453 "z": "aabede20.89a51",
461 "id": "a5418501.6535b8",
464 "xml": "<outcome value='Other'>\n",
467 "x": 1012.5000152587891,
468 "y": 657.5000095367432,
469 "z": "aabede20.89a51",
477 "id": "21ec97e6.1cc748",
479 "name": "lc-tenant-contains 'test'",
480 "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"contains\" emitsOutcome='true'>\n\t<parameter name=\"source\" value=\"`$tmp.lc-tenant-context`\" />\n\t<parameter name=\"target\" value=\"test\" />\n",
483 "x": 1192.750015258789,
484 "y": 657.5000095367432,
485 "z": "aabede20.89a51",
494 "id": "b12ce223.87118",
495 "type": "outcomeTrue",
497 "xml": "<outcome value='true'>\n",
502 "z": "aabede20.89a51",
510 "id": "17e1a4f2.79a74b",
513 "xml": "<outcome value='Other'>\n",
516 "x": 1375.0000190734863,
517 "y": 701.2500095367432,
518 "z": "aabede20.89a51",
526 "id": "db100bb2.6b8818",
528 "name": "lc-tenant-contains 'dev'",
529 "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"contains\" emitsOutcome='true'>\n\t<parameter name=\"source\" value=\"`$tmp.lc-tenant-context`\" />\n\t<parameter name=\"target\" value=\"dev\" />\n",
532 "x": 1550.666618347168,
533 "y": 701.3214712142944,
534 "z": "aabede20.89a51",
543 "id": "6c48c803.9e2048",
544 "type": "outcomeTrue",
546 "xml": "<outcome value='true'>\n",
549 "x": 1731.666603088379,
550 "y": 665.0714626312256,
551 "z": "aabede20.89a51",
559 "id": "b666f52e.6438e8",
562 "xml": "<outcome value='Other'>\n",
565 "x": 1732.9166526794434,
566 "y": 740.0714836120605,
567 "z": "aabede20.89a51",
575 "id": "b7ae12df.bfc5b",
577 "name": "lc-tenant-contains 'default'",
578 "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"contains\" emitsOutcome='true'>\n\t<parameter name=\"source\" value=\"`$tmp.lc-tenant-context`\" />\n\t<parameter name=\"target\" value=\"default\" />\n",
583 "z": "aabede20.89a51",
592 "id": "d449adab.fe626",
593 "type": "outcomeTrue",
595 "xml": "<outcome value='true'>\n",
598 "x": 2104.7499809265137,
599 "y": 706.2499914169312,
600 "z": "aabede20.89a51",
608 "id": "e9137b95.e207f8",
611 "xml": "<outcome value='Other'>\n",
614 "x": 2103.4999961853027,
615 "y": 771.2500009536743,
616 "z": "aabede20.89a51",