From a26adc924eba86198fbf91e0932023fb2f79bb0d Mon Sep 17 00:00:00 2001 From: Gaurav Agrawal Date: Thu, 5 Oct 2017 19:55:42 +0530 Subject: Deactivate flow modification for DCI Changes includes: 1) Save network information SDNC's MD-SAL data store 2) Send network-id & network-object-path in network-topology-operation-output 3) Deactivation based on stored network-id Change-Id: I4498d33e9e7921e047bfe9dff8c9801153f5f5f4 Issue-Id: SDNC-113 Signed-off-by: Gaurav Agrawal Former-commit-id: 4d38cecf0f03e1244ca0c605c5802632b36f3b82 --- ...ects-network-topology-operation-deactivate.json | 605 +++++++++++++-------- 1 file changed, 381 insertions(+), 224 deletions(-) (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json') diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json index 960679ff..cfccd825 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json @@ -1,20 +1,20 @@ [ { - "id":"b4ab3cc5.98a8", + "id":"148f01b9.7651be", "type":"dgstart", "name":"DGSTART", "outputs":1, - "x":77, - "y":35, - "z":"4954cd5d.30ecf4", + "x":127.66666412353516, + "y":59.666664123535156, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "e6efa6d3.e15398" + "75389724.73d1d8" ] ] }, { - "id":"e6efa6d3.e15398", + "id":"75389724.73d1d8", "type":"service-logic", "name":"GENERIC-RESOURCE-API ${project.version}", "module":"GENERIC-RESOURCE-API", @@ -22,62 +22,61 @@ "comments":"", "xml":"", "outputs":1, - "x":338, - "y":106, - "z":"4954cd5d.30ecf4", + "x":388.66666412353516, + "y":130.66666412353516, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "55bb413f.73fa7" + "c572bb07.b4aab8" ] ] }, { - "id":"55bb413f.73fa7", + "id":"c572bb07.b4aab8", "type":"method", "name":"method dci-connects-network-topology-operation-deactivate", "xml":"\n", "comments":"", "outputs":1, - "x":228, - "y":191, - "z":"4954cd5d.30ecf4", + "x":278.66666412353516, + "y":215.66666412353516, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "750ee4c.8fdd21c" + "2e7d9d36.9e8932" ] ] }, { - "id":"750ee4c.8fdd21c", + "id":"2e7d9d36.9e8932", "type":"block", "name":"block : atomic", "xml":"", "atomic":"true", "outputs":1, - "x":527, - "y":185, - "z":"4954cd5d.30ecf4", + "x":613.6666793823242, + "y":215.66667366027832, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "ea6f8a69.5601e8", - "2f344129.2fe78e", - "33c821d9.b212fe", - "15fa4d45.d0b353", - "7e978ea8.0c5a1", - "a04a290c.948ab8" + "b8044390.c16c5", + "d126698a.8dba88", + "3c585b18.c1b394", + "17e0f0e1.f4a85f", + "c13afebf.e4af7" ] ] }, { - "id":"ea6f8a69.5601e8", + "id":"b8044390.c16c5", "type":"call", "name":"call GENERIC-RESOURCE-API:validate-network-input-parameters", "xml":"\n", "comments":"", "outputs":1, - "x":898, - "y":60, - "z":"4954cd5d.30ecf4", + "x":948.6666641235352, + "y":84.66666412353516, + "z":"b8d6a9b7.54bca8", "wires":[ [ @@ -85,420 +84,578 @@ ] }, { - "id":"2f344129.2fe78e", + "id":"d126698a.8dba88", "type":"returnSuccess", "name":"return success", "xml":"\n\n\n\n", "comments":"", - "x":763.9999771118164, - "y":838.9999732971191, - "z":"4954cd5d.30ecf4", + "x":814.6666412353516, + "y":863.6666374206543, + "z":"b8d6a9b7.54bca8", "wires":[ ] }, { - "id":"33c821d9.b212fe", - "type":"get-resource", - "name":"get-resource dci-connects", - "xml":"\n", + "id":"a0179072.b0699", + "type":"block", + "name":"block : sendRequest", + "xml":"", + "atomic":"true", "comments":"", "outputs":1, - "x":803.9999847412109, - "y":306.9999887943268, - "z":"4954cd5d.30ecf4", + "x":1010.1666946411133, + "y":559.1823291778564, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "bcbac350.046e5", - "bcb8c268.c1efd", - "95a7f0ae.33df5" + "2004f909.4303c6", + "8f1e5d77.2d978", + "db4a772d.b48518", + "a9badb26.f8ff08" ] ] }, { - "id":"bcbac350.046e5", + "id":"48d3ef18.744f9", "type":"success", "name":"success", "xml":"\n", "comments":"", "outputs":1, - "x":1052.999984741211, - "y":270.9999887943268, - "z":"4954cd5d.30ecf4", + "x":1542.666591644287, + "y":356.1818552017212, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "9441b536.e2c908" + "f3e0b35b.ac7e6" ] ] }, { - "id":"bcb8c268.c1efd", + "id":"1f0ce6e6.d7e319", "type":"not-found", "name":"not-found", "xml":"\n", "comments":"", "outputs":1, - "x":1059.999984741211, - "y":308.9999887943268, - "z":"4954cd5d.30ecf4", + "x":1549.666591644287, + "y":394.1818552017212, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "22635f7c.d7e7a" + "25422e06.a06362" ] ] }, { - "id":"95a7f0ae.33df5", + "id":"c9371824.9cf4a8", "type":"other", "name":"other", "xml":"\n", "comments":"", "outputs":1, - "x":1051.999984741211, - "y":350.9999887943268, - "z":"4954cd5d.30ecf4", + "x":1541.666591644287, + "y":436.1818552017212, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "a0aae260.9c5c2" + "caa6b2ac.fdad4" ] ] }, { - "id":"22635f7c.d7e7a", + "id":"f3e0b35b.ac7e6", + "type":"block", + "name":"block : atomic", + "xml":"\n", + "atomic":"false", + "comments":"", + "outputs":1, + "x":1707.666591644287, + "y":345.1818552017212, + "z":"b8d6a9b7.54bca8", + "wires":[ + [ + + ] + ] + }, + { + "id":"25422e06.a06362", "type":"returnFailure", "name":"return failure", "xml":"\n\n\n", "comments":"", - "x":1216.999984741211, - "y":312.9999887943268, - "z":"4954cd5d.30ecf4", + "x":1706.666591644287, + "y":398.1818552017212, + "z":"b8d6a9b7.54bca8", "wires":[ ] }, { - "id":"a0aae260.9c5c2", + "id":"caa6b2ac.fdad4", "type":"returnFailure", "name":"return failure", "xml":"\n\n\n", "comments":"", - "x":1209.999984741211, - "y":359.9999887943268, - "z":"4954cd5d.30ecf4", + "x":1699.666591644287, + "y":445.1818552017212, + "z":"b8d6a9b7.54bca8", "wires":[ ] }, { - "id":"15fa4d45.d0b353", - "type":"block", - "name":"block : sendRequest", - "xml":"", - "atomic":"true", + "id":"2004f909.4303c6", + "type":"get-resource", + "name":"get-resource esr-thirdparty-sdnc", + "xml":"\n", "comments":"", "outputs":1, - "x":765.5, - "y":606.5156269073486, - "z":"4954cd5d.30ecf4", + "x":1318.6666793823242, + "y":403.18186211586, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "e1e92378.2c99d", - "673c8079.171c7", - "5c11d741.ea97f8" + "48d3ef18.744f9", + "1f0ce6e6.d7e319", + "c9371824.9cf4a8" ] ] }, { - "id":"c5be9b53.183ee8", - "type":"success", - "name":"success", - "xml":"\n", + "id":"8f1e5d77.2d978", + "type":"set", + "name":"set controller data", + "xml":"\n\n\n\n\n\n", "comments":"", - "outputs":1, - "x":1258.9997673034668, - "y":458.51514625549316, - "z":"4954cd5d.30ecf4", + "x":1290.1665306091309, + "y":504.6818163394928, + "z":"b8d6a9b7.54bca8", "wires":[ - [ - "c033d341.3f6dc" - ] + ] }, { - "id":"dcc81047.e0f45", - "type":"not-found", - "name":"not-found", - "xml":"\n", + "id":"fc904692.6194d8", + "type":"execute", + "name":"execute RestApiCallNode De-Activate Vxlan Tunnel", + "xml":"\n\n\n\n\n\n\n", "comments":"", "outputs":1, - "x":1265.9997673034668, - "y":496.51514625549316, - "z":"4954cd5d.30ecf4", + "x":1818.1669692993164, + "y":622.1822843551636, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "a86ff2ba.5ed55" + ] ] }, { - "id":"38f7300e.03a3f", - "type":"other", - "name":"other", - "xml":"\n", + "id":"db4a772d.b48518", + "type":"switchNode", + "name":"switch tunnelType", + "xml":"\n", "comments":"", "outputs":1, - "x":1257.9997673034668, - "y":538.5151462554932, - "z":"4954cd5d.30ecf4", + "x":1281.1664276123047, + "y":646.6817951202393, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "d2f0ad9e.7cf8d" + "435458d3.7f7428", + "ac616ba.5114198" ] ] }, { - "id":"c033d341.3f6dc", - "type":"block", - "name":"block : atomic", - "xml":"\n", - "atomic":"false", + "id":"435458d3.7f7428", + "type":"outcomeTrue", + "name":"L3-DCI", + "xml":"\n", "comments":"", "outputs":1, - "x":1423.9997673034668, - "y":447.51514625549316, - "z":"4954cd5d.30ecf4", + "x":1494.1665573120117, + "y":626.6817951202393, + "z":"b8d6a9b7.54bca8", "wires":[ [ - + "fc904692.6194d8" ] ] }, { - "id":"a86ff2ba.5ed55", - "type":"returnFailure", - "name":"return failure", - "xml":"\n\n\n", + "id":"ac616ba.5114198", + "type":"outcomeTrue", + "name":"L2-DCI", + "xml":"\n", "comments":"", - "x":1422.9997673034668, - "y":500.51514625549316, - "z":"4954cd5d.30ecf4", + "outputs":1, + "x":1492.1663780212402, + "y":698.6817951202393, + "z":"b8d6a9b7.54bca8", "wires":[ - + [ + "43446998.00c4b8" + ] ] }, { - "id":"d2f0ad9e.7cf8d", - "type":"returnFailure", - "name":"return failure", - "xml":"\n\n\n", + "id":"43446998.00c4b8", + "type":"execute", + "name":"execute RestApiCallNode De-Activate Vxlan Tunnel", + "xml":"\n\n\n\n\n\n", "comments":"", - "x":1415.9997673034668, - "y":547.5151462554932, - "z":"4954cd5d.30ecf4", + "outputs":1, + "x":1812.1669235229492, + "y":699.1822204589844, + "z":"b8d6a9b7.54bca8", "wires":[ + [ + ] ] }, { - "id":"e1e92378.2c99d", - "type":"get-resource", - "name":"get-resource dci-connects", - "xml":"\n", + "id":"f950c622.50d2c8", + "type":"for", + "name":"for each network-input-parameters", + "xml":"\n\n", "comments":"", "outputs":1, - "x":1070.9998893737793, - "y":505.5151653289795, - "z":"4954cd5d.30ecf4", + "x":1072.666648864746, + "y":160.18229579925537, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "c5be9b53.183ee8", - "dcc81047.e0f45", - "38f7300e.03a3f" + "2803809e.cd6f9" ] ] }, { - "id":"673c8079.171c7", - "type":"set", - "name":"set controller data", - "xml":"\n\n\n\n\n\n", + "id":"a9badb26.f8ff08", + "type":"record", + "name":"record", + "xml":"\n\n\n\n\n\n\n\n\n\n\n", "comments":"", - "x":1042.499740600586, - "y":607.0151195526123, - "z":"4954cd5d.30ecf4", + "outputs":1, + "x":1255.0000305175781, + "y":578.6666641235352, + "z":"b8d6a9b7.54bca8", "wires":[ + [ + ] ] }, { - "id":"2589b144.7be4de", - "type":"execute", - "name":"execute RestApiCallNode De-Activate Vxlan Tunnel", - "xml":"\n\n\n\n\n\n\n", + "id":"2803809e.cd6f9", + "type":"block", + "name":"block", + "xml":"\n", + "atomic":"false", "comments":"", "outputs":1, - "x":1573.5002746582031, - "y":669.5155820846558, - "z":"4954cd5d.30ecf4", + "x":1306.0000915527344, + "y":159.6666717529297, + "z":"b8d6a9b7.54bca8", "wires":[ [ - + "b059e691.786878", + "e3c86ec7.af8ef" ] ] }, { - "id":"5c11d741.ea97f8", + "id":"b059e691.786878", "type":"switchNode", - "name":"switch tunnelType", - "xml":"\n", + "name":"switch site1_id", + "xml":"\n", "comments":"", "outputs":1, - "x":1036.4997329711914, - "y":694.0150928497314, - "z":"4954cd5d.30ecf4", + "x":1512.3333015441895, + "y":128.66666793823242, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "6492045a.52a02c", - "647c96d8.6f1708" + "6b8958be.1a4d18" ] ] }, { - "id":"6492045a.52a02c", + "id":"6b8958be.1a4d18", "type":"outcomeTrue", - "name":"L3-DCI", - "xml":"\n", + "name":"true", + "xml":"\n", "comments":"", "outputs":1, - "x":1249.4998626708984, - "y":674.0150928497314, - "z":"4954cd5d.30ecf4", + "x":1713.333396911621, + "y":127.6666669845581, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "2589b144.7be4de" + "4c747d09.9d8e34" ] ] }, { - "id":"647c96d8.6f1708", - "type":"outcomeTrue", - "name":"L2-DCI", - "xml":"\n", + "id":"4c747d09.9d8e34", + "type":"set", + "name":"set id", + "xml":"\n\n", "comments":"", - "outputs":1, - "x":1247.499683380127, - "y":746.0150928497314, - "z":"4954cd5d.30ecf4", + "x":1886.9997482299805, + "y":127.33321189880371, + "z":"b8d6a9b7.54bca8", "wires":[ - [ - "4fb66e63.84804" - ] + ] }, { - "id":"4fb66e63.84804", - "type":"execute", - "name":"execute RestApiCallNode De-Activate Vxlan Tunnel", - "xml":"\n\n\n\n\n\n", + "id":"e3c86ec7.af8ef", + "type":"switchNode", + "name":"switch tunnelType", + "xml":"\n", "comments":"", "outputs":1, - "x":1567.500228881836, - "y":746.5155181884766, - "z":"4954cd5d.30ecf4", + "x":1522.333381652832, + "y":181.6666738986969, + "z":"b8d6a9b7.54bca8", "wires":[ [ - + "53a3a5f5.60a92c" ] ] }, { - "id":"7e978ea8.0c5a1", - "type":"record", - "name":"record", - "xml":"\n\n\n\n\n\n\n", + "id":"53a3a5f5.60a92c", + "type":"outcomeTrue", + "name":"true", + "xml":"\n", "comments":"", "outputs":1, - "x":739, - "y":429.0000171661377, - "z":"4954cd5d.30ecf4", + "x":1728.333381652832, + "y":181.6666738986969, + "z":"b8d6a9b7.54bca8", "wires":[ [ - + "e41570df.a2318" ] ] }, { - "id":"9441b536.e2c908", + "id":"e41570df.a2318", "type":"set", "name":"set tunnelType", - "xml":"\n\n", + "xml":"\n\n", "comments":"", - "x":1241.0000839233398, - "y":260.51568603515625, - "z":"4954cd5d.30ecf4", + "x":1897.333480834961, + "y":181.66668915748596, + "z":"b8d6a9b7.54bca8", "wires":[ ] }, { - "id":"a04a290c.948ab8", + "id":"3c585b18.c1b394", + "type":"block", + "name":"block : executeSite1", + "xml":"", + "atomic":"true", + "comments":"", + "outputs":1, + "x":802, + "y":161.3333282470703, + "z":"b8d6a9b7.54bca8", + "wires":[ + [ + "f950c622.50d2c8", + "a0179072.b0699" + ] + ] + }, + { + "id":"3cc5f533.01012a", "type":"for", "name":"for each network-input-parameters", - "xml":"\n\n", + "xml":"\n\n", + "comments":"", + "outputs":1, + "x":1077.666732788086, + "y":266.3332996368408, + "z":"b8d6a9b7.54bca8", + "wires":[ + [ + "38542283.614a3e" + ] + ] + }, + { + "id":"38542283.614a3e", + "type":"block", + "name":"block", + "xml":"\n", + "atomic":"false", "comments":"", "outputs":1, - "x":791, - "y":180.51562690734863, - "z":"4954cd5d.30ecf4", + "x":1306.000099182129, + "y":268.81767559051514, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "ecdadcb9.f534b" + "4cb30828.1cc3b8" ] ] }, { - "id":"ecdadcb9.f534b", + "id":"4cb30828.1cc3b8", "type":"switchNode", - "name":"switch id", - "xml":"\n", + "name":"switch site2_id", + "xml":"\n", "comments":"", "outputs":1, - "x":1045.500099182129, - "y":181.5156364440918, - "z":"4954cd5d.30ecf4", + "x":1507.0000495910645, + "y":268.8176612854004, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "6f6c6213.b682dc" + "dd6bc853.9b86f8" ] ] }, { - "id":"6f6c6213.b682dc", + "id":"dd6bc853.9b86f8", "type":"outcomeTrue", "name":"true", "xml":"\n", "comments":"", "outputs":1, - "x":1247.5002250671387, - "y":180.51565170288086, - "z":"4954cd5d.30ecf4", + "x":1708.000144958496, + "y":267.8176603317261, + "z":"b8d6a9b7.54bca8", "wires":[ [ - "9c537412.9158a8" + "eabf42ba.5e4d4" ] ] }, { - "id":"9c537412.9158a8", + "id":"eabf42ba.5e4d4", "type":"set", "name":"set id", - "xml":"\n\n", + "xml":"\n\n", + "comments":"", + "x":1881.6664962768555, + "y":267.4842052459717, + "z":"b8d6a9b7.54bca8", + "wires":[ + + ] + }, + { + "id":"17e0f0e1.f4a85f", + "type":"block", + "name":"block : executeSite1", + "xml":"", + "atomic":"true", + "comments":"", + "outputs":1, + "x":802.0000076293945, + "y":270.48433208465576, + "z":"b8d6a9b7.54bca8", + "wires":[ + [ + "3cc5f533.01012a", + "a0179072.b0699" + ] + ] + }, + { + "id":"ba49b6c1.a72218", + "type":"set", + "name":"set object-path", + "xml":"\n\n \n", + "comments":"", + "x":1117.0039901733398, + "y":791.5274066925049, + "z":"b8d6a9b7.54bca8", + "wires":[ + + ] + }, + { + "id":"378e343e.0cb45c", + "type":"set", + "name":"set networkId", + "xml":"\n\n", + "comments":"", + "x":1111.289623260498, + "y":754.3845148086548, + "z":"b8d6a9b7.54bca8", + "wires":[ + + ] + }, + { + "id":"c13afebf.e4af7", + "type":"block", + "name":"block : saveNetworkData", + "xml":"", + "atomic":"true", + "comments":"", + "outputs":1, + "x":854.0000610351562, + "y":730.3333559036255, + "z":"b8d6a9b7.54bca8", + "wires":[ + [ + "378e343e.0cb45c", + "ba49b6c1.a72218", + "44d19a8f.ba7544", + "e247e731.bf5fd8" + ] + ] + }, + { + "id":"74d41b77.b05d54", + "type":"comment", + "name":"TODO", + "info":"Currently deactivate does deletion too, later divide in two phases.", + "comments":"", + "x":736, + "y":23.666664123535156, + "z":"b8d6a9b7.54bca8", + "wires":[ + + ] + }, + { + "id":"44d19a8f.ba7544", + "type":"set", + "name":"copy input to service-data", + "xml":"\n\n\n", + "comments":"", + "x":1147.0000686645508, + "y":710.6666679382324, + "z":"b8d6a9b7.54bca8", + "wires":[ + + ] + }, + { + "id":"e247e731.bf5fd8", + "type":"set", + "name":"set network-level-oper-status", + "xml":"\n\n\n\n", "comments":"", - "x":1429.1666069030762, - "y":179.18220138549805, - "z":"4954cd5d.30ecf4", + "x":1161, + "y":838.6666259765625, + "z":"b8d6a9b7.54bca8", "wires":[ ] } -] +] \ No newline at end of file -- cgit 1.2.3-korg