SDWAN sdnc DGs aai resource changes
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_update-network-to-aai.json
index 9e0f17a..c1cf62d 100644 (file)
-[\r
-    {\r
-        "id": "8623b35d.0cf2f",\r
-        "type": "dgstart",\r
-        "name": "DGSTART",\r
-        "outputs": 1,\r
-        "x": 125.00390625,\r
-        "y": 106.00650644302368,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": [\r
-            [\r
-                "e714b902.20b798"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "e714b902.20b798",\r
-        "type": "service-logic",\r
-        "name": "DataChange ${project.version}",\r
-        "module": "DataChange",\r
-        "version": "${project.version}",\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": 327.0039291381836,\r
-        "y": 106.89541959762573,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": [\r
-            [\r
-                "fb9820f4.4f92d"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "fb9820f4.4f92d",\r
-        "type": "method",\r
-        "name": "method update-network-to-aai",\r
-        "xml": "<method rpc='update-network-to-aai' mode='sync'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 336.1151580810547,\r
-        "y": 178.22874116897583,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": [\r
-            [\r
-                "b1c5fee.fa526"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "b1c5fee.fa526",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 583.3373489379883,\r
-        "y": 176.78443002700806,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": [\r
-            [\r
-                "d5568e89.0fd49",\r
-                "65e1e67.b95e318",\r
-                "fcfec7b9.699088"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "d5568e89.0fd49",\r
-        "type": "update",\r
-        "name": "save Zone",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='zone' \n      key='zone.zone-id = $tmp.network-id' >\n<parameter name='zone-id' value='`$tmp.network-id`' />\n<parameter name='zone-name' value='`$network.client-id`' />\n<parameter name='design-type' value='`$network.te-topology-id`' />\n<parameter name='zone-context' value='`$network.provider-id`' />\n\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 808.3371810913086,\r
-        "y": 176.00651788711548,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "af980bc1.1f72b8",\r
-        "type": "update",\r
-        "name": "save pnf",\r
-        "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='in-maint' value='true' />\n\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1052.1150245666504,\r
-        "y": 271.11759901046753,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "65e1e67.b95e318",\r
-        "type": "for",\r
-        "name": "for each node",\r
-        "xml": "<for index='pidx' start='0' end='`$network.node_length`' >\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 823.8927383422852,\r
-        "y": 339.33982038497925,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": [\r
-            [\r
-                "af980bc1.1f72b8",\r
-                "476a4fdb.dc5f5",\r
-                "96688ca0.6a9f6",\r
-                "9b63a4a9.acd508",\r
-                "8140ea7f.0a90f8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "476a4fdb.dc5f5",\r
-        "type": "set",\r
-        "name": "set network",\r
-        "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n",\r
-        "comments": "",\r
-        "x": 1062.114990234375,\r
-        "y": 202.22872114181519,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "96688ca0.6a9f6",\r
-        "type": "save",\r
-        "name": "save pnf relationship to zone in AAI",\r
-        "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=\"zone\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/zones/zone/' + $tmp.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"zone.zone-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.network-id`\" />",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1138.7819213867188,\r
-        "y": 344.4509873390198,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "9b63a4a9.acd508",\r
-        "type": "for",\r
-        "name": "for each termination point",\r
-        "xml": "<for index='tidx' start='0' end='`$node.termination-point_length`' >\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1099.448387145996,\r
-        "y": 497.11759424209595,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": [\r
-            [\r
-                "b34b1b54.abd288",\r
-                "66fee673.3f4e78",\r
-                "6031db9d.646964",\r
-                "3a479676.ca94ea"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "b34b1b54.abd288",\r
-        "type": "set",\r
-        "name": "set termination point",\r
-        "xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tidx].`' />\n",\r
-        "comments": "",\r
-        "x": 1480.1151962280273,\r
-        "y": 384.00655603408813,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "66fee673.3f4e78",\r
-        "type": "update",\r
-        "name": "save logical-link",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link' \n      key='logical-link.link-name = $unique-ltpId' >\n<parameter name='link-name' value='`$unique-ltpId`' />\n<parameter name='link-type' value='VL' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='in-maint' value='`$tp.svc.supported-classification.transparent`' />\n\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1463.8188934326172,\r
-        "y": 509.5621018409729,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "6031db9d.646964",\r
-        "type": "save",\r
-        "name": "save pnf relationship to logical-link in AAI",\r
-        "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=\"logical-link\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/logical-links/logical-link/' + $unique-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"logical-link.link-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ltpId`\" />",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1542.7077331542969,\r
-        "y": 577.3398509025574,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "3a479676.ca94ea",\r
-        "type": "set",\r
-        "name": "set unique-ltpId",\r
-        "xml": "<set>\n<parameter name='unique-ltpId' value=\"`'nodeId-' + $node.node-id + '-ltpId-' + $tp.te-tp-id`\" />\n",\r
-        "comments": "",\r
-        "x": 1459.0040893554688,\r
-        "y": 445.1176323890686,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "fcfec7b9.699088",\r
-        "type": "execute",\r
-        "name": "execute",\r
-        "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    ",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 796.9974060058594,\r
-        "y": 79.99999856948853,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "8140ea7f.0a90f8",\r
-        "type": "save",\r
-        "name": "save pnf relation with esr-thirdparty-sdnc",\r
-        "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",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1119.00390625,\r
-        "y": 414.9999985694885,\r
-        "z": "1ef7a393.52dc1c",\r
-        "wires": [\r
-            []\r
-        ]\r
-    }\r
-]
\ No newline at end of file
+[
+  {
+    "id": "20435d2f.b707b2",
+    "type": "dgstart",
+    "name": "DGSTART",
+    "outputs": 1,
+    "x": 129.01040649414062,
+    "y": 61.010414123535156,
+    "z": "3e15e6f8.d8900a",
+    "wires": [
+      [
+        "83ca6f8e.538a2"
+      ]
+    ]
+  },
+  {
+    "id": "83ca6f8e.538a2",
+    "type": "service-logic",
+    "name": "DataChange ${project.version}",
+    "module": "DataChange",
+    "version": "${project.version}",
+    "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": 218.01043701171875,
+    "y": 151.8993263244629,
+    "z": "3e15e6f8.d8900a",
+    "wires": [
+      [
+        "5fa2f1f3.bb35e"
+      ]
+    ]
+  },
+  {
+    "id": "5fa2f1f3.bb35e",
+    "type": "method",
+    "name": "method update-network-to-aai",
+    "xml": "<method rpc='update-network-to-aai' mode='sync'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 254.1216583251953,
+    "y": 222.23265075683594,
+    "z": "3e15e6f8.d8900a",
+    "wires": [
+      [
+        "44238134.7d97f"
+      ]
+    ]
+  },
+  {
+    "id": "44238134.7d97f",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic=\"true\">\n",
+    "atomic": "false",
+    "comments": "",
+    "outputs": 1,
+    "x": 479.3438415527344,
+    "y": 221.78833770751953,
+    "z": "3e15e6f8.d8900a",
+    "wires": [
+      [
+        "84458cb3.2004e",
+        "282c5771.31f2f8",
+        "c27c36c9.fe0038"
+      ]
+    ]
+  },
+  {
+    "id": "282c5771.31f2f8",
+    "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": 709.3436584472656,
+    "y": 127.01042938232422,
+    "z": "3e15e6f8.d8900a",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "8db597cb.e2ef58",
+    "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",
+    "comments": "",
+    "outputs": 1,
+    "x": 899.1215515136719,
+    "y": 179.12151336669922,
+    "z": "3e15e6f8.d8900a",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "c27c36c9.fe0038",
+    "type": "for",
+    "name": "for each node",
+    "xml": "<for index='pidx' start='0' end='`$network.node_length`' >\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 685.8992614746094,
+    "y": 171.3437271118164,
+    "z": "3e15e6f8.d8900a",
+    "wires": [
+      [
+        "8db597cb.e2ef58",
+        "6b246a86.7d22b4",
+        "79357b97.6a6604",
+        "629488d9.a436f8",
+        "89ed3af1.c4f958"
+      ]
+    ]
+  },
+  {
+    "id": "6b246a86.7d22b4",
+    "type": "set",
+    "name": "set network",
+    "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n",
+    "comments": "",
+    "x": 906.1214904785156,
+    "y": 145.23262786865234,
+    "z": "3e15e6f8.d8900a",
+    "wires": []
+  },
+  {
+    "id": "79357b97.6a6604",
+    "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": 1017.7884216308594,
+    "y": 212.45490264892578,
+    "z": "3e15e6f8.d8900a",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "89ed3af1.c4f958",
+    "type": "for",
+    "name": "for each termination point",
+    "xml": "<for index='tidx' start='0' end='`$node.termination-point_length`' >\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 950.4548645019531,
+    "y": 328.12149810791016,
+    "z": "3e15e6f8.d8900a",
+    "wires": [
+      [
+        "6bc546b5.f87e18",
+        "8d1a709c.fbdf6",
+        "ad4de444.eb7858",
+        "bd80da47.090a88"
+      ]
+    ]
+  },
+  {
+    "id": "6bc546b5.f87e18",
+    "type": "set",
+    "name": "set termination point",
+    "xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tidx].`' />\n",
+    "comments": "",
+    "x": 1217.1217346191406,
+    "y": 289.01045989990234,
+    "z": "3e15e6f8.d8900a",
+    "wires": []
+  },
+  {
+    "id": "bd80da47.090a88",
+    "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='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": 1200.8254699707031,
+    "y": 357.5660171508789,
+    "z": "3e15e6f8.d8900a",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "8d1a709c.fbdf6",
+    "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": 1278.7142639160156,
+    "y": 395.34375762939453,
+    "z": "3e15e6f8.d8900a",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "ad4de444.eb7858",
+    "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": 1201.0106506347656,
+    "y": 323.1215286254883,
+    "z": "3e15e6f8.d8900a",
+    "wires": []
+  },
+  {
+    "id": "84458cb3.2004e",
+    "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": 659.0039367675781,
+    "y": 88.00390625,
+    "z": "3e15e6f8.d8900a",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "629488d9.a436f8",
+    "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",
+    "comments": "",
+    "outputs": 1,
+    "x": 999.0104064941406,
+    "y": 249.00391387939453,
+    "z": "3e15e6f8.d8900a",
+    "wires": [
+      []
+    ]
+  }
+]