add zte esr-thirdparty-sdnc discovery logic
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_esr-thirdparty-sdnc-of-zte.json
index 0e93be6..4212c38 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "c4dfa871.acfb38", \r
+        "id": "78797449.a69d64", \r
         "type": "dgstart", \r
         "name": "DGSTART", \r
         "outputs": 1, \r
-        "x": 131\r
-        "y": 100\r
-        "z": "b1682cba.152", \r
+        "x": 95\r
+        "y": 72\r
+        "z": "eab52334.be231", \r
         "wires": [\r
             [\r
-                "b06bc6e2.9ba258"\r
+                "77d260.33eeb5a"\r
             ]\r
         ]\r
     }, \r
     {\r
-        "id": "b06bc6e2.9ba258", \r
+        "id": "77d260.33eeb5a", \r
         "type": "service-logic", \r
         "name": "DataChange ${project.version}", \r
         "module": "DataChange", \r
         "comments": "", \r
         "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='DataChange' version='${project.version}'>", \r
         "outputs": 1, \r
-        "x": 275\r
-        "y": 213\r
-        "z": "b1682cba.152", \r
+        "x": 239\r
+        "y": 185\r
+        "z": "eab52334.be231", \r
         "wires": [\r
             [\r
-                "94182378.e4944"\r
+                "63d24477.5e1d24"\r
             ]\r
         ]\r
     }, \r
     {\r
-        "id": "94182378.e4944", \r
+        "id": "63d24477.5e1d24", \r
         "type": "method", \r
         "name": "method esr-thirdparty-sdnc-of-zte", \r
         "xml": "<method rpc='esr-thirdparty-sdnc-of-zte' mode='sync'>\n", \r
         "comments": "", \r
         "outputs": 1, \r
-        "x": 200, \r
-        "y": 327, \r
-        "z": "b1682cba.152", \r
+        "x": 164, \r
+        "y": 299, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "f10c2099.6d37a"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "f10c2099.6d37a", \r
+        "type": "block", \r
+        "name": "block : atomic", \r
+        "xml": "<block atomic='true'>", \r
+        "atomic": "true", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 93, \r
+        "y": 433, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "c6e14b97.61ebb8", \r
+                "336b2c1.b23ca54", \r
+                "ebdf7595.352788", \r
+                "bd214a4f.a0427"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "c6e14b97.61ebb8", \r
+        "type": "call", \r
+        "name": "call validate-esr-thirdparty-sdnc-input", \r
+        "xml": "<call module='DataChange' rpc='validate-esr-thirdparty-sdnc-input' mode='sync' >\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 451, \r
+        "y": 368, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [ ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "336b2c1.b23ca54", \r
+        "type": "for", \r
+        "name": "for 0..key-data_length", \r
+        "xml": "<for index='idx' start='0' end='`$data-change-notification-input.key-data_length`' >\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 354, \r
+        "y": 438, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "75c90043.ea9e58"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "75c90043.ea9e58", \r
+        "type": "block", \r
+        "name": "block", \r
+        "xml": "<block>\n", \r
+        "atomic": "false", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 545, \r
+        "y": 439, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "128f1b66.00dc0d", \r
+                "c1d27f5c.c264f8", \r
+                "1a08949.79fd66b", \r
+                "8cc1f05e.92f468", \r
+                "25639564.010e22", \r
+                "7b8ba016.fbb3e8"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "128f1b66.00dc0d", \r
+        "type": "switchNode", \r
+        "name": "switch service-url", \r
+        "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'service-url'`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 754, \r
+        "y": 370, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "a2c28074.c9e3a8"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "c1d27f5c.c264f8", \r
+        "type": "switchNode", \r
+        "name": "switch user-name", \r
+        "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'user-name'`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 754, \r
+        "y": 433, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "1403e272.365546"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "1a08949.79fd66b", \r
+        "type": "switchNode", \r
+        "name": "switch password", \r
+        "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'password'`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 750, \r
+        "y": 492, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "ad2ddd93.50432"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "8cc1f05e.92f468", \r
+        "type": "switchNode", \r
+        "name": "switch esr-system-info-id", \r
+        "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'esr-system-info-id'`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 777, \r
+        "y": 555, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "e0b54647.aef0b8"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "25639564.010e22", \r
+        "type": "switchNode", \r
+        "name": "switch thirdparty-sdnc-id", \r
+        "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'thirdparty-sdnc-id'`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 776, \r
+        "y": 616, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "ec3c7d9e.1913d8"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "7b8ba016.fbb3e8", \r
+        "type": "switchNode", \r
+        "name": "switch type", \r
+        "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'type'`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 735, \r
+        "y": 683, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "10575d8e.fe0d6a"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "a2c28074.c9e3a8", \r
+        "type": "outcomeTrue", \r
+        "name": "true", \r
+        "xml": "<outcome value='true'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 973, \r
+        "y": 370, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "767b34d1.0a080c"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "1403e272.365546", \r
+        "type": "outcomeTrue", \r
+        "name": "true", \r
+        "xml": "<outcome value='true'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 972, \r
+        "y": 432, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "92e73df5.564cf"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "ad2ddd93.50432", \r
+        "type": "outcomeTrue", \r
+        "name": "true", \r
+        "xml": "<outcome value='true'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 972, \r
+        "y": 491, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "9fc08956.e0f9c"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "e0b54647.aef0b8", \r
+        "type": "outcomeTrue", \r
+        "name": "true", \r
+        "xml": "<outcome value='true'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 972, \r
+        "y": 555, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "1343e358.22771d"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "ec3c7d9e.1913d8", \r
+        "type": "outcomeTrue", \r
+        "name": "true", \r
+        "xml": "<outcome value='true'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 969, \r
+        "y": 616, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "223f6129.11e8ee"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "10575d8e.fe0d6a", \r
+        "type": "outcomeTrue", \r
+        "name": "true", \r
+        "xml": "<outcome value='true'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 968, \r
+        "y": 682, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "a24c3d6c.c679f8"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "767b34d1.0a080c", \r
+        "type": "set", \r
+        "name": "set service-url", \r
+        "xml": "<set>\n<parameter name='zte.prop.sdncRestApi.thirdpartySdnc.url' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n", \r
+        "comments": "", \r
+        "x": 1151, \r
+        "y": 370, \r
+        "z": "eab52334.be231", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "92e73df5.564cf", \r
+        "type": "set", \r
+        "name": "set user", \r
+        "xml": "<set>\n<parameter name='zte.prop.sdncRestApi.thirdpartySdnc.user' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n", \r
+        "comments": "", \r
+        "x": 1151, \r
+        "y": 432, \r
+        "z": "eab52334.be231", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "9fc08956.e0f9c", \r
+        "type": "set", \r
+        "name": "set password", \r
+        "xml": "<set>\n<parameter name='zte.prop.sdncRestApi.thirdpartySdnc.password' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n", \r
+        "comments": "", \r
+        "x": 1152, \r
+        "y": 491, \r
+        "z": "eab52334.be231", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "1343e358.22771d", \r
+        "type": "set", \r
+        "name": "set system-info-id", \r
+        "xml": "<set>\n<parameter name='zte.prop.sdncRestApi.thirdpartySdnc.system-info-id' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n", \r
+        "comments": "", \r
+        "x": 1150, \r
+        "y": 555, \r
+        "z": "eab52334.be231", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "223f6129.11e8ee", \r
+        "type": "set", \r
+        "name": "set thirdparty-sdnc-id", \r
+        "xml": "<set>\n<parameter name='zte.prop.sdncRestApi.thirdpartySdnc.id' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n", \r
+        "comments": "", \r
+        "x": 1148, \r
+        "y": 616, \r
+        "z": "eab52334.be231", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "a24c3d6c.c679f8", \r
+        "type": "set", \r
+        "name": "set type", \r
+        "xml": "<set>\n<parameter name='zte.prop.sdncRestApi.type' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n", \r
+        "comments": "", \r
+        "x": 1148, \r
+        "y": 682, \r
+        "z": "eab52334.be231", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "ebdf7595.352788", \r
+        "type": "record", \r
+        "name": "record", \r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/zte.svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"data-change-notification\"/>\n<parameter name=\"field3\" value=\"Config\"/>\n<parameter name=\"field4\" value=\"`service-url`\"/>\n<parameter name=\"field5\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.url`\"/>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 304, \r
+        "y": 525, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [ ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "bd214a4f.a0427", \r
+        "type": "call", \r
+        "name": "call esr-thirdparty-sdnc-discovery-of-zte", \r
+        "xml": "<call module='DataChange' rpc='esr-thirdparty-sdnc-discovery-of-zte' mode='sync' >\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 395, \r
+        "y": 615, \r
+        "z": "eab52334.be231", \r
         "wires": [\r
             [ ]\r
         ]\r