[ { "id":"447755b1.5a154c", "type":"dgstart", "name":"DGSTART", "outputs":1, "x":275, "y":195, "z":"d3629202.0e9a9", "wires":[ [ "66bfcde5.5d96c4" ] ] }, { "id":"66bfcde5.5d96c4", "type":"service-logic", "name":"GENERIC-RESOURCE-API ${project.version}", "module":"GENERIC-RESOURCE-API", "version":"${project.version}", "comments":"", "xml":"", "outputs":1, "x":371.2380790710449, "y":255.95239067077637, "z":"d3629202.0e9a9", "wires":[ [ "2dfe1c17.827494" ] ] }, { "id":"2dfe1c17.827494", "type":"method", "name":"brg-topology-operation-assign", "xml":"\n", "comments":"", "outputs":1, "x":417.15485763549805, "y":291.1904458999634, "z":"d3629202.0e9a9", "wires":[ [ "8e0c81af.52e65" ] ] }, { "id":"8e0c81af.52e65", "type":"block", "name":"block : atomic", "xml":"", "atomic":"true", "comments":"", "outputs":1, "x":325.47619247436523, "y":434.5237879753113, "z":"d3629202.0e9a9", "wires":[ [ "28efce96.95a252", "74f2d05d.d128", "b05fdf22.36f2", "3df4d53c.54c6ca", "c8732493.f72838" ] ] }, { "id":"2755b2a9.79da1e", "type":"returnSuccess", "name":"return success", "xml":"\n\n\n\n", "comments":"", "x":1168.6666564941406, "y":2361.5477046966553, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"12aa04eb.1fdf1b", "type":"set", "name":"set output to api handler", "xml":"\n\n\n\n \n", "comments":"", "x":1205.7540550231934, "y":2240.432439804077, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"9736c0da.28d34", "type":"set", "name":"set allotted-resource-oper-status", "xml":"\n\n\n\n\n\n", "comments":"", "x":1277.468376159668, "y":1657.6228160858154, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"74f2d05d.d128", "type":"set", "name":"set tmp.ar.self-link", "xml":"\n\n\n", "comments":"", "x":755.7380676269531, "y":326.33331298828125, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"28efce96.95a252", "type":"set", "name":"set tmp.ar.allotted-resource-id,etc", "xml":"\n\n\n\n\n", "comments":"", "x":808.997314453125, "y":288.59259033203125, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"b6562205.a7488", "type":"success", "name":"success", "xml":"\n", "comments":"", "outputs":1, "x":958.8148803710938, "y":474.26727294921875, "z":"d3629202.0e9a9", "wires":[ [ "af1477fd.c2ef48" ] ] }, { "id":"72e34d2d.88e074", "type":"execute", "name":"execute RestApiCallNode - PUT AR by id", "xml":"\n \n \n \n \n \n \n \n\n", "comments":"", "outputs":1, "x":1298.8626251220703, "y":1882.1008231639862, "z":"d3629202.0e9a9", "wires":[ [ "d589ef8a.4b767", "6a9fa011.f03d8", "851f57de.ccd048" ] ] }, { "id":"d589ef8a.4b767", "type":"not-found", "name":"not-found", "xml":"\n", "comments":"", "outputs":1, "x":1567.5040016174316, "y":1933.4322349056602, "z":"d3629202.0e9a9", "wires":[ [ "e12a7d91.5e076" ] ] }, { "id":"6a9fa011.f03d8", "type":"failure", "name":"failure", "xml":"\n", "comments":"", "outputs":1, "x":1558.504051208496, "y":1901.9322606548667, "z":"d3629202.0e9a9", "wires":[ [ "e12a7d91.5e076" ] ] }, { "id":"851f57de.ccd048", "type":"success", "name":"success", "xml":"\n", "comments":"", "outputs":1, "x":1562.2540893554688, "y":1872.289365530014, "z":"d3629202.0e9a9", "wires":[ [ "92379d68.800b2" ] ] }, { "id":"e12a7d91.5e076", "type":"returnFailure", "name":"return failure", "xml":"\n\t\n\t\n \n", "comments":"", "x":1728.2540893554688, "y":1902.6822844967246, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"fe3888af.6a0dc8", "type":"set", "name":"set oper-status", "xml":"\n\n\n\n\n", "comments":"", "x":1308.5294189453125, "y":575.0529174804688, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"3526b3c4.21b13c", "type":"comment", "name":"Save consumed-allotted-resources to mdsal", "info":"", "comments":"", "x":1376.2434692382812, "y":1256.7196044921875, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"e7882796.2e25a8", "type":"comment", "name":"GET tunnelxconn-allotted-resource from mdsal", "info":"", "comments":"", "x":681.8148193359375, "y":444.7672119140625, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"af1477fd.c2ef48", "type":"returnFailure", "name":"return failure - tunnelxconn already exists", "xml":"\n\t\n\t\n \n", "comments":"", "x":1268.129150390625, "y":470.6243896484375, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"5ce4ff52.c3598", "type":"set", "name":"set brg-ar-identifiers", "xml":"\n\n\n\n\n\n", "comments":"", "x":1318.38623046875, "y":668.6243896484375, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"72aaacf.5bef354", "type":"comment", "name":"Set allotted-resource-identifiers", "info":"", "comments":"", "x":1345.338623046875, "y":627.338623046875, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"e4f1d676.269118", "type":"set", "name":"set identifiers in overall structure", "xml":"\n\n\n\n", "comments":"", "x":1335.38623046875, "y":976.910400390625, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"af5a8dd4.2718", "type":"set", "name":"set onap model information from input", "xml":"\n\n\n\n", "comments":"", "x":1363.957763671875, "y":711.9100952148438, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"6487f749.00d688", "type":"switchNode", "name":"switch model-invariant-uuid is null", "xml":"\n", "comments":"", "outputs":1, "x":1343.8148193359375, "y":751.19580078125, "z":"d3629202.0e9a9", "wires":[ [ "ac9d6ff3.e94f3" ] ] }, { "id":"ac9d6ff3.e94f3", "type":"outcome", "name":"outcome null", "xml":"\n", "comments":"", "outputs":1, "x":1571.9576988220215, "y":752.6243271827698, "z":"d3629202.0e9a9", "wires":[ [ "6de39e79.3ed02" ] ] }, { "id":"6de39e79.3ed02", "type":"set", "name":"set model-invariant-uuid", "xml":"\n\n\n\n", "comments":"", "x":1773.38627243042, "y":752.0528798103333, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"62ed5c3a.385604", "type":"switchNode", "name":"switch model-uuid is null", "xml":"\n", "comments":"", "outputs":1, "x":1316.2434158325195, "y":785.4815106391907, "z":"d3629202.0e9a9", "wires":[ [ "94d93434.23d938" ] ] }, { "id":"94d93434.23d938", "type":"outcome", "name":"outcome null", "xml":"\n", "comments":"", "outputs":1, "x":1517.6719818115234, "y":786.0529322624207, "z":"d3629202.0e9a9", "wires":[ [ "aa516303.e0eee" ] ] }, { "id":"aa516303.e0eee", "type":"set", "name":"set model-uuid", "xml":"\n\n\n\n", "comments":"", "x":1710.529140472412, "y":786.0528540611267, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"15675ff3.fe7c9", "type":"switchNode", "name":"switch model-version is null", "xml":"\n", "comments":"", "outputs":1, "x":1324.8148193359375, "y":818.3386378288269, "z":"d3629202.0e9a9", "wires":[ [ "baad5acc.7ffcb8" ] ] }, { "id":"baad5acc.7ffcb8", "type":"outcome", "name":"outcome null", "xml":"\n", "comments":"", "outputs":1, "x":1574.8148002624512, "y":818.3386225700378, "z":"d3629202.0e9a9", "wires":[ [ "ff89d62f.a88838" ] ] }, { "id":"ff89d62f.a88838", "type":"set", "name":"set model-version", "xml":"\n\n\n\n", "comments":"", "x":1767.6719589233398, "y":818.3385443687439, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"4359a5ff.7933ac", "type":"switchNode", "name":"switch ar-model.ecomp-generated-naming", "xml":"\n", "comments":"", "outputs":1, "x":1388.38623046875, "y":920.7672729492188, "z":"d3629202.0e9a9", "wires":[ [ "caaf3501.3ba9c8", "2ae9bf81.d8366" ] ] }, { "id":"caaf3501.3ba9c8", "type":"other", "name":"outcome Y", "xml":"\n", "comments":"", "outputs":1, "x":1674.3862915039062, "y":920.1958618164062, "z":"d3629202.0e9a9", "wires":[ [ "e333882f.732e78" ] ] }, { "id":"e333882f.732e78", "type":"block", "name":"block : atomic", "xml":"\n", "atomic":"true", "comments":"", "outputs":1, "x":1828.1363525390625, "y":922.69580078125, "z":"d3629202.0e9a9", "wires":[ [ "68a80432.57affc" ] ] }, { "id":"2ae9bf81.d8366", "type":"other", "name":"other", "xml":"\n", "comments":"", "outputs":1, "x":1693.608642578125, "y":1009.1958618164062, "z":"d3629202.0e9a9", "wires":[ [ "363e0870.e596f8" ] ] }, { "id":"363e0870.e596f8", "type":"returnFailure", "name":"return failure", "xml":"\n\t\n\t\n \n\n", "comments":"", "x":1876.608642578125, "y":1014.1958618164062, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"68a80432.57affc", "type":"switchNode", "name":"switch ar-model.ecomp-generated-naming", "xml":"\n", "comments":"", "outputs":1, "x":1964.38623046875, "y":971.767333984375, "z":"d3629202.0e9a9", "wires":[ [ "b9e5730f.7b10e", "1e6aef5f.dbbe91" ] ] }, { "id":"b9e5730f.7b10e", "type":"other", "name":"outcome oam_network_policy", "xml":"\n", "comments":"", "outputs":1, "x":2339.244140625, "y":975.3453369140625, "z":"d3629202.0e9a9", "wires":[ [ "272bfe84.8b7ee2" ] ] }, { "id":"1e6aef5f.dbbe91", "type":"other", "name":"other", "xml":"\n", "comments":"", "outputs":1, "x":2253.671875, "y":1052.1958618164062, "z":"d3629202.0e9a9", "wires":[ [ "272bfe84.8b7ee2" ] ] }, { "id":"23093b95.f9aaa4", "type":"set", "name":"set ar_name", "xml":"\n\n", "comments":"", "x":2645.100830078125, "y":1010.7672729492188, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"1a68705f.d6389", "type":"execute", "name":"execute SliStringUtils - replace TenantOAMNetworkRole", "xml":"\n \n \n \n \n\n", "comments":"", "outputs":1, "x":2789.2437858581543, "y":1054.6244196891785, "z":"d3629202.0e9a9", "wires":[ [ ] ] }, { "id":"7aa8e90e.1063e8", "type":"execute", "name":"execute SliStringUtils - replace LandingNetworkRole", "xml":"\n \n \n \n \n\n", "comments":"", "outputs":1, "x":2776.243896484375, "y":1094.7672729492188, "z":"d3629202.0e9a9", "wires":[ [ ] ] }, { "id":"272bfe84.8b7ee2", "type":"block", "name":"block: atomic", "xml":"\n", "atomic":"false", "comments":"", "outputs":1, "x":2453.5292015075684, "y":1050.3387522697449, "z":"d3629202.0e9a9", "wires":[ [ "23093b95.f9aaa4", "1a68705f.d6389", "7aa8e90e.1063e8", "4308f250.0d061c" ] ] }, { "id":"4308f250.0d061c", "type":"set", "name":"set identifiers.allotted-resource-name", "xml":"\n\n", "comments":"", "x":2734.1005859375, "y":1145.052978515625, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"18920617.98a00a", "type":"set", "name":"set assignments in overall structure", "xml":"\n\n\n\n", "comments":"", "x":1343.8624572753906, "y":1181.6246919631958, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"21493890.2a9e08", "type":"set", "name":"Handle brg-ar-assignments", "xml":"\n\n", "comments":"", "x":1323.529052734375, "y":1078.0530395507812, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"d4e58fd3.5a831", "type":"for", "name":"for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]", "xml":"\n", "comments":"", "outputs":1, "x":2361.8155822753906, "y":1455.0411586761475, "z":"d3629202.0e9a9", "wires":[ [ "c0a127f7.72a988" ] ] }, { "id":"d68f413c.e0018", "type":"switchNode", "name":"switch service-data.consumed-allotted-resources_length", "xml":"\n", "comments":"", "outputs":1, "x":1392.8148193359375, "y":1342.505126953125, "z":"d3629202.0e9a9", "wires":[ [ "d8f09bad.98faa8", "980eb422.8bc7a8" ] ] }, { "id":"d8f09bad.98faa8", "type":"other", "name":"outcome Null", "xml":"\n", "comments":"", "outputs":1, "x":1768.2077865600586, "y":1347.1124458312988, "z":"d3629202.0e9a9", "wires":[ [ "19b4289e.1770d7" ] ] }, { "id":"980eb422.8bc7a8", "type":"other", "name":"other", "xml":"\n", "comments":"", "outputs":1, "x":1766.9577865600586, "y":1437.1124477386475, "z":"d3629202.0e9a9", "wires":[ [ "1162545f.50c16c" ] ] }, { "id":"c0a127f7.72a988", "type":"switchNode", "name":"switch allotted-resource-id", "xml":"\n\n", "comments":"", "outputs":1, "x":2796.4106826782227, "y":1456.85085105896, "z":"d3629202.0e9a9", "wires":[ [ "ff33ae53.f22d8" ] ] }, { "id":"ff33ae53.f22d8", "type":"outcomeTrue", "name":"true", "xml":"\n", "comments":"", "outputs":1, "x":3003.220375061035, "y":1460.064962387085, "z":"d3629202.0e9a9", "wires":[ [ "d155597e.e18e78" ] ] }, { "id":"1162545f.50c16c", "type":"block", "name":"block : atomic", "xml":"", "atomic":"true", "outputs":1, "x":1924.834976196289, "y":1443.4885501861572, "z":"d3629202.0e9a9", "wires":[ [ "d4e58fd3.5a831", "e918e4d2.1efcf8" ] ] }, { "id":"d155597e.e18e78", "type":"block", "name":"block : atomic", "xml":"", "atomic":"true", "outputs":1, "x":3171.4817276000977, "y":1464.9222631454468, "z":"d3629202.0e9a9", "wires":[ [ "c63d8f00.d8d8c", "83bc7036.c8dd5" ] ] }, { "id":"19b4289e.1770d7", "type":"set", "name":"set cidx", "xml":"\n\n\n\n\n", "comments":"", "x":1947.0647735595703, "y":1349.3266830444336, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"c63d8f00.d8d8c", "type":"set", "name":"set tmp.cidx and ctx.consumed-ar", "xml":"\n\n\n", "comments":"", "x":3417.3391876220703, "y":1459.4937419891357, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"61be16d.26f08e8", "type":"set", "name":"set consumed allotted resources", "xml":"\n\n\n\n\n\n", "comments":"", "x":1303.6720123291016, "y":1507.826681137085, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"92379d68.800b2", "type":"block", "name":"block", "xml":"\n", "atomic":"false", "comments":"", "outputs":1, "x":1703.910057067871, "y":1868.4815347194672, "z":"d3629202.0e9a9", "wires":[ [ "c74947a6.46a2b8" ] ] }, { "id":"8606840b.b8ce78", "type":"comment", "name":"Add BRG AR to mdsal", "info":"", "comments":"", "x":1228.148208618164, "y":1843.1957080364227, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"a3f8e39.226902", "type":"execute", "name":"execute getTime", "xml":"\n \n\n", "comments":"", "outputs":1, "x":1244.4814224243164, "y":1581.671986579895, "z":"d3629202.0e9a9", "wires":[ [ ] ] }, { "id":"681e6bc2.d5fc84", "type":"other", "name":"other", "xml":"\n", "comments":"", "outputs":1, "x":964.57666015625, "y":525.4814453125, "z":"d3629202.0e9a9", "wires":[ [ "4c28d627.be47d8" ] ] }, { "id":"4c28d627.be47d8", "type":"block", "name":"block: atomic", "xml":"\n", "atomic":"false", "comments":"", "outputs":1, "x":912.57666015625, "y":1021.2908325195312, "z":"d3629202.0e9a9", "wires":[ [ "75b209f7.c1c7f8", "5ce4ff52.c3598", "af5a8dd4.2718", "6487f749.00d688", "62ed5c3a.385604", "15675ff3.fe7c9", "fe3888af.6a0dc8", "4359a5ff.7933ac", "e4f1d676.269118", "21493890.2a9e08", "18920617.98a00a", "d68f413c.e0018", "61be16d.26f08e8", "a3f8e39.226902", "9736c0da.28d34", "c78f845.d573978", "72e34d2d.88e074", "12aa04eb.1fdf1b", "2755b2a9.79da1e" ] ] }, { "id":"75b209f7.c1c7f8", "type":"set", "name":"set id", "xml":"\n\n\n\n\n\n\n\n\n", "comments":"", "x":1283.2434387207031, "y":531.433837890625, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"c78f845.d573978", "type":"update", "name":"update AAI allotted-resource", "xml":"\n\t\n\t\n\t\n\t\n\t\n", "comments":"", "outputs":1, "x":1265.0529327392578, "y":1749.5767517089844, "z":"d3629202.0e9a9", "wires":[ [ "fd42eaba.bcea98", "44f6df87.e6131" ] ] }, { "id":"fd42eaba.bcea98", "type":"failure", "name":"failure", "xml":"\n", "comments":"", "outputs":1, "x":1520.814842224121, "y":1732.5292553901672, "z":"d3629202.0e9a9", "wires":[ [ "cf813c6.4773dc" ] ] }, { "id":"cf813c6.4773dc", "type":"returnFailure", "name":"return failure", "xml":"\n\t\n\t\n \n", "comments":"", "x":1687.338722229004, "y":1744.1483263969421, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"44f6df87.e6131", "type":"failure", "name":"not-found", "xml":"\n", "comments":"", "outputs":1, "x":1527.9101295471191, "y":1765.2912230491638, "z":"d3629202.0e9a9", "wires":[ [ "cf813c6.4773dc" ] ] }, { "id":"e918e4d2.1efcf8", "type":"switchNode", "name":"switch tmp.found-cidx", "xml":"\n", "comments":"", "outputs":1, "x":2176.743423461914, "y":1701.2315921783447, "z":"d3629202.0e9a9", "wires":[ [ "97cac5ec.6c2cb8" ] ] }, { "id":"97cac5ec.6c2cb8", "type":"outcomeTrue", "name":"false", "xml":"\n", "comments":"", "outputs":1, "x":2366.743377685547, "y":1701.2315292358398, "z":"d3629202.0e9a9", "wires":[ [ "79bcb05d.e925c" ] ] }, { "id":"79bcb05d.e925c", "type":"block", "name":"block : atomic", "xml":"", "atomic":"true", "outputs":1, "x":2532.743377685547, "y":1701.2315292358398, "z":"d3629202.0e9a9", "wires":[ [ "e7aa5ffb.99baf" ] ] }, { "id":"e7aa5ffb.99baf", "type":"set", "name":"set tmp.cidx ", "xml":"\n\n", "comments":"", "x":2778.600706100464, "y":1701.8030033111572, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"c74947a6.46a2b8", "type":"execute", "name":"execute RestApiCallNode - Update parent provided service AR", "xml":"\n \n \n \n \n \n \n \n\n", "comments":"", "outputs":1, "x":2054.9521980285645, "y":1868.1904199123383, "z":"d3629202.0e9a9", "wires":[ [ "779e9c7a.0850b4", "9d87709f.92daf", "1c59440e.45623c" ] ] }, { "id":"889dce84.ffc52", "type":"comment", "name":"Rollback parent", "info":"", "comments":"", "x":1898.9521255493164, "y":1837.8570504188538, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"779e9c7a.0850b4", "type":"not-found", "name":"not-found", "xml":"\n", "comments":"", "outputs":1, "x":2426.2602462768555, "y":1928.8553862571716, "z":"d3629202.0e9a9", "wires":[ [ "b6ba7293.f6aed" ] ] }, { "id":"9d87709f.92daf", "type":"failure", "name":"failure", "xml":"\n", "comments":"", "outputs":1, "x":2417.26029586792, "y":1897.3554120063782, "z":"d3629202.0e9a9", "wires":[ [ "b6ba7293.f6aed" ] ] }, { "id":"1c59440e.45623c", "type":"success", "name":"success", "xml":"\n", "comments":"", "outputs":1, "x":2421.0103340148926, "y":1867.7125168815255, "z":"d3629202.0e9a9", "wires":[ [ "b6ba7293.f6aed" ] ] }, { "id":"b6ba7293.f6aed", "type":"block", "name":"block", "xml":"\n", "atomic":"false", "comments":"", "outputs":1, "x":2562.666301727295, "y":1863.9046860709786, "z":"d3629202.0e9a9", "wires":[ [ ] ] }, { "id":"fbee093c.3938b8", "type":"comment", "name":"Generate naming", "info":"", "comments":"", "x":1319.3862762451172, "y":878.7672252655029, "z":"d3629202.0e9a9", "wires":[ ] }, { "id":"b05fdf22.36f2", "type":"get-resource", "name":"get-resource tunnelxconn-allotted-resource", "xml":"\n", "comments":"", "outputs":1, "x":664, "y":479, "z":"d3629202.0e9a9", "wires":[ [ "b6562205.a7488", "681e6bc2.d5fc84" ] ] }, { "id":"3df4d53c.54c6ca", "type":"execute", "name":"execute Properties", "xml":"\n \n \n", "comments":"", "outputs":1, "x":740, "y":368, "z":"d3629202.0e9a9", "wires":[ [ ] ] }, { "id":"c8732493.f72838", "type":"execute", "name":"generate allotted-resource url", "xml":"\n \n \n \n \n", "comments":"", "outputs":1, "x":747, "y":408, "z":"d3629202.0e9a9", "wires":[ [ ] ] }, { "id":"83bc7036.c8dd5", "type":"break", "name":"break", "xml":"\n", "comments":"", "x":3330.243507385254, "y":1504.7316856384277, "z":"d3629202.0e9a9", "wires":[ ] } ]