summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery-of-zte.json1100
-rw-r--r--platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery-of-zte.xml254
2 files changed, 1234 insertions, 120 deletions
diff --git a/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery-of-zte.json b/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery-of-zte.json
index d8262519..f7332e85 100644
--- a/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery-of-zte.json
+++ b/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery-of-zte.json
@@ -1,20 +1,20 @@
[
{
- "id": "461e2499.8f3954",
+ "id": "15787234.124136",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 98,
- "y": 69,
- "z": "233b36a1.5b5d1a",
+ "x": 101,
+ "y": 108,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "701f3038.9db4d"
+ "65c08ccc.a64284"
]
]
},
{
- "id": "701f3038.9db4d",
+ "id": "65c08ccc.a64284",
"type": "service-logic",
"name": "DataChange ${project.version}",
"module": "DataChange",
@@ -22,279 +22,1187 @@
"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": 202,
- "y": 158,
- "z": "233b36a1.5b5d1a",
+ "x": 205,
+ "y": 197,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "ba25d02c.fdd0a8"
+ "24732328.986984"
]
]
},
{
- "id": "ba25d02c.fdd0a8",
+ "id": "24732328.986984",
"type": "method",
"name": "method esr-thirdparty-sdnc-discovery-of-zte",
"xml": "<method rpc='esr-thirdparty-sdnc-discovery-of-zte' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 270,
- "y": 256,
- "z": "233b36a1.5b5d1a",
+ "x": 273,
+ "y": 295,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "a3d44b66.a5094"
+ "255730f2.067e3"
]
]
},
{
- "id": "a3d44b66.a5094",
+ "id": "255730f2.067e3",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 194,
- "y": 363,
- "z": "233b36a1.5b5d1a",
+ "x": 197,
+ "y": 402,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "ca8f74a.2337f88"
+ "52a3f44e.4fe8d4"
]
]
},
{
- "id": "ca8f74a.2337f88",
+ "id": "52a3f44e.4fe8d4",
"type": "switchNode",
"name": "switch aai-event-trigger",
"xml": "<switch test=\"`$data-change-notification-input.aai-event-trigger`\">\n",
"comments": "",
"outputs": 1,
- "x": 396,
- "y": 363,
- "z": "233b36a1.5b5d1a",
+ "x": 399,
+ "y": 402,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "63184cea.989334",
- "7bf3b058.b30c4"
+ "a7ad4b32.3232d",
+ "7ca795d2.5ae15c"
]
]
},
{
- "id": "63184cea.989334",
+ "id": "a7ad4b32.3232d",
"type": "outcome",
"name": "update",
"xml": "<outcome value='Update'>\n",
"comments": "",
"outputs": 1,
- "x": 624,
- "y": 318,
- "z": "233b36a1.5b5d1a",
+ "x": 627,
+ "y": 357,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "fdd46760.8bf7f"
+ "6a7a4af2.cbffc4"
]
]
},
{
- "id": "7bf3b058.b30c4",
+ "id": "7ca795d2.5ae15c",
"type": "outcome",
"name": "delete",
"xml": "<outcome value='delete'>\n",
"comments": "",
"outputs": 1,
- "x": 622,
- "y": 486,
- "z": "233b36a1.5b5d1a",
+ "x": 625,
+ "y": 525,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "8e4adf58.75aaa"
+ "3084a5a8.99639a"
]
]
},
{
- "id": "8e4adf58.75aaa",
+ "id": "3084a5a8.99639a",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 797,
- "y": 486,
- "z": "233b36a1.5b5d1a",
+ "x": 800,
+ "y": 525,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[ ]
]
},
{
- "id": "fdd46760.8bf7f",
+ "id": "6a7a4af2.cbffc4",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 776,
- "y": 318,
- "z": "233b36a1.5b5d1a",
+ "x": 779,
+ "y": 357,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "da8890ad.af057"
+ "9521c124.e5b908"
]
]
},
{
- "id": "da8890ad.af057",
+ "id": "9521c124.e5b908",
"type": "switchNode",
"name": "switch type",
"xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",
"comments": "",
"outputs": 1,
- "x": 945,
- "y": 318,
- "z": "233b36a1.5b5d1a",
+ "x": 948,
+ "y": 357,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "f4b967b.17aaa18",
- "9bc9bbca.bea01"
+ "b1b8ddba.d5362",
+ "b2791c8d.f92988"
]
]
},
{
- "id": "f4b967b.17aaa18",
+ "id": "b1b8ddba.d5362",
"type": "outcome",
"name": "SOTN",
"xml": "<outcome value='SOTN'>\n",
"comments": "",
"outputs": 1,
- "x": 1121,
- "y": 253,
- "z": "233b36a1.5b5d1a",
+ "x": 1124,
+ "y": 292,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "8178bbaf.4eb688"
+ "2476cb54.ee54e4"
]
]
},
{
- "id": "9bc9bbca.bea01",
+ "id": "b2791c8d.f92988",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1115,
- "y": 375,
- "z": "233b36a1.5b5d1a",
+ "x": 1118,
+ "y": 414,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "d8c7c62c.b1c62"
+ "615692ea.bd454c"
]
]
},
{
- "id": "d8c7c62c.b1c62",
+ "id": "615692ea.bd454c",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value=\"500\" />\n<parameter name='error-message' value=\"`'Unsupported type = ' + $prop.sdncRestApi.type`\" />\n",
"comments": "",
- "x": 1307,
- "y": 375,
- "z": "233b36a1.5b5d1a",
+ "x": 1310,
+ "y": 414,
+ "z": "5c3ac6a5.48ce2",
"wires": [ ]
},
{
- "id": "8178bbaf.4eb688",
+ "id": "2476cb54.ee54e4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1307,
- "y": 253,
- "z": "233b36a1.5b5d1a",
+ "x": 1310,
+ "y": 292,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "9fb7d11c.800968"
+ "58ffaa94.11ecc4",
+ "876baee.788865"
]
]
},
{
- "id": "9fb7d11c.800968",
+ "id": "58ffaa94.11ecc4",
"type": "execute",
"name": "execute RestApiCallNode Get ZTE Topology",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/getztetopotemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ZTE-API-Topology:get-topology-details'`\" />\n<parameter name=\"restapiUser\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"ztetopology\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.zte.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.zte.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/getzteodutopotemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ZTE-API-Topology:get-topology-details'`\" />\n<parameter name=\"restapiUser\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"ztetopology\"/>",
"comments": "",
"outputs": 1,
- "x": 1627,
- "y": 161,
- "z": "233b36a1.5b5d1a",
+ "x": 1630,
+ "y": 200,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "eab2d66e.d885b8",
- "17a6c836.1328e"
+ "1cff6c99.978523",
+ "8b1af88f.90711"
]
]
},
{
- "id": "eab2d66e.d885b8",
+ "id": "1cff6c99.978523",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1909,
- "y": 106,
- "z": "233b36a1.5b5d1a",
+ "x": 1912,
+ "y": 145,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "e4e6a315.e66f18"
+ "3c98a053.587f4"
]
]
},
{
- "id": "17a6c836.1328e",
+ "id": "8b1af88f.90711",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1907,
- "y": 206,
- "z": "233b36a1.5b5d1a",
+ "x": 1910,
+ "y": 245,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[
- "f408426d.ddcf3"
+ "f7875e10.0e8698"
]
]
},
{
- "id": "e4e6a315.e66f18",
+ "id": "3c98a053.587f4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2108,
- "y": 105,
- "z": "233b36a1.5b5d1a",
+ "x": 2111,
+ "y": 144,
+ "z": "5c3ac6a5.48ce2",
"wires": [
[ ]
]
},
{
- "id": "f408426d.ddcf3",
+ "id": "f7875e10.0e8698",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error executing Get odutopo rest api\" />\n",
"comments": "",
- "x": 2103,
- "y": 206,
- "z": "233b36a1.5b5d1a",
+ "x": 2106,
+ "y": 245,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [ ]
+ },
+ {
+ "id": "876baee.788865",
+ "type": "for",
+ "name": "for each oduTopology",
+ "xml": "<for index='nidx' start='0' end='`$ztetopology.output.topology.node-ref-id_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1538,
+ "y": 333,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "8b00f3a6.5f00a"
+ ]
+ ]
+ },
+ {
+ "id": "b480d508.259ad",
+ "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 = $prop.zte.network-id' >\n<parameter name='network-id' value='`$prop.zte.network-id`' />\n<parameter name='client-id' value='`$prop.zte.client-id`' />\n<parameter name='te-topo-id' value='`$prop.zte.topo-id`' />\n<parameter name='provider-id' value='`$prop.zte.provider-id`' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1993,
+ "y": 381,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [ ]
+ ]
+ },
+ {
+ "id": "8b00f3a6.5f00a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1736,
+ "y": 333,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "5a3bb265.58783c",
+ "9645ad1c.475eb",
+ "b480d508.259ad"
+ ]
+ ]
+ },
+ {
+ "id": "5a3bb265.58783c",
+ "type": "execute",
+ "name": "execute RestApiCallNode Get ZTE oduTopology",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/getzteodutoponodetemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ZTE-API-Topology:get-topology-details'`\" />\n<parameter name=\"restapiUser\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"ztetopologynode\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2075,
+ "y": 437,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "942544d4.b8ec58",
+ "8acdf237.4dae08"
+ ]
+ ]
+ },
+ {
+ "id": "8acdf237.4dae08",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1509,
+ "y": 689,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "6d8d547d.f1dd64"
+ ]
+ ]
+ },
+ {
+ "id": "942544d4.b8ec58",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1510,
+ "y": 564,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "faf343d1.9734d"
+ ]
+ ]
+ },
+ {
+ "id": "faf343d1.9734d",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error executing Get odutopo node rest api\" />\n",
+ "comments": "",
+ "x": 1701,
+ "y": 564,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [ ]
+ },
+ {
+ "id": "6d8d547d.f1dd64",
+ "type": "for",
+ "name": "for each oduTopology node",
+ "xml": "<for index='pidx' start='0' end='`$ztetopologynode.output.topology.node-ref-id_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1735,
+ "y": 689,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "a25bc521.5bb6a"
+ ]
+ ]
+ },
+ {
+ "id": "f538452a.143d98",
+ "type": "update",
+ "name": "save pnf",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n key='pnf.pnf-name = $ztetopologynodedetails.node.uuid' >\n<parameter name='pnf-name' value='`$ztetopologynodedetails.node.uuid`' />\n<parameter name='pnf-id' value='`$ztetopologynodedetails.node.uuid`' />\n<parameter name='operational-status' value=\"up\" />\n<parameter name='admin-status' value=\"up\" />\n<parameter name='in-maint' value='true' />\n\n\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2743,
+ "y": 815,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [ ]
+ ]
+ },
+ {
+ "id": "11d1e28b.963c9d",
+ "type": "execute",
+ "name": "execute RestApiCallNode Get ZTE oduTopology Node details",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/getzteodutoponodedetailstemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ZTE-API-Topology:get-node-details'`\" />\n<parameter name=\"restapiUser\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"ztetopologynodedetails\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2337,
+ "y": 688,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "55658f39.4a8e78",
+ "c9a1df1.d5a80a"
+ ]
+ ]
+ },
+ {
+ "id": "55658f39.4a8e78",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1716,
+ "y": 830,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "fd93d8e1.2313b"
+ ]
+ ]
+ },
+ {
+ "id": "fd93d8e1.2313b",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error executing Get odutopo node details rest api\" />\n",
+ "comments": "",
+ "x": 1866,
+ "y": 830,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [ ]
+ },
+ {
+ "id": "c9a1df1.d5a80a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1714,
+ "y": 935,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "77de9cee.930a9c"
+ ]
+ ]
+ },
+ {
+ "id": "77de9cee.930a9c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1897,
+ "y": 935,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "1b4283dd.592abc",
+ "eecb4617.57e91",
+ "7e0ea1c3.cc762",
+ "61c3b72.b4d2c48"
+ ]
+ ]
+ },
+ {
+ "id": "1b4283dd.592abc",
+ "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 = $ztetopologynodedetails.node.uuid' 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/' + 'zteNetwork'\" />\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=\"zteNetwork\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2192,
+ "y": 1024,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [ ]
+ ]
+ },
+ {
+ "id": "eecb4617.57e91",
+ "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 = $zte.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/' + $ztetopologynodedetails.node.uuid`\" />\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=\"`$ztetopologynodedetails.node.uuid`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2166,
+ "y": 1091,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [ ]
+ ]
+ },
+ {
+ "id": "7f6ccbfa.b45a74",
+ "type": "execute",
+ "name": "execute RestApiCallNode Get ZTE oduTopology Node edge point details",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/getzteodutoponodenepdetailstemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ZTE-API-Topology:get-node-edge-point-details'`\" />\n<parameter name=\"restapiUser\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"ztetopologynodenepdetails\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2797,
+ "y": 1272,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "38b0f2d1.620906",
+ "7b5490b3.a1044"
+ ]
+ ]
+ },
+ {
+ "id": "df44c30b.78cdc",
+ "type": "for",
+ "name": "for each oduTopology node nep name",
+ "xml": "<for index='tidx' start='0' end='`$ztetopologynodenepdetails.output.node-edge-point.name_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2687,
+ "y": 1507,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "a99510c.7985ef"
+ ]
+ ]
+ },
+ {
+ "id": "a99510c.7985ef",
+ "type": "execute",
+ "name": "contains client",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n <parameter name=\"source\" value=\"`$ztetopologynodenepdetails.node-edge-point.name[tidx].value`\"/>\n <parameter name=\"target\" value=\"client\"/>\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 3028,
+ "y": 1507,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "81ab5973.689e",
+ "3487141b.53f6bc"
+ ]
+ ]
+ },
+ {
+ "id": "81ab5973.689e",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3240,
+ "y": 1507,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "ce449c28.7c7b3"
+ ]
+ ]
+ },
+ {
+ "id": "7b5490b3.a1044",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2391,
+ "y": 1507,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "df44c30b.78cdc"
+ ]
+ ]
+ },
+ {
+ "id": "38b0f2d1.620906",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2391,
+ "y": 1416,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "e2cba4e6.c2e7a"
+ ]
+ ]
+ },
+ {
+ "id": "e2cba4e6.c2e7a",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error executing Get odutopo node edge point details rest api\" />\n",
+ "comments": "",
+ "x": 2763,
+ "y": 1416,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [ ]
+ },
+ {
+ "id": "3bf4d883.90249",
+ "type": "set",
+ "name": "set zte unique-ltpId",
+ "xml": "<set>\n<parameter name='zte-unique-ltpId' value=\"`'nodeId-' + $ztetopologynodedetails.node.uuid + '-ltpId-' + $ztetopologynodenepdetails.node-edge-point.uuid`\" />\n",
+ "comments": "",
+ "x": 3692,
+ "y": 1507,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [ ]
+ },
+ {
+ "id": "ce449c28.7c7b3",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3478,
+ "y": 1507,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "3bf4d883.90249",
+ "613c2ada.da8a7c",
+ "ab8b449e.5887e"
+ ]
+ ]
+ },
+ {
+ "id": "d2080e42.04e638",
+ "type": "update",
+ "name": "save p-interface",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $ztetopologynodedetails.node.uuid\n AND p-interface.interface-name = $zte-unique-ltpId' > \n<parameter name='interface-name' value='`$zte-unique-ltpId`' />\n<parameter name='network-ref' value=\"`'providerId/' + $prop.zte.provider-id + '/topologyId/' + $prop.zte.topo-id + '/clientId/' + $prop.zte.client-id`\" />\n<parameter name='transparent' value=\"true\" />\n<parameter name='speed-value' value='`$zte-bandwidth`' />\n<parameter name='operational-status' value=\"up\" />\n<parameter name='in-maint' value=\"true\" />\n\"`'nodeId-' + $node.node-id + '-ltpId-' + $tp.te-tp-id`\"",
+ "comments": "",
+ "outputs": 1,
+ "x": 4117,
+ "y": 1699,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "768c64d0.f7a43c",
+ "1c2dd58d.1dea72"
+ ]
+ ]
+ },
+ {
+ "id": "3487141b.53f6bc",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3239,
+ "y": 1433,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "c0e9d951.a60da8"
+ ]
+ ]
+ },
+ {
+ "id": "c0e9d951.a60da8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3474,
+ "y": 1433,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [ ]
+ ]
+ },
+ {
+ "id": "768c64d0.f7a43c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4305,
+ "y": 1633,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "faf97108.30335"
+ ]
+ ]
+ },
+ {
+ "id": "1c2dd58d.1dea72",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4305,
+ "y": 1698,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "48e7c11a.010d9"
+ ]
+ ]
+ },
+ {
+ "id": "faf97108.30335",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4494,
+ "y": 1632,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [ ]
+ ]
+ },
+ {
+ "id": "7e0ea1c3.cc762",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test=\"`$ztetopologynodedetails.node.global-state-pac.operational-state == 'ENABLED'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2067,
+ "y": 934,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "c9232bab.411fe",
+ "a6b9bca2.6fc2b"
+ ]
+ ]
+ },
+ {
+ "id": "c9232bab.411fe",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2268,
+ "y": 883,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "18266e26.721f3a"
+ ]
+ ]
+ },
+ {
+ "id": "a6b9bca2.6fc2b",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2267,
+ "y": 954,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "3e090a83.a9b3c6"
+ ]
+ ]
+ },
+ {
+ "id": "18266e26.721f3a",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test=\"`$ztetopologynodedetails.node.global-state-pac.administrative-state == 'LOCKED'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2424,
+ "y": 883,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "18fde8e6.1e96f7",
+ "1bdb1333.5ff0dd"
+ ]
+ ]
+ },
+ {
+ "id": "3e090a83.a9b3c6",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test=\"`$ztetopologynodedetails.node.global-state-pac.administrative-state == 'LOCKED'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2425,
+ "y": 954,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "9439c895.756d",
+ "c071256a.4164e8"
+ ]
+ ]
+ },
+ {
+ "id": "18fde8e6.1e96f7",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2587,
+ "y": 815,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "f538452a.143d98"
+ ]
+ ]
+ },
+ {
+ "id": "1bdb1333.5ff0dd",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2590,
+ "y": 883,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "5f1efe1e.eaa66"
+ ]
+ ]
+ },
+ {
+ "id": "9439c895.756d",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2591,
+ "y": 954,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "e6e244a4.0300f"
+ ]
+ ]
+ },
+ {
+ "id": "c071256a.4164e8",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2592,
+ "y": 1023,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "79274805.8fd178"
+ ]
+ ]
+ },
+ {
+ "id": "5f1efe1e.eaa66",
+ "type": "update",
+ "name": "save pnf",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n key='pnf.pnf-name = $ztetopologynodedetails.node.uuid' >\n<parameter name='pnf-name' value='`$ztetopologynodedetails.node.uuid`' />\n<parameter name='pnf-id' value='`$ztetopologynodedetails.node.uuid`' />\n<parameter name='operational-status' value=\"up\" />\n<parameter name='admin-status' value=\"down\" />\n<parameter name='in-maint' value='true' />\n\n\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2743,
+ "y": 883,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [ ]
+ ]
+ },
+ {
+ "id": "e6e244a4.0300f",
+ "type": "update",
+ "name": "save pnf",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n key='pnf.pnf-name = $ztetopologynodedetails.node.uuid' >\n<parameter name='pnf-name' value='`$ztetopologynodedetails.node.uuid`' />\n<parameter name='pnf-id' value='`$ztetopologynodedetails.node.uuid`' />\n<parameter name='operational-status' value=\"down\" />\n<parameter name='admin-status' value=\"up\" />\n<parameter name='in-maint' value='true' />\n\n\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2740,
+ "y": 954,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [ ]
+ ]
+ },
+ {
+ "id": "79274805.8fd178",
+ "type": "update",
+ "name": "save pnf",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n key='pnf.pnf-name = $ztetopologynodedetails.node.uuid' >\n<parameter name='pnf-name' value='`$ztetopologynodedetails.node.uuid`' />\n<parameter name='pnf-id' value='`$ztetopologynodedetails.node.uuid`' />\n<parameter name='operational-status' value=\"down\" />\n<parameter name='admin-status' value=\"down\" />\n<parameter name='in-maint' value='true' />\n\n\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2741,
+ "y": 1023,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [ ]
+ ]
+ },
+ {
+ "id": "613c2ada.da8a7c",
+ "type": "switchNode",
+ "name": "test operational-state",
+ "xml": "<switch test=\"`$ztetopologynodedetails.node.global-state-pac.operational-state == 'ENABLED'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3692,
+ "y": 1696,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "e65d9fab.c131f",
+ "fc04748b.c0e76"
+ ]
+ ]
+ },
+ {
+ "id": "e65d9fab.c131f",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3908,
+ "y": 1699,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "d2080e42.04e638"
+ ]
+ ]
+ },
+ {
+ "id": "fc04748b.c0e76",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3911,
+ "y": 1813,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "278d5ea5.1b82ca"
+ ]
+ ]
+ },
+ {
+ "id": "278d5ea5.1b82ca",
+ "type": "update",
+ "name": "save p-interface",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $ztetopologynodedetails.node.uuid\n AND p-interface.interface-name = $zte-unique-ltpId' > \n<parameter name='interface-name' value='`$zte-unique-ltpId`' />\n<parameter name='network-ref' value=\"`'providerId/' + $prop.zte.provider-id + '/topologyId/' + $prop.zte.topo-id + '/clientId/' + $prop.zte.client-id`\" />\n<parameter name='transparent' value=\"true\" />\n<parameter name='speed-value' value='`$zte-bandwidth`' />\n<parameter name='operational-status' value=\"down\" />\n<parameter name='in-maint' value=\"true\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4118,
+ "y": 1813,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "775b7d93.cb0874",
+ "ee21bf18.cecaa"
+ ]
+ ]
+ },
+ {
+ "id": "775b7d93.cb0874",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4306,
+ "y": 1813,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "c0aead49.1958f8"
+ ]
+ ]
+ },
+ {
+ "id": "ee21bf18.cecaa",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4303,
+ "y": 1874,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "54ef23c0.7c3d8c"
+ ]
+ ]
+ },
+ {
+ "id": "c0aead49.1958f8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4492,
+ "y": 1813,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [ ]
+ ]
+ },
+ {
+ "id": "48e7c11a.010d9",
+ "type": "update",
+ "name": "save p-interface",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $ztetopologynodedetails.node.uuid\n AND p-interface.interface-name = $zte-unique-ltpId' > \n<parameter name='interface-name' value='`$zte-unique-ltpId`' />\n<parameter name='network-ref' value=\"`'providerId/' + $prop.zte.provider-id + '/topologyId/' + $prop.zte.topo-id + '/clientId/' + $prop.zte.client-id`\" />\n<parameter name='transparent' value=\"true\" />\n<parameter name='speed-value' value='`$zte-bandwidth`' />\n<parameter name='operational-status' value=\"up\" />\n<parameter name='in-maint' value=\"true\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4525,
+ "y": 1698,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [ ]
+ ]
+ },
+ {
+ "id": "54ef23c0.7c3d8c",
+ "type": "update",
+ "name": "save p-interface",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $ztetopologynodedetails.node.uuid\n AND p-interface.interface-name = $zte-unique-ltpId' > \n<parameter name='interface-name' value='`$zte-unique-ltpId`' />\n<parameter name='network-ref' value=\"`'providerId/' + $prop.zte.provider-id + '/topologyId/' + $prop.zte.topo-id + '/clientId/' + $prop.zte.client-id`\" />\n<parameter name='transparent' value=\"true\" />\n<parameter name='speed-value' value='`$zte-bandwidth`' />\n<parameter name='operational-status' value=\"up\" />\n<parameter name='in-maint' value=\"true\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4519,
+ "y": 1874,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [ ]
+ ]
+ },
+ {
+ "id": "9645ad1c.475eb",
+ "type": "set",
+ "name": "set params",
+ "xml": "<set>\n<parameter name='prop.zte.network-id' value=\"zteNetwork\" />\n<parameter name='prop.zte.client-id' value=\"zteClient1\" />\n<parameter name='prop.zte.topo-id' value=\"zteTopo1\" />\n<parameter name='prop.zte.provider-id' value=\"zteProvider1\" />\n<parameter name='prop.zte.odutopo.name' value='`$ztetopology.output.topology.node-ref-id[$nidx]`' />\n",
+ "comments": "",
+ "x": 1957,
+ "y": 333,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [ ]
+ },
+ {
+ "id": "a25bc521.5bb6a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1957,
+ "y": 689,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "11d1e28b.963c9d",
+ "9403cfc0.48bae8"
+ ]
+ ]
+ },
+ {
+ "id": "9403cfc0.48bae8",
+ "type": "set",
+ "name": "set odutopo node name",
+ "xml": "<set>\n<parameter name='prop.zte.odutopo.node.name' value='`$ztetopologynode.output.topology.node-ref-id[$pidx]`' />\n",
+ "comments": "",
+ "x": 2221,
+ "y": 614,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [ ]
+ },
+ {
+ "id": "d1f5b2ac.93ca5",
+ "type": "set",
+ "name": "set odutopo node nep uuid",
+ "xml": "<set>\n<parameter name='prop.zte.odutopo.node.nep.uuid' value='`$ztetopologynodedetails.output.node.node-edge-point-id[$ridx]`' />\n",
+ "comments": "",
+ "x": 2657,
+ "y": 1155,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [ ]
+ },
+ {
+ "id": "61c3b72.b4d2c48",
+ "type": "for",
+ "name": "for each oduTopology node nep",
+ "xml": "<for index='ridx' start='0' end='`$ztetopologynodedetails.output.node.node-edge-point-id_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2137,
+ "y": 1156,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "ba3d5d3.bbc9ca"
+ ]
+ ]
+ },
+ {
+ "id": "ba3d5d3.bbc9ca",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2402,
+ "y": 1155,
+ "z": "5c3ac6a5.48ce2",
+ "wires": [
+ [
+ "d1f5b2ac.93ca5",
+ "7f6ccbfa.b45a74"
+ ]
+ ]
+ },
+ {
+ "id": "ab8b449e.5887e",
+ "type": "set",
+ "name": "set zte bandwidth",
+ "xml": "<set>\n<parameter name='zte-bandwidth' value='`1000 * 1000000 * 1.25 * $ztetopologynodenepdetails.node-edge-point.lp[0].odu-nep-pac.oducapacity`' />\n",
+ "comments": "",
+ "x": 3684,
+ "y": 1595,
+ "z": "5c3ac6a5.48ce2",
"wires": [ ]
}
] \ No newline at end of file
diff --git a/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery-of-zte.xml b/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery-of-zte.xml
index 2cc77da8..77c83bb9 100644
--- a/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery-of-zte.xml
+++ b/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery-of-zte.xml
@@ -1,42 +1,248 @@
-<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}'>
- <method rpc='esr-thirdparty-sdnc-discovery-of-zte' mode='sync'>
+<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}">
+ <method rpc="esr-thirdparty-sdnc-discovery-of-zte" mode="sync">
<block atomic="true">
- <switch test='`$data-change-notification-input.aai-event-trigger`'>
- <outcome value='Update'>
+ <switch test="`$data-change-notification-input.aai-event-trigger`">
+ <outcome value="Update">
<block>
- <switch test='`$prop.sdncRestApi.type`'>
- <outcome value='SOTN'>
+ <switch test="`$prop.sdncRestApi.type`">
+ <outcome value="SOTN">
<block atomic="true">
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest'>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/getztetopotemplate.json'`"/>
+ <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest">
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/getzteodutopotemplate.json'`"/>
<parameter name="restapiUrl" value="`$zte.prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ZTE-API-Topology:get-topology-details'`"/>
<parameter name="restapiUser" value="`$zte.prop.sdncRestApi.thirdpartySdnc.user`"/>
<parameter name="restapiPassword" value="`$zte.prop.sdncRestApi.thirdpartySdnc.password`"/>
<parameter name="format" value="json"/>
<parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="ztetopology"/>
- <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.openecomp.zte.client.jks"/>
- <parameter name="trustStorePassword" value="adminadmin"/>
- <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.zte.p12"/>
- <parameter name="keyStorePassword" value="adminadmin"/>
- <outcome value='success'>
+ <parameter name="responsePrefix" value="ztetopology"/>
+ <outcome value="success">
<block atomic="true"/>
</outcome>
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="ack-final" value="Y"/>
<parameter name="error-code" value="500"/>
- <parameter name="error-message" value="Error executing Create vpn rest api"/>
+ <parameter name="error-message" value="Error executing Get odutopo rest api"/>
</return>
</outcome>
</execute>
+ <for index="nidx" start="0" end="`$ztetopology.output.topology.node-ref-id_length`">
+ <block atomic="true">
+ <set>
+ <parameter name="prop.zte.network-id" value="zteNetwork"/>
+ <parameter name="prop.zte.client-id" value="zteClient1"/>
+ <parameter name="prop.zte.topo-id" value="zteTopo1"/>
+ <parameter name="prop.zte.provider-id" value="zteProvider1"/>
+ <parameter name="prop.zte.odutopo.name" value="`$ztetopology.output.topology.node-ref-id[$nidx]`"/>
+ </set>
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="network-resource" key="network-resource.network-id = $prop.zte.network-id">
+ <parameter name="network-id" value="`$prop.zte.network-id`"/>
+ <parameter name="client-id" value="`$prop.zte.client-id`"/>
+ <parameter name="te-topo-id" value="`$prop.zte.topo-id`"/>
+ <parameter name="provider-id" value="`$prop.zte.provider-id`"/>
+ </save>
+ <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest">
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/getzteodutoponodetemplate.json'`"/>
+ <parameter name="restapiUrl" value="`$zte.prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ZTE-API-Topology:get-topology-details'`"/>
+ <parameter name="restapiUser" value="`$zte.prop.sdncRestApi.thirdpartySdnc.user`"/>
+ <parameter name="restapiPassword" value="`$zte.prop.sdncRestApi.thirdpartySdnc.password`"/>
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="ztetopologynode"/>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="ack-final" value="Y"/>
+ <parameter name="error-code" value="500"/>
+ <parameter name="error-message" value="Error executing Get odutopo node rest api"/>
+ </return>
+ </outcome>
+ <outcome value="success">
+ <for index="pidx" start="0" end="`$ztetopologynode.output.topology.node-ref-id_length`">
+ <block>
+ <set>
+ <parameter name="prop.zte.odutopo.node.name" value="`$ztetopologynode.output.topology.node-ref-id[$pidx]`"/>
+ </set>
+ <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest">
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/getzteodutoponodedetailstemplate.json'`"/>
+ <parameter name="restapiUrl" value="`$zte.prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ZTE-API-Topology:get-node-details'`"/>
+ <parameter name="restapiUser" value="`$zte.prop.sdncRestApi.thirdpartySdnc.user`"/>
+ <parameter name="restapiPassword" value="`$zte.prop.sdncRestApi.thirdpartySdnc.password`"/>
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="ztetopologynodedetails"/>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="ack-final" value="Y"/>
+ <parameter name="error-code" value="500"/>
+ <parameter name="error-message" value="Error executing Get odutopo node details rest api"/>
+ </return>
+ </outcome>
+ <outcome value="success">
+ <block>
+ <switch test="`$ztetopologynodedetails.node.global-state-pac.operational-state == 'ENABLED'`">
+ <outcome value="true">
+ <switch test="`$ztetopologynodedetails.node.global-state-pac.administrative-state == 'LOCKED'`">
+ <outcome value="true">
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="pnf" key="pnf.pnf-name = $ztetopologynodedetails.node.uuid">
+ <parameter name="pnf-name" value="`$ztetopologynodedetails.node.uuid`"/>
+ <parameter name="pnf-id" value="`$ztetopologynodedetails.node.uuid`"/>
+ <parameter name="operational-status" value="up"/>
+ <parameter name="admin-status" value="up"/>
+ <parameter name="in-maint" value="true"/>
+ </save>
+ </outcome>
+ <outcome value="false">
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="pnf" key="pnf.pnf-name = $ztetopologynodedetails.node.uuid">
+ <parameter name="pnf-name" value="`$ztetopologynodedetails.node.uuid`"/>
+ <parameter name="pnf-id" value="`$ztetopologynodedetails.node.uuid`"/>
+ <parameter name="operational-status" value="up"/>
+ <parameter name="admin-status" value="down"/>
+ <parameter name="in-maint" value="true"/>
+ </save>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value="false">
+ <switch test="`$ztetopologynodedetails.node.global-state-pac.administrative-state == 'LOCKED'`">
+ <outcome value="true">
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="pnf" key="pnf.pnf-name = $ztetopologynodedetails.node.uuid">
+ <parameter name="pnf-name" value="`$ztetopologynodedetails.node.uuid`"/>
+ <parameter name="pnf-id" value="`$ztetopologynodedetails.node.uuid`"/>
+ <parameter name="operational-status" value="down"/>
+ <parameter name="admin-status" value="up"/>
+ <parameter name="in-maint" value="true"/>
+ </save>
+ </outcome>
+ <outcome value="false">
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="pnf" key="pnf.pnf-name = $ztetopologynodedetails.node.uuid">
+ <parameter name="pnf-name" value="`$ztetopologynodedetails.node.uuid`"/>
+ <parameter name="pnf-id" value="`$ztetopologynodedetails.node.uuid`"/>
+ <parameter name="operational-status" value="down"/>
+ <parameter name="admin-status" value="down"/>
+ <parameter name="in-maint" value="true"/>
+ </save>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="pnf:relationship-list" key="pnf.pnf-name = $ztetopologynodedetails.node.uuid" force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="network-resource"/>
+ <parameter name="relationship-list.relationship[0].related-link" value="'/network/network-resources/network-resource/' + 'zteNetwork'"/>
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="network-resource.network-id"/>
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="zteNetwork"/>
+ </save>
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="esr-thirdparty-sdnc:relationship-list" key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $zte.prop.sdncRestApi.thirdpartySdnc.id" force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="pnf"/>
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $ztetopologynodedetails.node.uuid`"/>
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="pnf.pnf-name"/>
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$ztetopologynodedetails.node.uuid`"/>
+ </save>
+ <for index="ridx" start="0" end="`$ztetopologynodedetails.output.node.node-edge-point-id_length`">
+ <block>
+ <set>
+ <parameter name="prop.zte.odutopo.node.nep.uuid" value="`$ztetopologynodedetails.output.node.node-edge-point-id[$ridx]`"/>
+ </set>
+ <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest">
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/getzteodutoponodenepdetailstemplate.json'`"/>
+ <parameter name="restapiUrl" value="`$zte.prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ZTE-API-Topology:get-node-edge-point-details'`"/>
+ <parameter name="restapiUser" value="`$zte.prop.sdncRestApi.thirdpartySdnc.user`"/>
+ <parameter name="restapiPassword" value="`$zte.prop.sdncRestApi.thirdpartySdnc.password`"/>
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="ztetopologynodenepdetails"/>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="ack-final" value="Y"/>
+ <parameter name="error-code" value="500"/>
+ <parameter name="error-message" value="Error executing Get odutopo node edge point details rest api"/>
+ </return>
+ </outcome>
+ <outcome value="success">
+ <for index="tidx" start="0" end="`$ztetopologynodenepdetails.output.node-edge-point.name_length`">
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains">
+ <parameter name="source" value="`$ztetopologynodenepdetails.node-edge-point.name[tidx].value`"/>
+ <parameter name="target" value="client"/>
+ <outcome value="false">
+ <block></block>
+ </outcome>
+ <outcome value="true">
+ <block>
+ <set>
+ <parameter name="zte-unique-ltpId" value="`'nodeId-' + $ztetopologynodedetails.node.uuid + '-ltpId-' + $ztetopologynodenepdetails.node-edge-point.uuid`"/>
+ </set>
+ <set>
+ <parameter name="zte-bandwidth" value="`1000 * 1000000 * 1.25 * $ztetopologynodenepdetails.node-edge-point.lp[0].odu-nep-pac.oducapacity`"/>
+ </set>
+ <switch test="`$ztetopologynodedetails.node.global-state-pac.operational-state == 'ENABLED'`">
+ <outcome value="true">
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="p-interface" key="pnf.pnf-name = $ztetopologynodedetails.node.uuid AND p-interface.interface-name = $zte-unique-ltpId">
+ <parameter name="interface-name" value="`$zte-unique-ltpId`"/>
+ <parameter name="network-ref" value="`'providerId/' + $prop.zte.provider-id + '/topologyId/' + $prop.zte.topo-id + '/clientId/' + $prop.zte.client-id`"/>
+ <parameter name="transparent" value="true"/>
+ <parameter name="speed-value" value="`$zte-bandwidth`"/>
+ <parameter name="operational-status" value="up"/>
+ <parameter name="in-maint" value="true"/> "`'nodeId-' + $node.node-id + '-ltpId-' + $tp.te-tp-id`"
+ <outcome value="success">
+ <block></block>
+ </outcome>
+ <outcome value="failure">
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="p-interface" key="pnf.pnf-name = $ztetopologynodedetails.node.uuid AND p-interface.interface-name = $zte-unique-ltpId">
+ <parameter name="interface-name" value="`$zte-unique-ltpId`"/>
+ <parameter name="network-ref" value="`'providerId/' + $prop.zte.provider-id + '/topologyId/' + $prop.zte.topo-id + '/clientId/' + $prop.zte.client-id`"/>
+ <parameter name="transparent" value="true"/>
+ <parameter name="speed-value" value="`$zte-bandwidth`"/>
+ <parameter name="operational-status" value="up"/>
+ <parameter name="in-maint" value="true"/>
+ </save>
+ </outcome>
+ </save>
+ </outcome>
+ <outcome value="false">
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="p-interface" key="pnf.pnf-name = $ztetopologynodedetails.node.uuid AND p-interface.interface-name = $zte-unique-ltpId">
+ <parameter name="interface-name" value="`$zte-unique-ltpId`"/>
+ <parameter name="network-ref" value="`'providerId/' + $prop.zte.provider-id + '/topologyId/' + $prop.zte.topo-id + '/clientId/' + $prop.zte.client-id`"/>
+ <parameter name="transparent" value="true"/>
+ <parameter name="speed-value" value="`$zte-bandwidth`"/>
+ <parameter name="operational-status" value="down"/>
+ <parameter name="in-maint" value="true"/>
+ <outcome value="success">
+ <block></block>
+ </outcome>
+ <outcome value="failure">
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="p-interface" key="pnf.pnf-name = $ztetopologynodedetails.node.uuid AND p-interface.interface-name = $zte-unique-ltpId">
+ <parameter name="interface-name" value="`$zte-unique-ltpId`"/>
+ <parameter name="network-ref" value="`'providerId/' + $prop.zte.provider-id + '/topologyId/' + $prop.zte.topo-id + '/clientId/' + $prop.zte.client-id`"/>
+ <parameter name="transparent" value="true"/>
+ <parameter name="speed-value" value="`$zte-bandwidth`"/>
+ <parameter name="operational-status" value="up"/>
+ <parameter name="in-maint" value="true"/>
+ </save>
+ </outcome>
+ </save>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </execute>
+ </for>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ </outcome>
+ </execute>
+ </block>
+ </for>
</block>
</outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
+ <outcome value="Other">
+ <return status="failure">
+ <parameter name="ack-final" value="Y"/>
<parameter name="error-code" value="500"/>
<parameter name="error-message" value="`'Unsupported type = ' + $prop.sdncRestApi.type`"/>
</return>
@@ -44,7 +250,7 @@
</switch>
</block>
</outcome>
- <outcome value='delete'>
+ <outcome value="delete">
<block atomic="true"/>
</outcome>
</switch>