From 4d9351b103c6de276a716df637eac181584e3b95 Mon Sep 17 00:00:00 2001 From: Gaurav Agrawal Date: Thu, 28 Sep 2017 19:38:52 +0530 Subject: Update DG network-topology-operation-deactivate Following changes are included: 1) Handle l2 and l3 dci. 2) Fetch 3rd parth controller information using site-id. 3) Fetch siteId from parameter list. Change-Id: Ibd6b7520f96dbadcb2ffd440fe9687e86d7e558f Issue-Id: SDNC-104 Signed-off-by: Gaurav Agrawal Former-commit-id: 68505f52197cc6d7bbc804c9b9f38f3b8886fe66 --- ...ects-network-topology-operation-deactivate.json | 504 +++++++++++++++++++++ ...ects-network-topology-operation-deactivate.json | 310 ------------- ...nects-network-topology-operation-deactivate.xml | 95 ++++ ...nects-network-topology-operation-deactivate.xml | 69 --- 4 files changed, 599 insertions(+), 379 deletions(-) create mode 100644 platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json delete mode 100644 platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-deactivate.json create mode 100644 platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.xml delete mode 100644 platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-deactivate.xml 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 new file mode 100644 index 00000000..6fafe879 --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json @@ -0,0 +1,504 @@ +[ + { + "id":"eeae4316.cdec", + "type":"dgstart", + "name":"DGSTART", + "outputs":1, + "x":115.515625, + "y":122.99999809265137, + "z":"2933569e.30217a", + "wires":[ + [ + "7ad6aab3.a56c94" + ] + ] + }, + { + "id":"7ad6aab3.a56c94", + "type":"service-logic", + "name":"GENERIC-RESOURCE-API ${project.version}", + "module":"GENERIC-RESOURCE-API", + "version":"${project.version}", + "comments":"", + "xml":"", + "outputs":1, + "x":376.515625, + "y":193.99999809265137, + "z":"2933569e.30217a", + "wires":[ + [ + "bd801194.dff35" + ] + ] + }, + { + "id":"bd801194.dff35", + "type":"method", + "name":"method network-topology-operation-deactivate", + "xml":"\n", + "comments":"", + "outputs":1, + "x":266.515625, + "y":278.99999809265137, + "z":"2933569e.30217a", + "wires":[ + [ + "8b1d6765.c218b8" + ] + ] + }, + { + "id":"8b1d6765.c218b8", + "type":"block", + "name":"block : atomic", + "xml":"", + "atomic":"true", + "outputs":1, + "x":565.515625, + "y":272.99999809265137, + "z":"2933569e.30217a", + "wires":[ + [ + "85df938d.13ecb", + "b2094172.75092", + "13babe31.b69a72", + "f439b4ae.e8d898", + "4f2b1067.595de", + "8fe14514.6a6bc8" + ] + ] + }, + { + "id":"85df938d.13ecb", + "type":"call", + "name":"call GENERIC-RESOURCE-API:validate-network-input-parameters", + "xml":"\n", + "comments":"", + "outputs":1, + "x":936.515625, + "y":147.99999809265137, + "z":"2933569e.30217a", + "wires":[ + [ + + ] + ] + }, + { + "id":"b2094172.75092", + "type":"returnSuccess", + "name":"return success", + "xml":"\n\n\n\n", + "comments":"", + "x":802.5156021118164, + "y":926.9999713897705, + "z":"2933569e.30217a", + "wires":[ + + ] + }, + { + "id":"13babe31.b69a72", + "type":"get-resource", + "name":"get-resource l3-dci-connects", + "xml":"\n", + "comments":"", + "outputs":1, + "x":842.5156097412109, + "y":394.99998688697815, + "z":"2933569e.30217a", + "wires":[ + [ + "ff781717.68c208", + "9a6836ab.43f888", + "a0abee05.64d97" + ] + ] + }, + { + "id":"ff781717.68c208", + "type":"success", + "name":"success", + "xml":"\n", + "comments":"", + "outputs":1, + "x":1091.515609741211, + "y":358.99998688697815, + "z":"2933569e.30217a", + "wires":[ + [ + "5e87a4a5.a7530c" + ] + ] + }, + { + "id":"9a6836ab.43f888", + "type":"not-found", + "name":"not-found", + "xml":"\n", + "comments":"", + "outputs":1, + "x":1098.515609741211, + "y":396.99998688697815, + "z":"2933569e.30217a", + "wires":[ + [ + "5ebdd537.9ec61c" + ] + ] + }, + { + "id":"a0abee05.64d97", + "type":"other", + "name":"other", + "xml":"\n", + "comments":"", + "outputs":1, + "x":1090.515609741211, + "y":438.99998688697815, + "z":"2933569e.30217a", + "wires":[ + [ + "50c37e9e.947eb" + ] + ] + }, + { + "id":"5ebdd537.9ec61c", + "type":"returnFailure", + "name":"return failure", + "xml":"\n\n\n", + "comments":"", + "x":1255.515609741211, + "y":400.99998688697815, + "z":"2933569e.30217a", + "wires":[ + + ] + }, + { + "id":"50c37e9e.947eb", + "type":"returnFailure", + "name":"return failure", + "xml":"\n\n\n", + "comments":"", + "x":1248.515609741211, + "y":447.99998688697815, + "z":"2933569e.30217a", + "wires":[ + + ] + }, + { + "id":"f439b4ae.e8d898", + "type":"block", + "name":"block : sendRequest", + "xml":"", + "atomic":"true", + "comments":"", + "outputs":1, + "x":804.015625, + "y":694.515625, + "z":"2933569e.30217a", + "wires":[ + [ + "8b5b23cb.a33ca", + "f4a22786.a36188", + "c94f0b3c.ea6228" + ] + ] + }, + { + "id":"1b157d61.6e8663", + "type":"success", + "name":"success", + "xml":"\n", + "comments":"", + "outputs":1, + "x":1297.5153923034668, + "y":546.5151443481445, + "z":"2933569e.30217a", + "wires":[ + [ + "1b1e8622.49dc9a" + ] + ] + }, + { + "id":"96522a7e.300418", + "type":"not-found", + "name":"not-found", + "xml":"\n", + "comments":"", + "outputs":1, + "x":1304.5153923034668, + "y":584.5151443481445, + "z":"2933569e.30217a", + "wires":[ + [ + "656e7a99.f99cc4" + ] + ] + }, + { + "id":"a258e00f.28592", + "type":"other", + "name":"other", + "xml":"\n", + "comments":"", + "outputs":1, + "x":1296.5153923034668, + "y":626.5151443481445, + "z":"2933569e.30217a", + "wires":[ + [ + "d5ca22dc.f5439" + ] + ] + }, + { + "id":"1b1e8622.49dc9a", + "type":"block", + "name":"block : atomic", + "xml":"\n", + "atomic":"false", + "comments":"", + "outputs":1, + "x":1462.5153923034668, + "y":535.5151443481445, + "z":"2933569e.30217a", + "wires":[ + [ + + ] + ] + }, + { + "id":"656e7a99.f99cc4", + "type":"returnFailure", + "name":"return failure", + "xml":"\n\n\n", + "comments":"", + "x":1461.5153923034668, + "y":588.5151443481445, + "z":"2933569e.30217a", + "wires":[ + + ] + }, + { + "id":"d5ca22dc.f5439", + "type":"returnFailure", + "name":"return failure", + "xml":"\n\n\n", + "comments":"", + "x":1454.5153923034668, + "y":635.5151443481445, + "z":"2933569e.30217a", + "wires":[ + + ] + }, + { + "id":"8b5b23cb.a33ca", + "type":"get-resource", + "name":"get-resource dci-connects", + "xml":"\n", + "comments":"", + "outputs":1, + "x":1109.5155143737793, + "y":593.5151634216309, + "z":"2933569e.30217a", + "wires":[ + [ + "1b157d61.6e8663", + "96522a7e.300418", + "a258e00f.28592" + ] + ] + }, + { + "id":"f4a22786.a36188", + "type":"set", + "name":"set controller data", + "xml":"\n\n\n\n\n\n", + "comments":"", + "x":1081.015365600586, + "y":695.0151176452637, + "z":"2933569e.30217a", + "wires":[ + + ] + }, + { + "id":"3f552595.383f8a", + "type":"execute", + "name":"execute RestApiCallNode Activate Vxlan Tunnel", + "xml":"\n\n\n\n\n\n\n", + "comments":"", + "outputs":1, + "x":1612.0158996582031, + "y":757.5155801773071, + "z":"2933569e.30217a", + "wires":[ + [ + + ] + ] + }, + { + "id":"c94f0b3c.ea6228", + "type":"switchNode", + "name":"switch tunnelType", + "xml":"\n", + "comments":"", + "outputs":1, + "x":1075.0153579711914, + "y":782.0150909423828, + "z":"2933569e.30217a", + "wires":[ + [ + "914d6e77.2cf0c", + "3cebe90a.101a76" + ] + ] + }, + { + "id":"914d6e77.2cf0c", + "type":"outcomeTrue", + "name":"L3-DCI", + "xml":"\n", + "comments":"", + "outputs":1, + "x":1288.0154876708984, + "y":762.0150909423828, + "z":"2933569e.30217a", + "wires":[ + [ + "3f552595.383f8a" + ] + ] + }, + { + "id":"3cebe90a.101a76", + "type":"outcomeTrue", + "name":"L2-DCI", + "xml":"\n", + "comments":"", + "outputs":1, + "x":1286.015308380127, + "y":834.0150909423828, + "z":"2933569e.30217a", + "wires":[ + [ + "b5ca32ee.3260d" + ] + ] + }, + { + "id":"b5ca32ee.3260d", + "type":"execute", + "name":"execute RestApiCallNode Activate Vxlan Tunnel", + "xml":"\n\n\n\n\n\n", + "comments":"", + "outputs":1, + "x":1606.015853881836, + "y":834.5155162811279, + "z":"2933569e.30217a", + "wires":[ + [ + + ] + ] + }, + { + "id":"4f2b1067.595de", + "type":"record", + "name":"record", + "xml":"\n\n\n\n\n\n", + "comments":"", + "outputs":1, + "x":777.515625, + "y":517.0000152587891, + "z":"2933569e.30217a", + "wires":[ + [ + + ] + ] + }, + { + "id":"5e87a4a5.a7530c", + "type":"set", + "name":"set tunnelType", + "xml":"\n\n", + "comments":"", + "x":1279.5157089233398, + "y":348.5156841278076, + "z":"2933569e.30217a", + "wires":[ + + ] + }, + { + "id":"8fe14514.6a6bc8", + "type":"for", + "name":"for each network-input-parameters", + "xml":"\n\n", + "comments":"", + "outputs":1, + "x":829.515625, + "y":268.515625, + "z":"2933569e.30217a", + "wires":[ + [ + "9bafb819.fdc5e8" + ] + ] + }, + { + "id":"9bafb819.fdc5e8", + "type":"switchNode", + "name":"switch id", + "xml":"\n", + "comments":"", + "outputs":1, + "x":1084.015724182129, + "y":269.51563453674316, + "z":"2933569e.30217a", + "wires":[ + [ + "773bba4f.547604" + ] + ] + }, + { + "id":"773bba4f.547604", + "type":"outcomeTrue", + "name":"true", + "xml":"\n", + "comments":"", + "outputs":1, + "x":1286.0158500671387, + "y":268.5156497955322, + "z":"2933569e.30217a", + "wires":[ + [ + "f4c8640f.9553e8" + ] + ] + }, + { + "id":"f4c8640f.9553e8", + "type":"set", + "name":"set id", + "xml":"\n\n", + "comments":"", + "x":1467.6822319030762, + "y":267.1821994781494, + "z":"2933569e.30217a", + "wires":[ + + ] + } +] \ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-deactivate.json deleted file mode 100644 index 11eb0b77..00000000 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-deactivate.json +++ /dev/null @@ -1,310 +0,0 @@ -[ - { - "id": "eccff5d7.133008", - "type": "dgstart", - "name": "DGSTART", - "outputs": 1, - "x": 197.57144165039062, - "y": 164.71429443359375, - "z": "ff7b9140.00847", - "wires": [ - [ - "6e5507cf.91aaf8" - ] - ] - }, - { - "id": "6e5507cf.91aaf8", - "type": "service-logic", - "name": "GENERIC-RESOURCE-API ${project.version}", - "module": "GENERIC-RESOURCE-API", - "version": "${project.version}", - "comments": "", - "xml": "", - "outputs": 1, - "x": 458.5714416503906, - "y": 235.71429443359375, - "z": "ff7b9140.00847", - "wires": [ - [ - "794cc996.86b338" - ] - ] - }, - { - "id": "794cc996.86b338", - "type": "method", - "name": "method network-topology-operation-deactivate", - "xml": "\n", - "comments": "", - "outputs": 1, - "x": 348.5714416503906, - "y": 320.71429443359375, - "z": "ff7b9140.00847", - "wires": [ - [ - "27ce9933.d83166" - ] - ] - }, - { - "id": "27ce9933.d83166", - "type": "block", - "name": "block : atomic", - "xml": "", - "atomic": "true", - "outputs": 1, - "x": 647.5714416503906, - "y": 314.71429443359375, - "z": "ff7b9140.00847", - "wires": [ - [ - "8fe3f7a2.701c08", - "f07d07dd.0f82f8", - "52830e26.ad7cf", - "5dce8f7d.a2317", - "b970ed31.468f1", - "b9373240.46c8d", - "95a62a7c.6a59d8" - ] - ] - }, - { - "id": "8fe3f7a2.701c08", - "type": "call", - "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters", - "xml": "\n", - "comments": "", - "outputs": 1, - "x": 1018.5714416503906, - "y": 189.71429443359375, - "z": "ff7b9140.00847", - "wires": [ - [] - ] - }, - { - "id": "f07d07dd.0f82f8", - "type": "get-resource", - "name": "get-resource l3-dci-connects", - "xml": "\n", - "comments": "", - "outputs": 1, - "x": 905.5714416503906, - "y": 291.71429443359375, - "z": "ff7b9140.00847", - "wires": [ - [ - "ab4b1556.54b4e8", - "5e6324b6.a19cdc", - "cfaa7aaf.305588" - ] - ] - }, - { - "id": "ab4b1556.54b4e8", - "type": "success", - "name": "success", - "xml": "\n", - "comments": "", - "outputs": 1, - "x": 1154.5714416503906, - "y": 255.71429443359375, - "z": "ff7b9140.00847", - "wires": [ - [ - "d103d67c.2efc28" - ] - ] - }, - { - "id": "5e6324b6.a19cdc", - "type": "not-found", - "name": "not-found", - "xml": "\n", - "comments": "", - "outputs": 1, - "x": 1161.5714416503906, - "y": 293.71429443359375, - "z": "ff7b9140.00847", - "wires": [ - [ - "da6bfe10.2594" - ] - ] - }, - { - "id": "cfaa7aaf.305588", - "type": "other", - "name": "other", - "xml": "\n", - "comments": "", - "outputs": 1, - "x": 1153.5714416503906, - "y": 335.71429443359375, - "z": "ff7b9140.00847", - "wires": [ - [ - "557aad8d.aa8554" - ] - ] - }, - { - "id": "d103d67c.2efc28", - "type": "block", - "name": "block : atomic", - "xml": "\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1319.5714416503906, - "y": 244.71429443359375, - "z": "ff7b9140.00847", - "wires": [ - [] - ] - }, - { - "id": "da6bfe10.2594", - "type": "returnFailure", - "name": "return failure", - "xml": "\n\n\n", - "comments": "", - "x": 1318.5714416503906, - "y": 297.71429443359375, - "z": "ff7b9140.00847", - "wires": [] - }, - { - "id": "557aad8d.aa8554", - "type": "returnFailure", - "name": "return failure", - "xml": "\n\n\n", - "comments": "", - "x": 1311.5714416503906, - "y": 344.71429443359375, - "z": "ff7b9140.00847", - "wires": [] - }, - { - "id": "52830e26.ad7cf", - "type": "record", - "name": "record", - "xml": "\n\n\n\n\n\n", - "comments": "", - "outputs": 1, - "x": 843.5714416503906, - "y": 355.71429443359375, - "z": "ff7b9140.00847", - "wires": [ - [] - ] - }, - { - "id": "5dce8f7d.a2317", - "type": "set", - "name": "set controller data", - "xml": "\n\n\n\n\n\n", - "comments": "", - "x": 876.5714416503906, - "y": 416.71429443359375, - "z": "ff7b9140.00847", - "wires": [] - }, - { - "id": "b9373240.46c8d", - "type": "execute", - "name": "execute RestApiCallNode Deactivate Vxlan Tunnel", - "xml": "\n\n\n\n\n\n\n", - "comments": "", - "outputs": 1, - "x": 986.5714416503906, - "y": 587.7142944335938, - "z": "ff7b9140.00847", - "wires": [ - [] - ] - }, - { - "id": "b970ed31.468f1", - "type": "switchNode", - "name": "switch id is null", - "xml": "\n", - "comments": "", - "outputs": 1, - "x": 866.5714416503906, - "y": 473.71429443359375, - "z": "ff7b9140.00847", - "wires": [ - [ - "8114f571.7eeb08", - "3c8b92a1.c3746e" - ] - ] - }, - { - "id": "8114f571.7eeb08", - "type": "outcome", - "name": "outcome null", - "xml": "\n", - "comments": "", - "outputs": 1, - "x": 1040.5714416503906, - "y": 474.71429443359375, - "z": "ff7b9140.00847", - "wires": [ - [ - "219cc125.de633e" - ] - ] - }, - { - "id": "219cc125.de633e", - "type": "returnFailure", - "name": "return failure", - "xml": "\n\n\n", - "comments": "", - "x": 1211.5714416503906, - "y": 471.71429443359375, - "z": "ff7b9140.00847", - "wires": [] - }, - { - "id": "3c8b92a1.c3746e", - "type": "outcomeTrue", - "name": "true", - "xml": "\n", - "comments": "", - "outputs": 1, - "x": 1019.5714416503906, - "y": 523.7142944335938, - "z": "ff7b9140.00847", - "wires": [ - [ - "ef920fd.f106df" - ] - ] - }, - { - "id": "ef920fd.f106df", - "type": "set", - "name": "set id", - "xml": "\n\n", - "comments": "", - "x": 1196.5714416503906, - "y": 518.7142944335938, - "z": "ff7b9140.00847", - "wires": [] - }, - { - "id": "95a62a7c.6a59d8", - "type": "returnSuccess", - "name": "return success", - "xml": "\n\n\n\n", - "comments": "", - "x": 872.5714416503906, - "y": 655.7142944335938, - "z": "ff7b9140.00847", - "wires": [] - } -] \ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.xml new file mode 100644 index 00000000..d9c3fbb3 --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-deactivate.xml deleted file mode 100644 index da74ae8d..00000000 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-deactivate.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file -- cgit 1.2.3-korg