integration test issues fix for sdwan and sotn
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_update-network-to-aai.json
index 6b630e5..f82168b 100644 (file)
@@ -1,20 +1,20 @@
 [
   {
-    "id": "75e675fb.618e5c",
+    "id": "4d48ad52.66bce4",
     "type": "dgstart",
     "name": "DGSTART",
     "outputs": 1,
-    "x": 135.00390625,
-    "y": 77.00390625,
-    "z": "3dcb52b5.f95fbe",
+    "x": 116,
+    "y": 72,
+    "z": "972d7ac.f66db88",
     "wires": [
       [
-        "7fa0e5e0.b33c5c"
+        "66f854f4.bc80cc"
       ]
     ]
   },
   {
-    "id": "7fa0e5e0.b33c5c",
+    "id": "66f854f4.bc80cc",
     "type": "service-logic",
     "name": "DataChange ${project.version}",
     "module": "DataChange",
     "comments": "",
     "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}'>",
     "outputs": 1,
-    "x": 224.00393676757812,
-    "y": 167.89281845092773,
-    "z": "3dcb52b5.f95fbe",
+    "x": 205.00003051757812,
+    "y": 162.88891220092773,
+    "z": "972d7ac.f66db88",
     "wires": [
       [
-        "d74cb25a.e2de3"
+        "7eee0fcc.e1d78"
       ]
     ]
   },
   {
-    "id": "d74cb25a.e2de3",
+    "id": "7eee0fcc.e1d78",
     "type": "method",
     "name": "method update-network-to-aai",
     "xml": "<method rpc='update-network-to-aai' mode='sync'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 260.1151580810547,
-    "y": 238.22614288330078,
-    "z": "3dcb52b5.f95fbe",
+    "x": 241.1112518310547,
+    "y": 233.22223663330078,
+    "z": "972d7ac.f66db88",
     "wires": [
       [
-        "a101ac8e.c59f1"
+        "dd17da81.f85678"
       ]
     ]
   },
   {
-    "id": "a101ac8e.c59f1",
+    "id": "dd17da81.f85678",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">\n",
     "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 485.33734130859375,
-    "y": 237.78182983398438,
-    "z": "3dcb52b5.f95fbe",
+    "x": 466.33343505859375,
+    "y": 232.77792358398438,
+    "z": "972d7ac.f66db88",
     "wires": [
       [
-        "d5314164.19147",
-        "1d637de0.aa2f02",
-        "b183cf6c.88416"
+        "c70a984d.cc2a48",
+        "5cf53006.e1ea9",
+        "a9f8a08c.a159f"
       ]
     ]
   },
   {
-    "id": "1d637de0.aa2f02",
+    "id": "5cf53006.e1ea9",
     "type": "update",
     "name": "save network-resource",
     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource'  \n     key='network-resource.network-id = $tmp.network-id' >\n<parameter name='network-id' value='`$tmp.network-id`' />\n<parameter name='client-id' value='`$network.client-id`' />\n<parameter name='te-topo-id' value='`$network.te-topology-id`' />\n<parameter name='provider-id' value='`$network.provider-id`' />\n\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 715.337158203125,
-    "y": 143.00392150878906,
-    "z": "3dcb52b5.f95fbe",
+    "x": 696.333251953125,
+    "y": 138.00001525878906,
+    "z": "972d7ac.f66db88",
     "wires": [
       []
     ]
   },
   {
-    "id": "8399fa0a.e7e2c8",
+    "id": "bc0b4672.53b908",
     "type": "update",
     "name": "save pnf",
-    "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n      key='network-resource.network-id = $tmp.network-id\n      AND pnf.pnf-name = $node.node-id' >\n<parameter name='pnf-name' value='`$node.node-id`' />\n<parameter name='pnf-id' value='`$node.node-id`' />\n<parameter name='operational-status' value='`$node.te.oper-status`' />\n<parameter name='admin-status' value='`$node.te.te-node-attributes.admin-status`' />\n<parameter name='in-maint' value='true' />\n\n\n\n\n\n",
+    "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n      key='pnf.pnf-name = $node.node-id' >\n<parameter name='pnf-name' value='`$node.node-id`' />\n<parameter name='pnf-id' value='`$node.node-id`' />\n<parameter name='operational-status' value='`$node.te.oper-status`' />\n<parameter name='admin-status' value='`$node.te.te-node-attributes.admin-status`' />\n<parameter name='in-maint' value='true' />\n\n\n\n\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 905.1150512695312,
-    "y": 195.11500549316406,
-    "z": "3dcb52b5.f95fbe",
+    "x": 879.111141204834,
+    "y": 191.111102104187,
+    "z": "972d7ac.f66db88",
     "wires": [
       []
     ]
   },
   {
-    "id": "b183cf6c.88416",
+    "id": "a9f8a08c.a159f",
     "type": "for",
     "name": "for each node",
     "xml": "<for index='pidx' start='0' end='`$network.node_length`' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 691.8927612304688,
-    "y": 187.33721923828125,
-    "z": "3dcb52b5.f95fbe",
+    "x": 679.8888549804688,
+    "y": 208.33331298828125,
+    "z": "972d7ac.f66db88",
     "wires": [
       [
-        "8399fa0a.e7e2c8",
-        "a42bad10.3ef0b",
-        "21ad025b.8c4fee",
-        "9a109c49.5a457",
-        "4710678b.b2f898"
+        "bc0b4672.53b908",
+        "6b3704fc.0bd35c",
+        "24e04af5.ddea66",
+        "9b1ff78d.8b3c08",
+        "8e9342c1.220f"
       ]
     ]
   },
   {
-    "id": "a42bad10.3ef0b",
+    "id": "6b3704fc.0bd35c",
     "type": "set",
     "name": "set network",
     "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n",
     "comments": "",
-    "x": 912.114990234375,
-    "y": 161.2261199951172,
-    "z": "3dcb52b5.f95fbe",
+    "x": 893.111083984375,
+    "y": 156.2222137451172,
+    "z": "972d7ac.f66db88",
     "wires": []
   },
   {
-    "id": "21ad025b.8c4fee",
+    "id": "9b1ff78d.8b3c08",
     "type": "save",
     "name": "save pnf relationship to network-resource in AAI",
     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n      key='pnf.pnf-name = $node.node-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"network-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"network-resource.network-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.network-id`\" />",
     "comments": "",
     "outputs": 1,
-    "x": 1023.7819213867188,
-    "y": 228.44839477539062,
-    "z": "3dcb52b5.f95fbe",
+    "x": 1004.7779541015625,
+    "y": 223.44447803497314,
+    "z": "972d7ac.f66db88",
     "wires": [
       []
     ]
   },
   {
-    "id": "4710678b.b2f898",
+    "id": "8e9342c1.220f",
     "type": "for",
     "name": "for each termination point",
     "xml": "<for index='tidx' start='0' end='`$node.termination-point_length`' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 956.4483642578125,
-    "y": 344.114990234375,
-    "z": "3dcb52b5.f95fbe",
+    "x": 937.4444580078125,
+    "y": 339.111083984375,
+    "z": "972d7ac.f66db88",
     "wires": [
       [
-        "7bcb0931.538d48",
-        "56653317.e67e9c",
-        "5da0d24d.9b201c",
-        "2065ea1d.9bce86"
+        "7c32bd23.da1e04",
+        "38ff90b0.67e0b",
+        "36dd756f.9a425a"
       ]
     ]
   },
   {
-    "id": "7bcb0931.538d48",
+    "id": "7c32bd23.da1e04",
     "type": "set",
     "name": "set termination point",
     "xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tidx].`' />\n",
     "comments": "",
-    "x": 1223.115234375,
-    "y": 305.0039520263672,
-    "z": "3dcb52b5.f95fbe",
+    "x": 1204.111328125,
+    "y": 300.0000457763672,
+    "z": "972d7ac.f66db88",
     "wires": []
   },
   {
-    "id": "2065ea1d.9bce86",
+    "id": "36dd756f.9a425a",
     "type": "update",
     "name": "save p-interface",
-    "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n      key='network-resource.network-id = $tmp.network-id\n      AND pnf.pnf-name = $node.node-id\n      AND p-interface.interface-name = $unique-ltpId' >\n<parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\n<parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='operational-status' value='`$tp.te.oper-status`' />\n<parameter name='in-maint' value=\"true\" />\n\n",
+    "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n      key='pnf.pnf-name = $node.node-id\n      AND p-interface.interface-name = $unique-ltpId' >      \n<parameter name='interface-name' value='`$unique-ltpId`' />\n<parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\n<parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='operational-status' value='`$tp.te.oper-status`' />\n<parameter name='in-maint' value=\"true\" />\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 1206.8189697265625,
-    "y": 373.55950927734375,
-    "z": "3dcb52b5.f95fbe",
+    "x": 1187.8151397705078,
+    "y": 473.5555934906006,
+    "z": "972d7ac.f66db88",
     "wires": [
-      []
+      [
+        "310a666a.23204a",
+        "52308d76.244944"
+      ]
     ]
   },
   {
-    "id": "56653317.e67e9c",
+    "id": "9b33d7c5.abef78",
     "type": "save",
     "name": "save pnf relationship to p-interface in AAI",
     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n      key='pnf.pnf-name = $node.node-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $node.node-id '/p-interfaces/p-interface/' + $unique-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ltpId`\" />",
     "comments": "",
     "outputs": 1,
-    "x": 1284.707763671875,
-    "y": 411.3372497558594,
-    "z": "3dcb52b5.f95fbe",
+    "x": 1263.7038879394531,
+    "y": 562.333345413208,
+    "z": "972d7ac.f66db88",
     "wires": [
       []
     ]
   },
   {
-    "id": "5da0d24d.9b201c",
+    "id": "38ff90b0.67e0b",
     "type": "set",
     "name": "set unique-ltpId",
     "xml": "<set>\n<parameter name='unique-ltpId' value=\"`'nodeId-' + $node.node-id + '-ltpId-' + $tp.te-tp-id`\" />\n",
     "comments": "",
-    "x": 1207.004150390625,
-    "y": 339.1150207519531,
-    "z": "3dcb52b5.f95fbe",
+    "x": 1188.000244140625,
+    "y": 334.1111145019531,
+    "z": "972d7ac.f66db88",
     "wires": []
   },
   {
-    "id": "d5314164.19147",
+    "id": "c70a984d.cc2a48",
     "type": "execute",
     "name": "execute",
     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$network.network-id`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.network-id\"/>\n    <parameter name=\"target\" value=\"/\"/>\n    <parameter name=\"replacement\" value=\"-\"/>\n    ",
     "comments": "",
     "outputs": 1,
-    "x": 664.9974365234375,
-    "y": 103.99739837646484,
-    "z": "3dcb52b5.f95fbe",
+    "x": 645.9935302734375,
+    "y": 98.99349212646484,
+    "z": "972d7ac.f66db88",
     "wires": [
       []
     ]
   },
   {
-    "id": "9a109c49.5a457",
+    "id": "24e04af5.ddea66",
     "type": "save",
     "name": "save pnf relation with esr-thirdparty-sdnc",
-    "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='esr-thirdparty-sdnc:relationship-list' \n      key='esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"pnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $node.node-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$node.node-id`\" />\n",
+    "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='esr-thirdparty-sdnc:relationship-list' \n      key='esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"pnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $node.node-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$node.node-id`\" />\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 986,
+    "y": 259.9934997558594,
+    "z": "972d7ac.f66db88",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "310a666a.23204a",
+    "type": "success",
+    "name": "success",
+    "xml": "<outcome value='success'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1359.4998397827148,
+    "y": 460.7460689544678,
+    "z": "972d7ac.f66db88",
+    "wires": [
+      [
+        "fcc0153a.edfd18"
+      ]
+    ]
+  },
+  {
+    "id": "52308d76.244944",
+    "type": "failure",
+    "name": "failure",
+    "xml": "<outcome value='failure'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1353.1784286499023,
+    "y": 512.9603805541992,
+    "z": "972d7ac.f66db88",
+    "wires": [
+      [
+        "1c6a1f1f.8e0f61"
+      ]
+    ]
+  },
+  {
+    "id": "fcc0153a.edfd18",
+    "type": "block",
+    "name": "block",
+    "xml": "<block>\n",
+    "atomic": "false",
+    "comments": "",
+    "outputs": 1,
+    "x": 1510,
+    "y": 460,
+    "z": "972d7ac.f66db88",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "1c6a1f1f.8e0f61",
+    "type": "update",
+    "name": "save p-interface",
+    "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n      key='pnf.pnf-name = $node.node-id\n      AND p-interface.interface-name = $unique-ltpId' >      \n<parameter name='interface-name' value='`$unique-ltpId`' />\n<parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\n<parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='operational-status' value='`$tp.te.oper-status`' />\n<parameter name='in-maint' value=\"true\" />\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 1005.00390625,
-    "y": 264.9974060058594,
-    "z": "3dcb52b5.f95fbe",
+    "x": 1530,
+    "y": 510,
+    "z": "972d7ac.f66db88",
     "wires": [
       []
     ]
   }
-]
\ No newline at end of file
+]