[\r
{\r
- "id": "b49e6ed1.c8dcb",\r
+ "id": "cd2352df.fe133",\r
"type": "other",\r
"name": "update",\r
"xml": "<outcome value='Update'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 663,\r
- "y": 290,\r
- "z": "1b18cff5.bba51",\r
+ "x": 717,\r
+ "y": 280,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "afc79595.03a058"\r
+ "d7605eba.de53c8"\r
]\r
]\r
},\r
{\r
- "id": "93d3a809.23d83",\r
+ "id": "a5fb8600.92c56",\r
"type": "other",\r
"name": "delete",\r
"xml": "<outcome value='delete'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 663,\r
- "y": 370,\r
- "z": "1b18cff5.bba51",\r
+ "x": 717,\r
+ "y": 360,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "87f5ce3d.163be8"\r
+ "a9fa59c4.23eb88"\r
]\r
]\r
},\r
{\r
- "id": "87f5ce3d.163be8",\r
+ "id": "a9fa59c4.23eb88",\r
"type": "block",\r
"name": "block : atomic",\r
"xml": "<block atomic=\"true\">",\r
"atomic": "true",\r
"outputs": 1,\r
- "x": 804.5,\r
- "y": 370,\r
- "z": "1b18cff5.bba51",\r
+ "x": 858.5,\r
+ "y": 360,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "ed89d8e2.366518",\r
+ "id": "4266435.e82743c",\r
"type": "comment",\r
"name": "TODO: Delete topology from AAI",\r
"info": "",\r
"comments": "",\r
- "x": 737.3335189819336,\r
- "y": 337.96899485588074,\r
- "z": "1b18cff5.bba51",\r
+ "x": 791.3335189819336,\r
+ "y": 327.96899485588074,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "493ee223.06b5cc",\r
+ "id": "78227710.8145c",\r
"type": "switchNode",\r
"name": "switch aai-event-trigger",\r
"xml": "<switch test=\"`$data-change-notification-input.aai-event-trigger`\">\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 493.5,\r
- "y": 330,\r
- "z": "1b18cff5.bba51",\r
+ "x": 547.5,\r
+ "y": 320,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "b49e6ed1.c8dcb",\r
- "93d3a809.23d83"\r
+ "cd2352df.fe133",\r
+ "a5fb8600.92c56"\r
]\r
]\r
},\r
{\r
- "id": "c970e0d9.988dc8",\r
+ "id": "6a609919.dbddb",\r
"type": "block",\r
"name": "block : atomic",\r
"xml": "<block atomic=\"true\">",\r
"atomic": "true",\r
"outputs": 1,\r
- "x": 1190.5,\r
- "y": 201,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1244.5,\r
+ "y": 191,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "b93333aa.1c0a7",\r
- "8e89ec86.381848",\r
- "6bfd56ef.86aba8",\r
- "29c878c8.6e2e3",\r
- "9dd42ebd.c3ec58"\r
+ "a8db8257.07cda8",\r
+ "6c3c4f73.322ab8",\r
+ "49ad06a0.4e0b98",\r
+ "5d1f20b8.954bc8",\r
+ "8b00173e.a90248"\r
]\r
]\r
},\r
{\r
- "id": "8e89ec86.381848",\r
+ "id": "6c3c4f73.322ab8",\r
"type": "execute",\r
"name": "execute RestApiCallNode Get token",\r
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1463.5001983642578,\r
- "y": 122.00000953674316,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1517.5001983642578,\r
+ "y": 112.00000953674316,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "37b02225.daaf3e",\r
- "e44faed5.0a562"\r
+ "4ca383bd.7f19f4",\r
+ "a7b25c4e.37855"\r
]\r
]\r
},\r
{\r
- "id": "37b02225.daaf3e",\r
+ "id": "4ca383bd.7f19f4",\r
"type": "success",\r
"name": "success",\r
"xml": "<outcome value='success'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1753.000244140625,\r
- "y": 114,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1807.000244140625,\r
+ "y": 104,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "9ee82b4c.027258"\r
+ "bb6558fe.165e6"\r
]\r
]\r
},\r
{\r
- "id": "e44faed5.0a562",\r
+ "id": "a7b25c4e.37855",\r
"type": "failure",\r
"name": "failure",\r
"xml": "<outcome value='failure'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1749.000244140625,\r
- "y": 154,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1803.000244140625,\r
+ "y": 144,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "95fadd6c.fb4588"\r
+ "929ec7a5.9a46b8"\r
]\r
]\r
},\r
{\r
- "id": "9ee82b4c.027258",\r
+ "id": "bb6558fe.165e6",\r
"type": "set",\r
"name": "set token-id",\r
"xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",\r
"comments": "",\r
- "x": 1903.500244140625,\r
- "y": 114,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1957.500244140625,\r
+ "y": 104,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "d863483.fe451b8",\r
+ "id": "3afa5b8a.d8b45c",\r
"type": "execute",\r
"name": "execute RestApiCallNode Get Topology",\r
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"topology\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1970.500244140625,\r
- "y": 234,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2024.500244140625,\r
+ "y": 224,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "27150b59.a15c7c",\r
- "10804f14.8fac71"\r
+ "fe4ed86b.9ca41",\r
+ "6e1598d4.05ae"\r
]\r
]\r
},\r
{\r
- "id": "27150b59.a15c7c",\r
+ "id": "fe4ed86b.9ca41",\r
"type": "success",\r
"name": "success",\r
"xml": "<outcome value='success'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2213.000244140625,\r
- "y": 254,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2267.000244140625,\r
+ "y": 244,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "45766a62.487964"\r
+ "f8f7918f.b05da"\r
]\r
]\r
},\r
{\r
- "id": "45766a62.487964",\r
+ "id": "f8f7918f.b05da",\r
"type": "block",\r
"name": "block : atomic",\r
"xml": "<block atomic=\"true\">",\r
"atomic": "true",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2370.500244140625,\r
- "y": 254,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2424.500244140625,\r
+ "y": 244,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "ed8abc6a.23da9",\r
- "3075f0c3.b7397",\r
- "5530fe3e.d46a6"\r
+ "6837c77a.4d245",\r
+ "945331d0.def158"\r
]\r
]\r
},\r
{\r
- "id": "679734df.7d768c",\r
+ "id": "c26cc871.32d778",\r
"type": "returnFailure",\r
"name": "return failure",\r
"xml": "<return status='failure'>\n <parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",\r
"comments": "",\r
- "x": 2347.000244140625,\r
- "y": 154,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2401.000244140625,\r
+ "y": 144,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "10804f14.8fac71",\r
+ "id": "6e1598d4.05ae",\r
"type": "failure",\r
"name": "failure",\r
"xml": "<outcome value='failure'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2209.000244140625,\r
- "y": 154,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2263.000244140625,\r
+ "y": 144,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "679734df.7d768c"\r
+ "c26cc871.32d778"\r
]\r
]\r
},\r
{\r
- "id": "fb65e652.c18e18",\r
+ "id": "74011233.c1b04c",\r
"type": "dgstart",\r
"name": "DGSTART",\r
"outputs": 1,\r
- "x": 116,\r
- "y": 65,\r
- "z": "1b18cff5.bba51",\r
+ "x": 170,\r
+ "y": 55,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "5fd8c6ae.cf15e8"\r
+ "7dcd2a77.b03e04"\r
]\r
]\r
},\r
{\r
- "id": "5fd8c6ae.cf15e8",\r
+ "id": "7dcd2a77.b03e04",\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": 129,\r
- "y": 125,\r
- "z": "1b18cff5.bba51",\r
+ "x": 183,\r
+ "y": 115,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "7c6d0d29.a4e9cc"\r
+ "e046753f.a8811"\r
]\r
]\r
},\r
{\r
- "id": "7c6d0d29.a4e9cc",\r
+ "id": "e046753f.a8811",\r
"type": "method",\r
"name": "method esr-thirdparty-sdnc-discovery",\r
"xml": "<method rpc='esr-thirdparty-sdnc-discovery' mode='sync'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 149,\r
- "y": 205,\r
- "z": "1b18cff5.bba51",\r
+ "x": 203,\r
+ "y": 195,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "d5da3f05.d59de8"\r
+ "a7955eaa.8ebd"\r
]\r
]\r
},\r
{\r
- "id": "d5da3f05.d59de8",\r
+ "id": "a7955eaa.8ebd",\r
"type": "block",\r
"name": "block : atomic",\r
"xml": "<block atomic=\"true\">\n",\r
"atomic": "false",\r
"comments": "",\r
"outputs": 1,\r
- "x": 396.5,\r
- "y": 205,\r
- "z": "1b18cff5.bba51",\r
+ "x": 450.5,\r
+ "y": 195,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "94fe0252.df11a8"\r
+ "cee74437.1c5038"\r
]\r
]\r
},\r
{\r
- "id": "ed8abc6a.23da9",\r
+ "id": "6837c77a.4d245",\r
"type": "for",\r
"name": "for each Network",\r
"xml": "<for index='nidx' start='0' end='`$topology.networks.network_length`' >\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2609.500244140625,\r
- "y": 214,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2663.500244140625,\r
+ "y": 204,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "9a721924.2f2028"\r
+ "d73b1be.693fde8"\r
]\r
]\r
},\r
{\r
- "id": "9a721924.2f2028",\r
+ "id": "d73b1be.693fde8",\r
"type": "block",\r
"name": "block",\r
"xml": "<block>\n",\r
"atomic": "false",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2786.000244140625,\r
- "y": 209,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2840.000244140625,\r
+ "y": 199,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "6726d129.2959a",\r
- "896230f8.99ca6"\r
+ "1071ecfb.db6683",\r
+ "22040d8e.81ad3a"\r
]\r
]\r
},\r
{\r
- "id": "6726d129.2959a",\r
+ "id": "1071ecfb.db6683",\r
"type": "call",\r
"name": "call update-network-to-aai",\r
"xml": "<call module='DataChange' rpc='update-network-to-aai' mode='sync' >\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2965.000244140625,\r
- "y": 229,\r
- "z": "1b18cff5.bba51",\r
+ "x": 3019.000244140625,\r
+ "y": 219,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "896230f8.99ca6",\r
+ "id": "22040d8e.81ad3a",\r
"type": "set",\r
"name": "set network",\r
"xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$nidx].`' />\n",\r
"comments": "",\r
- "x": 2920.000244140625,\r
- "y": 189,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2974.000244140625,\r
+ "y": 179,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "95fadd6c.fb4588",\r
+ "id": "929ec7a5.9a46b8",\r
"type": "block",\r
"name": "block",\r
"xml": "<block>\n",\r
"atomic": "false",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1869.000244140625,\r
- "y": 154,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1923.000244140625,\r
+ "y": 144,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "8fa7ac01.7e9068",\r
+ "id": "a95e321b.626b1",\r
"type": "comment",\r
"name": "Do Nothing",\r
"info": "",\r
"comments": "",\r
- "x": 2039.000244140625,\r
- "y": 194,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2093.000244140625,\r
+ "y": 184,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "4076575b.04c63",\r
+ "id": "30eb5834.80e7d",\r
"type": "switchNode",\r
"name": "switch type",\r
"xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 916,\r
- "y": 290,\r
- "z": "1b18cff5.bba51",\r
+ "x": 970,\r
+ "y": 280,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "e5bd5122.002238",\r
- "6d8d65c8.0b06bc",\r
- "b3287819.8ca7c",\r
- "4433c168.8e0cb"\r
+ "bad9968b.bbaf5",\r
+ "826758bc.846648",\r
+ "f43baf3c.399558",\r
+ "6e19e1c4.aa4d28"\r
]\r
]\r
},\r
{\r
- "id": "afc79595.03a058",\r
+ "id": "d7605eba.de53c8",\r
"type": "block",\r
"name": "block",\r
"xml": "<block>\n",\r
"atomic": "false",\r
"comments": "",\r
"outputs": 1,\r
- "x": 783,\r
- "y": 290,\r
- "z": "1b18cff5.bba51",\r
+ "x": 837,\r
+ "y": 280,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "4076575b.04c63"\r
+ "30eb5834.80e7d"\r
]\r
]\r
},\r
{\r
- "id": "e5bd5122.002238",\r
+ "id": "bad9968b.bbaf5",\r
"type": "other",\r
"name": "SOTN",\r
"xml": "<outcome value='SOTN'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1029,\r
- "y": 201,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1083,\r
+ "y": 191,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "c970e0d9.988dc8"\r
+ "6a609919.dbddb"\r
]\r
]\r
},\r
{\r
- "id": "6d8d65c8.0b06bc",\r
+ "id": "826758bc.846648",\r
"type": "other",\r
"name": "other",\r
"xml": "<outcome value='Other'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1031.000087738037,\r
- "y": 750.0001106262207,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1085.000087738037,\r
+ "y": 740.0001106262207,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "f76541c6.503d4"\r
+ "8d466c1d.2dbd88"\r
]\r
]\r
},\r
{\r
- "id": "f76541c6.503d4",\r
+ "id": "8d466c1d.2dbd88",\r
"type": "returnFailure",\r
"name": "return failure",\r
"xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unsupported type = ' + $prop.sdncRestApi.type`\" />\n\n",\r
"comments": "",\r
- "x": 1181.0000610351562,\r
- "y": 746.0000972747803,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1235.0000610351562,\r
+ "y": 736.0000972747803,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "b93333aa.1c0a7",\r
+ "id": "a8db8257.07cda8",\r
"type": "execute",\r
"name": "execute Properties",\r
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1410.0001983642578,\r
- "y": 82.00000953674316,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1464.0001983642578,\r
+ "y": 72.00000953674316,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "6bfd56ef.86aba8",\r
+ "id": "49ad06a0.4e0b98",\r
"type": "switchNode",\r
"name": "switch prop.sdncRestApi.token_id",\r
"xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1456.5001983642578,\r
- "y": 202.00000953674316,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1510.5001983642578,\r
+ "y": 192.00000953674316,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "ec0b1f86.de86a8",\r
- "d869f67b.6cbd68"\r
+ "8c8153ea.0d28b8",\r
+ "f01555ec.92788"\r
]\r
]\r
},\r
{\r
- "id": "ec0b1f86.de86a8",\r
+ "id": "8c8153ea.0d28b8",\r
"type": "other",\r
"name": "Null",\r
"xml": "<outcome value=''>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1749.000244140625,\r
- "y": 194,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1803.000244140625,\r
+ "y": 184,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "36410877.b60b2"\r
+ "6e76fd4a.c154c4"\r
]\r
]\r
},\r
{\r
- "id": "d869f67b.6cbd68",\r
+ "id": "f01555ec.92788",\r
"type": "other",\r
"name": "other",\r
"xml": "<outcome value='Other'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1749.000244140625,\r
- "y": 234,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1803.000244140625,\r
+ "y": 224,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "d863483.fe451b8"\r
+ "3afa5b8a.d8b45c"\r
]\r
]\r
},\r
{\r
- "id": "36410877.b60b2",\r
+ "id": "6e76fd4a.c154c4",\r
"type": "execute",\r
"name": "execute RestApiCallNode Get Topology",\r
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"topology\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1970.500244140625,\r
- "y": 194,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2024.500244140625,\r
+ "y": 184,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "10804f14.8fac71",\r
- "27150b59.a15c7c"\r
+ "6e1598d4.05ae",\r
+ "fe4ed86b.9ca41"\r
]\r
]\r
},\r
{\r
- "id": "9dd42ebd.c3ec58",\r
+ "id": "8b00173e.a90248",\r
"type": "execute",\r
"name": "execute RestconfDiscoveryNode",\r
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='establishSubscription' >\n<parameter name=\"subscriberId\" value=\"sotn-controller\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ietf-subscribed-notifications:establish-subscription'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"sseConnectURL\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/streams/yang-push-json'`\" />\n<parameter name=\"dirPath\" value=\"/opt/sdnc/restconfapi/yang/notification\" />\n<parameter name=\"format\" value=\"json\" />\n<parameter name=\"httpMethod\" value=\"post\" />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />\n<parameter name=\"module\" value=\"DataChange\" />\n<parameter name=\"rpc\" value=\"sotn-notification-handler\" />\n<parameter name=\"mode\" value=\"sync\" />",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1453.0001983642578,\r
- "y": 342.00000953674316,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1507.0001983642578,\r
+ "y": 332.00000953674316,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "29c878c8.6e2e3",\r
+ "id": "5d1f20b8.954bc8",\r
"type": "set",\r
"name": "set encoding-format",\r
"xml": "<set>\n<parameter name='input' value='ietf-subscribed-notifications:establish-subscription.input.' />\n<parameter name=\"`$input + 'encoding'`\" value=\"encode-json\" />",\r
"comments": "",\r
- "x": 1413.0001983642578,\r
- "y": 302.00000953674316,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1467.0001983642578,\r
+ "y": 292.00000953674316,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "6c35f59f.31aaf4",\r
+ "id": "720c5fa5.cf9fc8",\r
"type": "comment",\r
"name": "Notification subscription",\r
"info": "",\r
"comments": "",\r
- "x": 1418.000343322754,\r
- "y": 259.00000858306885,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1472.000343322754,\r
+ "y": 249.00000858306885,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "94fe0252.df11a8",\r
+ "id": "cee74437.1c5038",\r
"type": "switchNode",\r
"name": "switch",\r
"xml": "<switch test=\"`$prop.sdncRestApi.vendor == 'ZTE'`\">\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 103,\r
- "y": 330,\r
- "z": "1b18cff5.bba51",\r
+ "x": 157,\r
+ "y": 320,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "97112dfb.d25148",\r
- "c86f88a8.e3654"\r
+ "68735a94.d40f5c",\r
+ "ab95c3e8.90657"\r
]\r
]\r
},\r
{\r
- "id": "97112dfb.d25148",\r
+ "id": "68735a94.d40f5c",\r
"type": "outcomeFalse",\r
"name": "false",\r
"xml": "<outcome value='false'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 290,\r
- "y": 330,\r
- "z": "1b18cff5.bba51",\r
+ "x": 344,\r
+ "y": 320,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "493ee223.06b5cc"\r
+ "78227710.8145c"\r
]\r
]\r
},\r
{\r
- "id": "c86f88a8.e3654",\r
+ "id": "ab95c3e8.90657",\r
"type": "outcomeTrue",\r
"name": "true",\r
"xml": "<outcome value='true'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 291,\r
- "y": 455,\r
- "z": "1b18cff5.bba51",\r
+ "x": 345,\r
+ "y": 445,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "31c62e46.1b6bfa"\r
+ "9bf3753b.e16a38"\r
]\r
]\r
},\r
{\r
- "id": "31c62e46.1b6bfa",\r
+ "id": "9bf3753b.e16a38",\r
"type": "call",\r
"name": "call esr-thirdparty-sdnc-of-zte",\r
"xml": "<call module='DataChange' rpc='esr-thirdparty-sdnc-of-zte' mode='sync' >\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 514,\r
- "y": 455,\r
- "z": "1b18cff5.bba51",\r
+ "x": 568,\r
+ "y": 445,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "b3287819.8ca7c",\r
+ "id": "f43baf3c.399558",\r
"type": "other",\r
"name": "TAPI",\r
"xml": "<outcome value='TAPI'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1107,\r
- "y": 435,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1161,\r
+ "y": 425,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "a1b223fc.4bfc8"\r
+ "75540bd7.9ba5f4"\r
]\r
]\r
},\r
{\r
- "id": "a1b223fc.4bfc8",\r
+ "id": "75540bd7.9ba5f4",\r
"type": "block",\r
"name": "block : atomic",\r
"xml": "<block atomic=\"true\">",\r
"atomic": "true",\r
"outputs": 1,\r
- "x": 1270,\r
- "y": 434,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1324,\r
+ "y": 424,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "2ba90d0d.a5469a"\r
+ "a24deaa6.af3108"\r
]\r
]\r
},\r
{\r
- "id": "2ba90d0d.a5469a",\r
+ "id": "a24deaa6.af3108",\r
"type": "execute",\r
"name": "execute",\r
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/cxf/tapi/v2/topologies?topology-id-or-name=otn'`\"/> \n <parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\"/> \n <parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\"/> \n <parameter name=\"format\" value=\"json\"/> \n <parameter name=\"httpMethod\" value=\"get\"/> \n <parameter name=\"responsePrefix\" value=\"topologies\"/>\n <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks\"/> \n <parameter name=\"trustStorePassword\" value=\"adminadmin\"/> \n <parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/> \n <parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1431,\r
- "y": 433,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1485,\r
+ "y": 423,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "e4e0c00a.96655",\r
- "8857c3bd.cbf58"\r
+ "cdd2d534.962938",\r
+ "363290e2.c2512"\r
]\r
]\r
},\r
{\r
- "id": "8857c3bd.cbf58",\r
+ "id": "363290e2.c2512",\r
"type": "success",\r
"name": "success",\r
"xml": "<outcome value='success'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1573,\r
- "y": 509,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1627,\r
+ "y": 499,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "5009a48f.6c9144"\r
+ "91d6cda6.f47358"\r
]\r
]\r
},\r
{\r
- "id": "e4e0c00a.96655",\r
+ "id": "cdd2d534.962938",\r
"type": "failure",\r
"name": "failure",\r
"xml": "<outcome value='failure'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1607,\r
- "y": 430,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1661,\r
+ "y": 420,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "3d3fabb0.3b7c64"\r
+ "78d89c1.df36ce4"\r
]\r
]\r
},\r
{\r
- "id": "3d3fabb0.3b7c64",\r
+ "id": "78d89c1.df36ce4",\r
"type": "returnFailure",\r
"name": "return failure",\r
"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 topology TAPI rest api\" />\n\n",\r
"comments": "",\r
- "x": 1777,\r
- "y": 429,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1831,\r
+ "y": 419,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "5009a48f.6c9144",\r
+ "id": "91d6cda6.f47358",\r
"type": "block",\r
"name": "block : atomic",\r
"xml": "<block atomic=\"true\">",\r
"atomic": "true",\r
"outputs": 1,\r
- "x": 1734,\r
- "y": 508,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1788,\r
+ "y": 498,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "7bccde97.6587f8"\r
+ "68a08572.6d4e94"\r
]\r
]\r
},\r
{\r
- "id": "7bccde97.6587f8",\r
+ "id": "68a08572.6d4e94",\r
"type": "for",\r
"name": "for each topology",\r
"xml": "<for index='tidx' start='0' end=\"`$topologies.topology_length`\" >\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1913,\r
- "y": 508,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1967,\r
+ "y": 498,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "b488f25e.063e58"\r
+ "e2491c10.3a12"\r
]\r
]\r
},\r
{\r
- "id": "b488f25e.063e58",\r
+ "id": "e2491c10.3a12",\r
"type": "block",\r
"name": "block",\r
"xml": "<block>\n",\r
"atomic": "false",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2080,\r
- "y": 509,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2134,\r
+ "y": 499,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "5387bb7e.ccfa04",\r
- "58ce3e1c.538878"\r
+ "b1c3c921.3c12a",\r
+ "b5a39927.d40208"\r
]\r
]\r
},\r
{\r
- "id": "5387bb7e.ccfa04",\r
+ "id": "b1c3c921.3c12a",\r
"type": "set",\r
"name": "set topology",\r
"xml": "<set>\n<parameter name='topology.' value='`$topologies.topology[$tidx].`' />\n",\r
"comments": "",\r
- "x": 2239,\r
- "y": 510,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2293,\r
+ "y": 500,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "58ce3e1c.538878",\r
+ "id": "b5a39927.d40208",\r
"type": "call",\r
"name": "call tapi-update-network-to-aai",\r
"xml": "<call module='DataChange' rpc='tapi-update-network-to-aai' mode='sync' >\n\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2230,\r
- "y": 576,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2284,\r
+ "y": 566,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "4433c168.8e0cb",\r
+ "id": "6e19e1c4.aa4d28",\r
"type": "outcome",\r
"name": "MSA",\r
"xml": "<outcome value='MSA'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1077.677324295044,\r
- "y": 591.8993349075317,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1131.677324295044,\r
+ "y": 581.8993349075317,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "e65be9ee.c7b3b"\r
+ "4227a936.fe14d"\r
]\r
]\r
},\r
{\r
- "id": "e65be9ee.c7b3b",\r
+ "id": "4227a936.fe14d",\r
"type": "block",\r
"name": "block : atomic",\r
"xml": "<block atomic=\"true\">",\r
"atomic": "true",\r
"outputs": 1,\r
- "x": 1239.6773872375488,\r
- "y": 589.899335861206,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1293.6773872375488,\r
+ "y": 579.899335861206,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "35fd633c.bf4964"\r
+ "f20725de.f4794"\r
]\r
]\r
},\r
{\r
- "id": "35fd633c.bf4964",\r
+ "id": "f20725de.f4794",\r
"type": "execute",\r
"name": "execute",\r
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/cxf/openroadm/v2/networks/otn-topology'`\"/> \n <parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\"/> \n <parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\"/> \n <parameter name=\"format\" value=\"json\"/> \n <parameter name=\"httpMethod\" value=\"get\"/> \n <parameter name=\"responsePrefix\" value=\"networks\"/>\n <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.msa.jks\"/> \n <parameter name=\"trustStorePassword\" value=\"adminadmin\"/> \n <parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/> \n <parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1416.6771354675293,\r
- "y": 581.8992919921875,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1470.6771354675293,\r
+ "y": 571.8992919921875,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "7a243e03.e07788",\r
- "31b0685e.813ca8"\r
+ "49b0fd8b.249e2c",\r
+ "792d01db.8d11"\r
]\r
]\r
},\r
{\r
- "id": "7a243e03.e07788",\r
+ "id": "49b0fd8b.249e2c",\r
"type": "failure",\r
"name": "failure",\r
"xml": "<outcome value='failure'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1569.6771354675293,\r
- "y": 578.8992919921875,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1623.6771354675293,\r
+ "y": 568.8992919921875,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "a65ca6e4.09ef28"\r
+ "85d21e1a.a14be8"\r
]\r
]\r
},\r
{\r
- "id": "a65ca6e4.09ef28",\r
+ "id": "85d21e1a.a14be8",\r
"type": "returnFailure",\r
"name": "return failure",\r
"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 topology MSA rest api\" />\n\n",\r
"comments": "",\r
- "x": 1744.6771354675293,\r
- "y": 577.8992919921875,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1798.6771354675293,\r
+ "y": 567.8992919921875,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "31b0685e.813ca8",\r
+ "id": "792d01db.8d11",\r
"type": "success",\r
"name": "success",\r
"xml": "<outcome value='success'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1575.6771354675293,\r
- "y": 651.8992919921875,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1629.6771354675293,\r
+ "y": 641.8992919921875,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "777a7a58.789fc4"\r
+ "d5110405.aee948"\r
]\r
]\r
},\r
{\r
- "id": "777a7a58.789fc4",\r
+ "id": "d5110405.aee948",\r
"type": "block",\r
"name": "block : atomic",\r
"xml": "<block atomic=\"true\">",\r
"atomic": "true",\r
"outputs": 1,\r
- "x": 1759.6771354675293,\r
- "y": 653.8992919921875,\r
- "z": "1b18cff5.bba51",\r
+ "x": 1813.6771354675293,\r
+ "y": 643.8992919921875,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "7575649a.153f4c"\r
+ "68851b61.ef75e4"\r
]\r
]\r
},\r
{\r
- "id": "7575649a.153f4c",\r
+ "id": "68851b61.ef75e4",\r
"type": "call",\r
"name": "call msa-update-network-to-aai",\r
"xml": "<call module='DataChange' rpc='msa-update-network-to-aai' mode='sync' >\n\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2038.677001953125,\r
- "y": 651.8992919921875,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2092.677001953125,\r
+ "y": 641.8992919921875,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "3075f0c3.b7397",\r
+ "id": "945331d0.def158",\r
"type": "switchNode",\r
"name": "switch network_length",\r
- "xml": "<switch test='`$topology.networks.network_length`'>\n",\r
+ "xml": "<switch test='`$topology.networks.network_length >= 2`'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2630,\r
- "y": 320,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2684,\r
+ "y": 310,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "8524dca2.aeded8"\r
+ "901d4e1a.652118",\r
+ "11935c8a.a490ab"\r
]\r
]\r
},\r
{\r
- "id": "8524dca2.aeded8",\r
+ "id": "9c61f388.1f0838",\r
"type": "outcome",\r
"name": "2 Topologies (1 Domain)",\r
"xml": "<outcome value='2'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2904,\r
- "y": 320,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2894,\r
+ "y": 611,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
- [\r
- "b33095ec.9e9e"\r
- ]\r
+ []\r
]\r
},\r
{\r
- "id": "b33095ec.9e9e",\r
+ "id": "326c6d24.4336b2",\r
"type": "switchNode",\r
"name": "switch network-types[0]",\r
"xml": "<switch test='`$topology.networks.network[0].network-types`'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3272,\r
- "y": 305,\r
- "z": "1b18cff5.bba51",\r
+ "x": 4603,\r
+ "y": 400,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "d9671ae7.1f2ac",\r
- "8d2f7cad.ac7078"\r
+ "709f94a4.b34cf4",\r
+ "9cfb2d7f.448bd8"\r
]\r
]\r
},\r
{\r
- "id": "d9671ae7.1f2ac",\r
+ "id": "709f94a4.b34cf4",\r
"type": "outcome",\r
"name": "ethernet-topology",\r
"xml": "<outcome value='ethernet-topology'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3488,\r
- "y": 305,\r
- "z": "1b18cff5.bba51",\r
+ "x": 4819,\r
+ "y": 400,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "9105249.2609cd8"\r
+ "6ad78f52.8d683"\r
]\r
]\r
},\r
{\r
- "id": "9105249.2609cd8",\r
+ "id": "6ad78f52.8d683",\r
"type": "switchNode",\r
"name": "switch network-types[1]",\r
"xml": "<switch test='`$topology.networks.network[1].network-types`'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3713,\r
- "y": 305,\r
- "z": "1b18cff5.bba51",\r
+ "x": 5044,\r
+ "y": 400,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "9ce7c86d.2eb2d8",\r
- "36497843.e3494"\r
+ "4e12c36c.f82d3c",\r
+ "17b8d1f3.652706"\r
]\r
]\r
},\r
{\r
- "id": "9ce7c86d.2eb2d8",\r
+ "id": "4e12c36c.f82d3c",\r
"type": "outcome",\r
"name": "otn-topology",\r
"xml": "<outcome value='otn-topology'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3949,\r
- "y": 258,\r
- "z": "1b18cff5.bba51",\r
+ "x": 5280,\r
+ "y": 353,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "637acfae.0f124"\r
+ "cd9d2417.06096"\r
]\r
]\r
},\r
{\r
- "id": "f3d25251.c6e91",\r
+ "id": "172a24d9.92ec93",\r
"type": "call",\r
"name": "call update-tp-ttp-relationship",\r
"xml": "<call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' >\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 4365,\r
- "y": 246,\r
- "z": "1b18cff5.bba51",\r
+ "x": 5696,\r
+ "y": 341,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "741e41f5.1da6",\r
+ "id": "61a560e1.35c54",\r
"type": "set",\r
"name": "set networks",\r
"xml": "<set>\n<parameter name='network-eth.' value='`$topology.networks.network[0].`' />\n<parameter name='network-otn.' value='`$topology.networks.network[1].`' />\n",\r
"comments": "",\r
- "x": 4321,\r
- "y": 155,\r
- "z": "1b18cff5.bba51",\r
+ "x": 5541,\r
+ "y": 207,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "8d2f7cad.ac7078",\r
+ "id": "9cfb2d7f.448bd8",\r
"type": "outcome",\r
"name": "otn-topology",\r
"xml": "<outcome value='otn-topology'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3493,\r
- "y": 362,\r
- "z": "1b18cff5.bba51",\r
+ "x": 4824,\r
+ "y": 457,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "a8d319cf.4bc79"\r
+ "f16b5928.2b534"\r
]\r
]\r
},\r
{\r
- "id": "637acfae.0f124",\r
+ "id": "cd9d2417.06096",\r
"type": "block",\r
"name": "block",\r
"xml": "<block>\n",\r
"atomic": "false",\r
"comments": "",\r
"outputs": 1,\r
- "x": 4131,\r
- "y": 232,\r
- "z": "1b18cff5.bba51",\r
+ "x": 5462,\r
+ "y": 327,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "741e41f5.1da6",\r
- "f3d25251.c6e91"\r
+ "61a560e1.35c54",\r
+ "172a24d9.92ec93"\r
]\r
]\r
},\r
{\r
- "id": "a8d319cf.4bc79",\r
+ "id": "f16b5928.2b534",\r
"type": "switchNode",\r
"name": "switch network-types[1]",\r
"xml": "<switch test='`$topology.networks.network[1].network-types`'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3712,\r
- "y": 364,\r
- "z": "1b18cff5.bba51",\r
+ "x": 5043,\r
+ "y": 459,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "5531c9a0.612ad8",\r
- "182315db.ba9502"\r
+ "b02955b9.ece2c",\r
+ "1f0d239a.a59004"\r
]\r
]\r
},\r
{\r
- "id": "36497843.e3494",\r
+ "id": "17b8d1f3.652706",\r
"type": "other",\r
"name": "other",\r
"xml": "<outcome value='Other'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3943,\r
- "y": 317,\r
- "z": "1b18cff5.bba51",\r
+ "x": 5274,\r
+ "y": 412,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "695f6a27.1421dc"\r
+ "d245d127.681cb"\r
]\r
]\r
},\r
{\r
- "id": "695f6a27.1421dc",\r
+ "id": "d245d127.681cb",\r
"type": "returnFailure",\r
"name": "return failure",\r
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
"comments": "",\r
- "x": 4145,\r
- "y": 315,\r
- "z": "1b18cff5.bba51",\r
+ "x": 5476,\r
+ "y": 410,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "5531c9a0.612ad8",\r
+ "id": "b02955b9.ece2c",\r
"type": "outcome",\r
"name": "ethernet-topology",\r
"xml": "<outcome value='ethernet-topology'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3935,\r
- "y": 378,\r
- "z": "1b18cff5.bba51",\r
+ "x": 5266,\r
+ "y": 473,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "842f72e1.b17048"\r
+ "a776716e.08be98"\r
]\r
]\r
},\r
{\r
- "id": "3a98f05a.e5da8",\r
+ "id": "b2d9af5c.6d71e8",\r
"type": "set",\r
"name": "set networks",\r
"xml": "<set>\n<parameter name='network.eth' value='`$topology.networks.network[1].`' />\n<parameter name='network.otn' value='`$topology.networks.network[0].`' />\n",\r
"comments": "",\r
- "x": 4351,\r
- "y": 359,\r
- "z": "1b18cff5.bba51",\r
+ "x": 5682,\r
+ "y": 454,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "182315db.ba9502",\r
+ "id": "1f0d239a.a59004",\r
"type": "other",\r
"name": "other",\r
"xml": "<outcome value='Other'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3894,\r
- "y": 439,\r
- "z": "1b18cff5.bba51",\r
+ "x": 5225,\r
+ "y": 534,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "ac618cc1.491d7"\r
+ "7a25521e.b55894"\r
]\r
]\r
},\r
{\r
- "id": "ac618cc1.491d7",\r
+ "id": "7a25521e.b55894",\r
"type": "returnFailure",\r
"name": "return failure",\r
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
"comments": "",\r
- "x": 4063,\r
- "y": 446,\r
- "z": "1b18cff5.bba51",\r
+ "x": 5370,\r
+ "y": 541,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "842f72e1.b17048",\r
+ "id": "a776716e.08be98",\r
"type": "block",\r
"name": "block",\r
"xml": "<block>\n",\r
"atomic": "false",\r
"comments": "",\r
"outputs": 1,\r
- "x": 4113,\r
- "y": 374,\r
- "z": "1b18cff5.bba51",\r
+ "x": 5444,\r
+ "y": 469,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "3a98f05a.e5da8",\r
- "225dfddc.2a0cba"\r
+ "b2d9af5c.6d71e8",\r
+ "7141defd.d7f3a8"\r
]\r
]\r
},\r
{\r
- "id": "5530fe3e.d46a6",\r
+ "id": "1a8710e5.1ad6b7",\r
"type": "get-resource",\r
"name": "get-resource network-resources",\r
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"network-resources\" \n pfx='tmp.aai.network-resources' local-only='false' >\n\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2617,\r
- "y": 510,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2504,\r
+ "y": 784,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "d9e48832.552bd8",\r
- "59795789.351ce",\r
- "61ad07cf.dca3e8"\r
+ "3a8bf069.f85ce",\r
+ "aebcabff.82acc",\r
+ "1f447726.4be529"\r
]\r
]\r
},\r
{\r
- "id": "d9e48832.552bd8",\r
+ "id": "3a8bf069.f85ce",\r
"type": "success",\r
"name": "success",\r
"xml": "<outcome value='success'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2870,\r
- "y": 428,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2757,\r
+ "y": 702,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "aa408c9d.56c38"\r
+ "e98ead73.d60f3"\r
]\r
]\r
},\r
{\r
- "id": "59795789.351ce",\r
+ "id": "aebcabff.82acc",\r
"type": "not-found",\r
"name": "not-found",\r
"xml": "<outcome value='not-found'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2873.490966796875,\r
- "y": 475.57403564453125,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2760.490966796875,\r
+ "y": 749.5740356445312,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "c28a983a.0204"\r
+ "94257a05.fc968"\r
]\r
]\r
},\r
{\r
- "id": "61ad07cf.dca3e8",\r
+ "id": "1f447726.4be529",\r
"type": "other",\r
"name": "other",\r
"xml": "<outcome value='Other'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 2861.823974609375,\r
- "y": 519.9073486328125,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2748.823974609375,\r
+ "y": 793.9073486328125,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "781b901c.45ff08"\r
+ "fe4ab328.74eee"\r
]\r
]\r
},\r
{\r
- "id": "225dfddc.2a0cba",\r
+ "id": "7141defd.d7f3a8",\r
"type": "call",\r
"name": "call update-tp-ttp-relationship",\r
"xml": "<call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' >\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 4386,\r
- "y": 425,\r
- "z": "1b18cff5.bba51",\r
+ "x": 5717,\r
+ "y": 520,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "11abef7e.ad2629",\r
+ "id": "db2f1670.e36278",\r
"type": "call",\r
"name": "call update-open-ended-links",\r
"xml": "<call module='DataChange' rpc='update-open-ended-links' mode='sync' >\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3658,\r
- "y": 683,\r
- "z": "1b18cff5.bba51",\r
+ "x": 3712,\r
+ "y": 737,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "aa408c9d.56c38",\r
+ "id": "e98ead73.d60f3",\r
"type": "switchNode",\r
"name": "switch network-resources_length",\r
"xml": "<switch test='tmp.aai.network-resources_length'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3085,\r
- "y": 426,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2972,\r
+ "y": 700,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "13de82c2.31f6ad"\r
+ "c72d2527.4f27d8"\r
]\r
]\r
},\r
{\r
- "id": "13de82c2.31f6ad",\r
+ "id": "c72d2527.4f27d8",\r
"type": "outcome",\r
"name": "4 Topologies (2 Domains)",\r
"xml": "<outcome value='4'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3362,\r
- "y": 425,\r
- "z": "1b18cff5.bba51",\r
+ "x": 3233,\r
+ "y": 700,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "e4acb7eb.00534"\r
+ "3dcb11c5.a0564e"\r
]\r
]\r
},\r
{\r
- "id": "c28a983a.0204",\r
+ "id": "94257a05.fc968",\r
"type": "returnFailure",\r
"name": "return failure",\r
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
"comments": "",\r
- "x": 3046,\r
- "y": 476,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2933,\r
+ "y": 750,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "781b901c.45ff08",\r
+ "id": "fe4ab328.74eee",\r
"type": "returnFailure",\r
"name": "return failure",\r
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
"comments": "",\r
- "x": 3035,\r
- "y": 522,\r
- "z": "1b18cff5.bba51",\r
+ "x": 2922,\r
+ "y": 796,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "3daf0b35.8056dc",\r
+ "id": "6b9df565.677604",\r
"type": "for",\r
"name": "for each network-resource",\r
"xml": "<for index='nridx' start='0' end='`$tmp.aai.network-resources.network-resource_length`' >\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3677,\r
- "y": 476,\r
- "z": "1b18cff5.bba51",\r
+ "x": 3695,\r
+ "y": 664,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "a478abea.aef858"\r
+ "db1ad019.66229"\r
]\r
]\r
},\r
{\r
- "id": "a478abea.aef858",\r
+ "id": "db1ad019.66229",\r
"type": "block",\r
"name": "block",\r
"xml": "<block>\n",\r
"atomic": "false",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3836,\r
- "y": 575,\r
- "z": "1b18cff5.bba51",\r
+ "x": 3924,\r
+ "y": 690,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "672de2b7.6fadec",\r
- "b7971e38.4fdc88"\r
+ "9c9a1adf.4a9568",\r
+ "df8384d1.95fc28"\r
]\r
]\r
},\r
{\r
- "id": "672de2b7.6fadec",\r
+ "id": "9c9a1adf.4a9568",\r
"type": "switchNode",\r
"name": "switch network-types[nridx]",\r
"xml": "<switch test='`$tmp.aai.network-resources.network-resource[$nridx].network-type`'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 4043,\r
- "y": 568,\r
- "z": "1b18cff5.bba51",\r
+ "x": 4197,\r
+ "y": 715,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "8b03cc56.be0278"\r
+ "be613956.e7594"\r
]\r
]\r
},\r
{\r
- "id": "8b03cc56.be0278",\r
+ "id": "be613956.e7594",\r
"type": "outcome",\r
"name": "otn-topology",\r
"xml": "<outcome value='otn-topology'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 4256,\r
- "y": 562,\r
- "z": "1b18cff5.bba51",\r
+ "x": 4410,\r
+ "y": 709,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "5b2aaa85.617b44"\r
+ "a82463e6.b9c248"\r
]\r
]\r
},\r
{\r
- "id": "7c2a6199.8c29b",\r
+ "id": "369083d8.76a43c",\r
"type": "set",\r
"name": "set network-resource-otn[$otnidx]",\r
"xml": "<set>\n<parameter name='network-resource-otn[$otnidx].' value='`$tmp.aai.network-resources.network-resource[$nridx].`' />\n",\r
"comments": "",\r
- "x": 4622,\r
- "y": 555,\r
- "z": "1b18cff5.bba51",\r
+ "x": 4776,\r
+ "y": 702,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "b7971e38.4fdc88",\r
+ "id": "df8384d1.95fc28",\r
"type": "set",\r
"name": "set otnidx",\r
"xml": "<set>\n<parameter name='otnidx' value='0' />\n",\r
"comments": "",\r
- "x": 3988,\r
- "y": 526,\r
- "z": "1b18cff5.bba51",\r
+ "x": 4142,\r
+ "y": 673,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "ee5c6cf6.44a0c",\r
+ "id": "fd786916.269048",\r
"type": "set",\r
"name": "set otnidx",\r
"xml": "<set>\n<parameter name='otnidx' value='`$otnidx + 1`' />\n",\r
"comments": "",\r
- "x": 4539,\r
- "y": 607,\r
- "z": "1b18cff5.bba51",\r
+ "x": 4693,\r
+ "y": 754,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": []\r
},\r
{\r
- "id": "5b2aaa85.617b44",\r
+ "id": "a82463e6.b9c248",\r
"type": "block",\r
"name": "block",\r
"xml": "<block>\n",\r
"atomic": "false",\r
"comments": "",\r
"outputs": 1,\r
- "x": 4402,\r
- "y": 575,\r
- "z": "1b18cff5.bba51",\r
+ "x": 4556,\r
+ "y": 722,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "7c2a6199.8c29b",\r
- "ee5c6cf6.44a0c"\r
+ "369083d8.76a43c",\r
+ "fd786916.269048"\r
]\r
]\r
},\r
{\r
- "id": "e4acb7eb.00534",\r
+ "id": "3dcb11c5.a0564e",\r
"type": "block",\r
"name": "block : atomic",\r
"xml": "<block atomic='true'>",\r
"atomic": "true",\r
"comments": "",\r
"outputs": 1,\r
- "x": 3456,\r
- "y": 499,\r
- "z": "1b18cff5.bba51",\r
+ "x": 3449,\r
+ "y": 695,\r
+ "z": "1620e9e3.f93e5e",\r
"wires": [\r
[\r
- "3daf0b35.8056dc",\r
- "11abef7e.ad2629"\r
+ "6b9df565.677604",\r
+ "db2f1670.e36278"\r
]\r
]\r
+ },\r
+ {\r
+ "id": "901d4e1a.652118",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2866,\r
+ "y": 311,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": [\r
+ [\r
+ "2165924a.476cde"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "11935c8a.a490ab",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2868,\r
+ "y": 358,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": [\r
+ [\r
+ "94ef4628.95e6b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "94ef4628.95e6b8",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logSdncDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"networks_length\" />\n <parameter name=\"field3\" value=\"`$topology.networks.network_length`\" />\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2996,\r
+ "y": 360,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "2165924a.476cde",\r
+ "type": "for",\r
+ "name": "for each Network",\r
+ "xml": "<for index='netidx' start='0' end='`$topology.networks.network_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3039,\r
+ "y": 310,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": [\r
+ [\r
+ "115276c4.acec21"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "115276c4.acec21",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3209,\r
+ "y": 308,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": [\r
+ [\r
+ "2a57d05e.a0dc88",\r
+ "dde988af.f0e1f",\r
+ "ccc4b2dc.03b6",\r
+ "9266c042.cf422",\r
+ "b4168243.614878"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2a57d05e.a0dc88",\r
+ "type": "set",\r
+ "name": "set network",\r
+ "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$netidx].`' />\n",\r
+ "comments": "",\r
+ "x": 3375,\r
+ "y": 276,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "dde988af.f0e1f",\r
+ "type": "switchNode",\r
+ "name": "switch network-types with topologyId",\r
+ "xml": "<switch test='`$network.te-topology-id`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3420,\r
+ "y": 355,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": [\r
+ [\r
+ "eaf6a3f8.6275b",\r
+ "92b40685.e87b6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b3e974ed.02509",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logSdncDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"networks_length\" />\n <parameter name=\"field3\" value=\"`$topology.networks.network_length`\" />\n <parameter name=\"field4\" value=\"network-type-is\" />\n <parameter name=\"field5\" value=\"OTN\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3904,\r
+ "y": 245,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "eaf6a3f8.6275b",\r
+ "type": "outcome",\r
+ "name": "11",\r
+ "xml": "<outcome value='11'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3639,\r
+ "y": 309,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": [\r
+ [\r
+ "7df875b.d3cf70c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "92b40685.e87b6",\r
+ "type": "outcome",\r
+ "name": "33",\r
+ "xml": "<outcome value='33'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3639,\r
+ "y": 370,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": [\r
+ [\r
+ "16aa4525.8ff0c3"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d246fb34.c2a69",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logSdncDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"networks_length\" />\n <parameter name=\"field3\" value=\"`$topology.networks.network_length`\" />\n <parameter name=\"field4\" value=\"network-type-is\" />\n <parameter name=\"field5\" value=\"ETH\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3898,\r
+ "y": 370,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "50aa8e02.3ace68",\r
+ "type": "set",\r
+ "name": "set network-otn",\r
+ "xml": "<set>\n<parameter name='network-otn.' value='`$topology.networks.network[$netidx].`' />\n",\r
+ "comments": "",\r
+ "x": 3934,\r
+ "y": 315,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1ffaf146.64fab7",\r
+ "type": "set",\r
+ "name": "set networks",\r
+ "xml": "<set>\n<parameter name='network-eth.' value='`$topology.networks.network[$netidx].`' />\n",\r
+ "comments": "",\r
+ "x": 3916,\r
+ "y": 409,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ccc4b2dc.03b6",\r
+ "type": "set",\r
+ "name": "unset network",\r
+ "xml": "<set>\n<parameter name='network.' value='' />\n",\r
+ "comments": "",\r
+ "x": 3369,\r
+ "y": 222,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9266c042.cf422",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logSdncDiscovery.txt\" />\n <parameter name=\"field6\" value=\"network-otn-is\" />\n <parameter name=\"field7\" value=\"`$network-otn.te-topology-id`\" />\n <parameter name=\"field8\" value=\"network-eth-is\" />\n <parameter name=\"field9\" value=\"`$network-eth.te-topology-id`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3340,\r
+ "y": 480,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "7df875b.d3cf70c",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3770,\r
+ "y": 314,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": [\r
+ [\r
+ "b3e974ed.02509",\r
+ "50aa8e02.3ace68"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "16aa4525.8ff0c3",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3775,\r
+ "y": 391,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": [\r
+ [\r
+ "d246fb34.c2a69",\r
+ "1ffaf146.64fab7"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b4168243.614878",\r
+ "type": "call",\r
+ "name": "call update-tp-ttp-relationship",\r
+ "xml": "<call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3410,\r
+ "y": 531,\r
+ "z": "1620e9e3.f93e5e",\r
+ "wires": [\r
+ []\r
+ ]\r
}\r
]
\ No newline at end of file
-[
- {
- "id": "5858bb6c.1c5b2c",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 116,
- "y": 67,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "350dfcb7.24e654"
- ]
- ]
- },
- {
- "id": "350dfcb7.24e654",
- "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": 173,
- "y": 146.888916015625,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "92cd3521.3e4e6"
- ]
- ]
- },
- {
- "id": "92cd3521.3e4e6",
- "type": "method",
- "name": "method update-network-links-to-aai",
- "xml": "<method rpc='update-network-links-to-aai' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 187,
- "y": 223.22222900390625,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "b665c6f2.69a4d"
- ]
- ]
- },
- {
- "id": "b665c6f2.69a4d",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 198.33343505859375,
- "y": 300.7779235839844,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "c59c9b79.9f8cc"
- ]
- ]
- },
- {
- "id": "f41ff5d9.72c91",
- "type": "update",
- "name": "save logical-link with regular id",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link' \n key='logical-link.link-name = $unique-linkId' >\n<parameter name='link-name' value='`$unique-linkId`' />\n<parameter name='link-id' value='`$link.link-id`' />\n<parameter name='link-type' value='`$link.te.te-link-attributes.access-type`' />\n\n\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1156.111083984375,
- "y": 546.111083984375,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "c59c9b79.9f8cc",
- "type": "for",
- "name": "for each link",
- "xml": "<for index='pidx' start='0' end='`$network.link_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 226.88885498046875,
- "y": 394.33331298828125,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "6d5acc0f.b7df54",
- "8fbc8f1e.fe24c8",
- "954c1d48.971018",
- "915555f.abb44a8"
- ]
- ]
- },
- {
- "id": "6d5acc0f.b7df54",
- "type": "set",
- "name": "set network link's local variables",
- "xml": "<set>\n<parameter name='link.' value='`$network.link[$pidx].`' />\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n\n",
- "comments": "",
- "x": 572.111083984375,
- "y": 62.22221374511719,
- "z": "3cbec5d5.54ea02",
- "wires": []
- },
- {
- "id": "7a38f4d0.9f3e6c",
- "type": "for",
- "name": "for each label-restriction",
- "xml": "<for index='tidx' start='0' end='`$link.te.te-link-attributes.label-restriction_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1535.4444580078125,
- "y": 712.111083984375,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "556fc245.d19e3c",
- "d6c13a1b.e798a",
- "69e9f586.641064"
- ]
- ]
- },
- {
- "id": "556fc245.d19e3c",
- "type": "set",
- "name": "set label-restriction's local variables",
- "xml": "<set>\n<parameter name='label-restriction.' value='`$link.te.te-link-attributes.label-restriction[$tidx].`' />\n<parameter name='unique-lrId' value=\"`$unique-linkId + '-lrId-' + $label-restriction.index`\" />\n",
- "comments": "",
- "x": 1870.111328125,
- "y": 635.0000610351562,
- "z": "3cbec5d5.54ea02",
- "wires": []
- },
- {
- "id": "3398d2c0.69ae06",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2005.4998779296875,
- "y": 679.74609375,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "abb716be.3fb59"
- ]
- ]
- },
- {
- "id": "3d46f558.3e53f2",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2013.178466796875,
- "y": 738.9604187011719,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "f0df0cf2.e46b6"
- ]
- ]
- },
- {
- "id": "abb716be.3fb59",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2166,
- "y": 679.0000305175781,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "9aed5c80.54f11",
- "type": "set",
- "name": "set src-ltpId dst-ltpId",
- "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.src-access-ltp-id`\" />\n<parameter name='dst-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.dst-access-ltp-id`\" />",
- "comments": "",
- "x": 2586.5001220703125,
- "y": 2414.545135498047,
- "z": "3cbec5d5.54ea02",
- "wires": []
- },
- {
- "id": "ce693523.2da318",
- "type": "save",
- "name": "save srcLTP relationship in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n 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/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-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=\"`$src-ltpId`\" />\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2620.0001220703125,
- "y": 2454.545135498047,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "72343f4d.bac85",
- "type": "save",
- "name": "save dstLTP relationship in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n 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/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-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=\"`$dst-ltpId`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2620.0001220703125,
- "y": 2494.545135498047,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "f0df0cf2.e46b6",
- "type": "update",
- "name": "save label-restriction",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n key='logical-link.link-name = $unique-linkId\n AND label-restriction.id = $unique-lrId' > \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start`' />\n<parameter name='label-end' value='`$label-restriction.label-end`' />\n<parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\n<parameter name='label-step' value='`$label-restriction.label-step`' />\n<parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2197,
- "y": 739.0000305175781,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "d6c13a1b.e798a",
- "type": "save",
- "name": "save link relationship to label-restriction in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n key='logical-link.link-name = $unique-linkId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[$tidx].related-to\" value=\"label-restriction\" />\n<parameter name=\"relationship-list.relationship[$tidx].related-link\" value=\"`'/network/label-restrictions/label-restriction/' + $unique-lrId`\" />\n<parameter name=\"relationship-list.relationship[$tidx].relationship-data[0].relationship-key\" value=\"label-restriction.id\" />\n<parameter name=\"relationship-list.relationship[$tidx].relationship-data[0].relationship-value\" value=\"`$unique-lrId`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1892,
- "y": 793,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "69e9f586.641064",
- "type": "update",
- "name": "save label-restriction",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n key='logical-link.link-name = $unique-linkId\n AND label-restriction.id = $unique-lrId' > \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start`' />\n<parameter name='label-end' value='`$label-restriction.label-end`' />\n<parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\n<parameter name='label-step' value='`$label-restriction.label-step`' />\n<parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1814.815185546875,
- "y": 711.5556640625,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "3398d2c0.69ae06",
- "3d46f558.3e53f2"
- ]
- ]
- },
- {
- "id": "9c77d572.aa0dd",
- "type": "switchNode",
- "name": "switch te-link-attributes",
- "xml": "<switch test='`$link.te.te-link-attributes.label-restriction`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1135,
- "y": 668,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "acb46a14.faf1b8",
- "fad2e2be.055cd8"
- ]
- ]
- },
- {
- "id": "acb46a14.faf1b8",
- "type": "outcome",
- "name": "Null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1324,
- "y": 639,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "b663d811.06fad8"
- ]
- ]
- },
- {
- "id": "b663d811.06fad8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1484,
- "y": 638,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "fad2e2be.055cd8",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1328,
- "y": 712,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "7a38f4d0.9f3e6c"
- ]
- ]
- },
- {
- "id": "8fbc8f1e.fe24c8",
- "type": "switchNode",
- "name": "switch link.destination",
- "xml": "<switch test='`$link.destination`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 540,
- "y": 158,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "44b39c00.9558ec",
- "d8a931d0.793fd"
- ]
- ]
- },
- {
- "id": "44b39c00.9558ec",
- "type": "outcome",
- "name": "Null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 784,
- "y": 129,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "dd848e51.9b8178"
- ]
- ]
- },
- {
- "id": "d8a931d0.793fd",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 736,
- "y": 190,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "bdffabea.a9f78"
- ]
- ]
- },
- {
- "id": "bdffabea.a9f78",
- "type": "set",
- "name": "set network link's destination variables",
- "xml": "<set>\n<parameter name='dst-tpId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $link.destination.dest-node + '-ltpId-' + $link.destination.dest-tp`\" />\n<parameter name='unique-dst-node-Id' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $link.destination.dest-node`\" />\n<parameter name='is-open-ended-link' value='false' />\n\n",
- "comments": "",
- "x": 965,
- "y": 190,
- "z": "3cbec5d5.54ea02",
- "wires": []
- },
- {
- "id": "d1d8b826.4d04f",
- "type": "set",
- "name": "set is-open-ended-link",
- "xml": "<set>\n<parameter name='is-open-ended-link' value='true' />\n\n",
- "comments": "",
- "x": 1144,
- "y": 94,
- "z": "3cbec5d5.54ea02",
- "wires": []
- },
- {
- "id": "b17a800b.11d598",
- "type": "save",
- "name": "get p-interface from aai",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t key=\"pnf.pnf-name = $unique-src-node-Id\n\t and p-interface.interface-name = $src-tpId\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.p-interface\" >",
- "comments": "",
- "outputs": 1,
- "x": 1146,
- "y": 150,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "698d4309.a506a4",
- "c0b09280.fde57",
- "b035740b.82c768"
- ]
- ]
- },
- {
- "id": "698d4309.a506a4",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1389,
- "y": 145,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "d4d599ee.a3913"
- ]
- ]
- },
- {
- "id": "c0b09280.fde57",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1387,
- "y": 234,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "d42c9066.3cdb28"
- ]
- ]
- },
- {
- "id": "d4d599ee.a3913",
- "type": "set",
- "name": "set alternative unique link id",
- "xml": "<set>\n<parameter name='alt-unique-linkId' value=\"`$tmp.aai.p-interface.inter-domain-plug-id`\" />\n\n",
- "comments": "",
- "x": 1597,
- "y": 147,
- "z": "3cbec5d5.54ea02",
- "wires": []
- },
- {
- "id": "d42c9066.3cdb28",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
- "comments": "",
- "x": 1556,
- "y": 235,
- "z": "3cbec5d5.54ea02",
- "wires": []
- },
- {
- "id": "f65cb67d.b3d368",
- "type": "save",
- "name": "get logical-link from aai",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\t key=\"logical-link.link-name = $alt-unique-linkId\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.logical-link\" >",
- "comments": "",
- "outputs": 1,
- "x": 943,
- "y": 355,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "48397109.a69d68",
- "efa56bf.4c6db98"
- ]
- ]
- },
- {
- "id": "b035740b.82c768",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1398.490966796875,
- "y": 187.57403564453125,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "6959706d.7f87e8"
- ]
- ]
- },
- {
- "id": "6959706d.7f87e8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",
- "comments": "",
- "x": 1552.0623779296875,
- "y": 190.85977172851562,
- "z": "3cbec5d5.54ea02",
- "wires": []
- },
- {
- "id": "954c1d48.971018",
- "type": "switchNode",
- "name": "switch is-open-ended-link",
- "xml": "<switch test='`$is-open-ended-link`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 522,
- "y": 394,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "4e6e74a5.e8af4c",
- "53a87226.590744"
- ]
- ]
- },
- {
- "id": "4e6e74a5.e8af4c",
- "type": "outcomeFalse",
- "name": "false",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 739,
- "y": 416,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "2e08f3a1.53987c"
- ]
- ]
- },
- {
- "id": "53a87226.590744",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 742,
- "y": 356,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "f65cb67d.b3d368"
- ]
- ]
- },
- {
- "id": "48397109.a69d68",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1140,
- "y": 325,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "6b973.4170168dc"
- ]
- ]
- },
- {
- "id": "efa56bf.4c6db98",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1143.490966796875,
- "y": 365.57403564453125,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "ef51ee2a.cafb5"
- ]
- ]
- },
- {
- "id": "842144b1.a1cb2",
- "type": "update",
- "name": "save logical-link with alternative link id",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link' \n key='logical-link.link-name = $alt-unique-linkId' >\n<parameter name='link-name' value='`$alt-unique-linkId`' />\n<parameter name='link-id' value='`$link.link-id`' />\n<parameter name='link-type' value='`$link.te.te-link-attributes.access-type`' />\n\n\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1590,
- "y": 368,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "2e08f3a1.53987c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 917,
- "y": 424,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "f41ff5d9.72c91",
- "9c77d572.aa0dd",
- "34901df.74cf7e2"
- ]
- ]
- },
- {
- "id": "6b973.4170168dc",
- "type": "save",
- "name": "update dest TP by putting src TP of the current link",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n key='logical-link.link-name = $alt-unique-linkId' 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/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`\" />-->\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=\"`$src-tpId`\" />-->\n\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$src-tpId`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1429,
- "y": 321,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "34901df.74cf7e2",
- "type": "save",
- "name": "save source and dest TP",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n key='logical-link.link-name = $unique-linkId' 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/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`\" />\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=\"`$src-tpId`\" />\n\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-dst-node-Id + '/p-interfaces/p-interface/' + $dst-tpId`\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$dst-tpId`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1142,
- "y": 601,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "dd848e51.9b8178",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 927,
- "y": 126,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "d1d8b826.4d04f",
- "b17a800b.11d598"
- ]
- ]
- },
- {
- "id": "ef51ee2a.cafb5",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1314,
- "y": 366,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "842144b1.a1cb2",
- "9ab70c9.3d83df",
- "dd8767a.3acd918"
- ]
- ]
- },
- {
- "id": "9ab70c9.3d83df",
- "type": "save",
- "name": "save source only",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n key='logical-link.link-name = $unique-linkId' 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/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`\" />\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=\"`$src-tpId`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1527,
- "y": 416,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "ec4710d1.a4614",
- "type": "for",
- "name": "for each label-restriction",
- "xml": "<for index='tidx' start='0' end='`$link.te.te-link-attributes.label-restriction_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1933,
- "y": 499,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "5f4e6661.8be42",
- "bf1c8950.f6775",
- "869edf38.84c148"
- ]
- ]
- },
- {
- "id": "5f4e6661.8be42",
- "type": "set",
- "name": "set label-restriction's local variables",
- "xml": "<set>\n<parameter name='label-restriction.' value='`$link.te.te-link-attributes.label-restriction[$tidx].`' />\n<parameter name='unique-lrId' value=\"`$alt-unique-linkId + '-lrId-' + $label-restriction.index`\" />\n",
- "comments": "",
- "x": 2267.6668701171875,
- "y": 421.88897705078125,
- "z": "3cbec5d5.54ea02",
- "wires": []
- },
- {
- "id": "7135b68.c08c3c8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2403.055419921875,
- "y": 466.635009765625,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "2043dae3.034356"
- ]
- ]
- },
- {
- "id": "69007117.c84f9",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2410.7340087890625,
- "y": 525.8493347167969,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "30f94010.a2f0b"
- ]
- ]
- },
- {
- "id": "2043dae3.034356",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2563.5555419921875,
- "y": 465.8889465332031,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "30f94010.a2f0b",
- "type": "update",
- "name": "save label-restriction",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n key='logical-link.link-name = $alt-unique-linkId\n AND label-restriction.id = $unique-lrId' > \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start`' />\n<parameter name='label-end' value='`$label-restriction.label-end`' />\n<parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\n<parameter name='label-step' value='`$label-restriction.label-step`' />\n<parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2594.5555419921875,
- "y": 525.8889465332031,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "bf1c8950.f6775",
- "type": "save",
- "name": "save link relationship to label-restriction in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n key='logical-link.link-name = $alt-unique-linkId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[$tidx].related-to\" value=\"label-restriction\" />\n<parameter name=\"relationship-list.relationship[$tidx].related-link\" value=\"`'/network/label-restrictions/label-restriction/' + $unique-lrId`\" />\n<parameter name=\"relationship-list.relationship[$tidx].relationship-data[0].relationship-key\" value=\"label-restriction.id\" />\n<parameter name=\"relationship-list.relationship[$tidx].relationship-data[0].relationship-value\" value=\"`$unique-lrId`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 2289.5555419921875,
- "y": 579.888916015625,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "869edf38.84c148",
- "type": "update",
- "name": "save label-restriction",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n key='logical-link.link-name = $alt-unique-linkId\n AND label-restriction.id = $unique-lrId' > \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start`' />\n<parameter name='label-end' value='`$label-restriction.label-end`' />\n<parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\n<parameter name='label-step' value='`$label-restriction.label-step`' />\n<parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2212.3707275390625,
- "y": 498.444580078125,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "7135b68.c08c3c8",
- "69007117.c84f9"
- ]
- ]
- },
- {
- "id": "dd8767a.3acd918",
- "type": "switchNode",
- "name": "switch te-link-attributes",
- "xml": "<switch test='`$link.te.te-link-attributes.label-restriction`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1532.5555419921875,
- "y": 454.888916015625,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "2ac06a2f.120e4e",
- "45e6587f.a583a"
- ]
- ]
- },
- {
- "id": "2ac06a2f.120e4e",
- "type": "outcome",
- "name": "Null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1721.5555419921875,
- "y": 425.888916015625,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "5884f4a0.224604"
- ]
- ]
- },
- {
- "id": "5884f4a0.224604",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1881.5555419921875,
- "y": 424.888916015625,
- "z": "3cbec5d5.54ea02",
- "wires": [
- []
- ]
- },
- {
- "id": "45e6587f.a583a",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1725.5555419921875,
- "y": 498.888916015625,
- "z": "3cbec5d5.54ea02",
- "wires": [
- [
- "ec4710d1.a4614"
- ]
- ]
- },
- {
- "id": "915555f.abb44a8",
- "type": "set",
- "name": "set more local variables",
- "xml": "<set>\n<parameter name='unique-linkId' value=\"`'networkId-' + $unique-networkId + '-linkId-' + $link.link-id`\" />\n<parameter name='src-tpId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $link.source.source-node + '-ltpId-' + $link.source.source-tp`\" />\n<parameter name='unique-src-node-Id' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $link.source.source-node`\" />\n",
- "comments": "",
- "x": 557,
- "y": 102,
- "z": "3cbec5d5.54ea02",
- "wires": []
- }
+[\r
+ {\r
+ "id": "5858bb6c.1c5b2c",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 116,\r
+ "y": 67,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "350dfcb7.24e654"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "350dfcb7.24e654",\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": 173,\r
+ "y": 146.888916015625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "92cd3521.3e4e6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "92cd3521.3e4e6",\r
+ "type": "method",\r
+ "name": "method update-network-links-to-aai",\r
+ "xml": "<method rpc='update-network-links-to-aai' mode='sync'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 187,\r
+ "y": 223.22222900390625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "b665c6f2.69a4d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b665c6f2.69a4d",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 198.33343505859375,\r
+ "y": 300.7779235839844,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "c59c9b79.9f8cc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f41ff5d9.72c91",\r
+ "type": "update",\r
+ "name": "save logical-link with regular id",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link' \n key='logical-link.link-name = $unique-linkId' >\n<parameter name='link-name' value='`$unique-linkId`' />\n<parameter name='link-id' value='`$link.link-id`' />\n<parameter name='link-type' value='`$link.te.te-link-attributes.access-type`' />\n\n\n\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1159.111083984375,\r
+ "y": 694.111083984375,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c59c9b79.9f8cc",\r
+ "type": "for",\r
+ "name": "for each link",\r
+ "xml": "<for index='pidx' start='0' end='`$network.link_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 226.88885498046875,\r
+ "y": 394.33331298828125,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "6d5acc0f.b7df54",\r
+ "8fbc8f1e.fe24c8",\r
+ "915555f.abb44a8",\r
+ "b5320c88.aa407",\r
+ "589a9016.f198c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6d5acc0f.b7df54",\r
+ "type": "set",\r
+ "name": "set network link's local variables",\r
+ "xml": "<set>\n<parameter name='link.' value='`$network.link[$pidx].`' />\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n\n",\r
+ "comments": "",\r
+ "x": 559.111083984375,\r
+ "y": 99.22221374511719,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "7a38f4d0.9f3e6c",\r
+ "type": "for",\r
+ "name": "for each label-restriction",\r
+ "xml": "<for index='tidx' start='0' end='`$link.te.te-link-attributes.label-restriction_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1532.4444580078125,\r
+ "y": 915.111083984375,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "556fc245.d19e3c",\r
+ "d6c13a1b.e798a",\r
+ "69e9f586.641064"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "556fc245.d19e3c",\r
+ "type": "set",\r
+ "name": "set label-restriction's local variables",\r
+ "xml": "<set>\n<parameter name='label-restriction.' value='`$link.te.te-link-attributes.label-restriction[$tidx].`' />\n<parameter name='unique-lrId' value=\"`$unique-linkId + '-lrId-' + $label-restriction.index`\" />\n",\r
+ "comments": "",\r
+ "x": 1867.111328125,\r
+ "y": 838.0000610351562,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "3398d2c0.69ae06",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2002.4998779296875,\r
+ "y": 882.74609375,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "abb716be.3fb59"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3d46f558.3e53f2",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2010.178466796875,\r
+ "y": 941.9604187011719,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "f0df0cf2.e46b6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "abb716be.3fb59",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2163,\r
+ "y": 882.0000305175781,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9aed5c80.54f11",\r
+ "type": "set",\r
+ "name": "set src-ltpId dst-ltpId",\r
+ "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.src-access-ltp-id`\" />\n<parameter name='dst-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.dst-access-ltp-id`\" />",\r
+ "comments": "",\r
+ "x": 2586.5001220703125,\r
+ "y": 2414.545135498047,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ce693523.2da318",\r
+ "type": "save",\r
+ "name": "save srcLTP relationship in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n 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/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-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=\"`$src-ltpId`\" />\n\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2620.0001220703125,\r
+ "y": 2454.545135498047,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "72343f4d.bac85",\r
+ "type": "save",\r
+ "name": "save dstLTP relationship in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n 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/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-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=\"`$dst-ltpId`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2620.0001220703125,\r
+ "y": 2494.545135498047,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "f0df0cf2.e46b6",\r
+ "type": "update",\r
+ "name": "save label-restriction",\r
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n key='logical-link.link-name = $unique-linkId\n AND label-restriction.id = $unique-lrId' > \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start`' />\n<parameter name='label-end' value='`$label-restriction.label-end`' />\n<parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\n<parameter name='label-step' value='`$label-restriction.label-step`' />\n<parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2194,\r
+ "y": 942.0000305175781,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "d6c13a1b.e798a",\r
+ "type": "save",\r
+ "name": "save link relationship to label-restriction in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n key='logical-link.link-name = $unique-linkId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[$tidx].related-to\" value=\"label-restriction\" />\n<parameter name=\"relationship-list.relationship[$tidx].related-link\" value=\"`'/network/label-restrictions/label-restriction/' + $unique-lrId`\" />\n<parameter name=\"relationship-list.relationship[$tidx].relationship-data[0].relationship-key\" value=\"label-restriction.id\" />\n<parameter name=\"relationship-list.relationship[$tidx].relationship-data[0].relationship-value\" value=\"`$unique-lrId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1914,\r
+ "y": 792,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "69e9f586.641064",\r
+ "type": "update",\r
+ "name": "save label-restriction",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n key='logical-link.link-name = $unique-linkId\n AND label-restriction.id = $unique-lrId' > \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start`' />\n<parameter name='label-end' value='`$label-restriction.label-end`' />\n<parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\n<parameter name='label-step' value='`$label-restriction.label-step`' />\n<parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1811.815185546875,\r
+ "y": 914.5556640625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "3398d2c0.69ae06",\r
+ "3d46f558.3e53f2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9c77d572.aa0dd",\r
+ "type": "switchNode",\r
+ "name": "switch te-link-attributes",\r
+ "xml": "<switch test='`$link.te.te-link-attributes.label-restriction`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1136,\r
+ "y": 870,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "acb46a14.faf1b8",\r
+ "fad2e2be.055cd8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "acb46a14.faf1b8",\r
+ "type": "outcome",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1321,\r
+ "y": 868,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "b663d811.06fad8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b663d811.06fad8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1476,\r
+ "y": 868,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "fad2e2be.055cd8",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1325,\r
+ "y": 915,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "7a38f4d0.9f3e6c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8fbc8f1e.fe24c8",\r
+ "type": "switchNode",\r
+ "name": "switch link.destination",\r
+ "xml": "<switch test='`$link.destination.dest-node`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 535,\r
+ "y": 204,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "44b39c00.9558ec",\r
+ "d8a931d0.793fd"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "44b39c00.9558ec",\r
+ "type": "outcome",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 739,\r
+ "y": 165,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "dd848e51.9b8178"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d8a931d0.793fd",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 736,\r
+ "y": 227,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "bdffabea.a9f78"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bdffabea.a9f78",\r
+ "type": "set",\r
+ "name": "set network link's destination variables",\r
+ "xml": "<set>\n<parameter name='dst-tpId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $link.destination.dest-node + '-ltpId-' + $link.destination.dest-tp`\" />\n<parameter name='unique-dst-node-Id' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $link.destination.dest-node`\" />\n<parameter name='is-open-ended-link' value='false' />\n\n",\r
+ "comments": "",\r
+ "x": 965,\r
+ "y": 190,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "d1d8b826.4d04f",\r
+ "type": "set",\r
+ "name": "set is-open-ended-link",\r
+ "xml": "<set>\n<parameter name='is-open-ended-link' value='true' />\n\n",\r
+ "comments": "",\r
+ "x": 1143,\r
+ "y": 65,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b17a800b.11d598",\r
+ "type": "save",\r
+ "name": "get p-interface from aai",\r
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t key=\"pnf.pnf-name = $unique-src-node-Id\n\t and p-interface.interface-name = $src-tpId\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.p-interface\" >",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1146,\r
+ "y": 150,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "698d4309.a506a4",\r
+ "c0b09280.fde57",\r
+ "b035740b.82c768"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "698d4309.a506a4",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1389,\r
+ "y": 145,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "944bf6fb.a03838"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c0b09280.fde57",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1387,\r
+ "y": 234,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "d42c9066.3cdb28"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d4d599ee.a3913",\r
+ "type": "set",\r
+ "name": "set alternative unique link id",\r
+ "xml": "<set>\n<parameter name='alt-unique-linkId' value=\"`$tmp.aai.p-interface.inter-domain-plug-id`\" />\n<!--<parameter name='alt-unique-linkId' value=\"`'networkId-' + $unique-networkId + '-linkId-' + $tmp.aai.p-interface.inter-domain-plug-id`\" />-->\n\n",\r
+ "comments": "",\r
+ "x": 2062,\r
+ "y": 162,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "d42c9066.3cdb28",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+ "comments": "",\r
+ "x": 1556,\r
+ "y": 235,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f65cb67d.b3d368",\r
+ "type": "save",\r
+ "name": "get logical-link from aai",\r
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\t key=\"logical-link.link-name = $alt-unique-linkId\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.logical-link\" >",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 854,\r
+ "y": 671,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "48397109.a69d68",\r
+ "efa56bf.4c6db98"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b035740b.82c768",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1398.490966796875,\r
+ "y": 187.57403564453125,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "6959706d.7f87e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6959706d.7f87e8",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
+ "comments": "",\r
+ "x": 1552.0623779296875,\r
+ "y": 190.85977172851562,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "954c1d48.971018",\r
+ "type": "switchNode",\r
+ "name": "switch is-open-ended-link",\r
+ "xml": "<switch test='`$is-open-ended-link`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 433,\r
+ "y": 710,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "4e6e74a5.e8af4c",\r
+ "53a87226.590744"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4e6e74a5.e8af4c",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 650,\r
+ "y": 732,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "2e08f3a1.53987c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "53a87226.590744",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 653,\r
+ "y": 672,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "f65cb67d.b3d368"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "48397109.a69d68",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1098,\r
+ "y": 341,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "b240875.e435ff8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "efa56bf.4c6db98",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1123.490966796875,\r
+ "y": 536.5740356445312,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "ef51ee2a.cafb5"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "842144b1.a1cb2",\r
+ "type": "update",\r
+ "name": "save logical-link with alternative link id",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link' \n key='logical-link.link-name = $alt-unique-linkId' >\n<parameter name='link-name' value='`$alt-unique-linkId`' />\n<parameter name='link-id' value='`$link.link-id`' />\n<parameter name='link-type' value='`$link.te.te-link-attributes.access-type`' />\n\n\n\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1595,\r
+ "y": 558,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "2e08f3a1.53987c",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 828,\r
+ "y": 740,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "f41ff5d9.72c91",\r
+ "9c77d572.aa0dd",\r
+ "dc4f90cd.605cd",\r
+ "a0d07820.dfe9c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6b973.4170168dc",\r
+ "type": "save",\r
+ "name": "update dest TP by putting src TP of the current link",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n key='logical-link.link-name = $alt-unique-linkId' 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/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`\" />-->\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=\"`$src-tpId`\" />-->\n\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`\" />\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=\"`$src-tpId`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2509,\r
+ "y": 387,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "46117ab.f8f0504",\r
+ "46594b42.a6ff04"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "34901df.74cf7e2",\r
+ "type": "save",\r
+ "name": "save source and dest TP",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n key='logical-link.link-name = $unique-linkId' 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/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`\" />\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=\"`$src-tpId`\" />\n\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-dst-node-Id + '/p-interfaces/p-interface/' + $dst-tpId`\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$dst-tpId`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1119,\r
+ "y": 1068,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "dd848e51.9b8178",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 927,\r
+ "y": 126,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "d1d8b826.4d04f",\r
+ "b17a800b.11d598",\r
+ "9d4a7a95.ca2e88"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ef51ee2a.cafb5",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1312,\r
+ "y": 539,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "842144b1.a1cb2",\r
+ "9ab70c9.3d83df",\r
+ "dd8767a.3acd918"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9ab70c9.3d83df",\r
+ "type": "save",\r
+ "name": "save source only",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n key='logical-link.link-name = $alt-unique-linkId' 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/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`\" />\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=\"`$src-tpId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1524,\r
+ "y": 619,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ec4710d1.a4614",\r
+ "type": "for",\r
+ "name": "for each label-restriction",\r
+ "xml": "<for index='tidx' start='0' end='`$link.te.te-link-attributes.label-restriction_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1930,\r
+ "y": 702,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "5f4e6661.8be42",\r
+ "bf1c8950.f6775",\r
+ "869edf38.84c148"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5f4e6661.8be42",\r
+ "type": "set",\r
+ "name": "set label-restriction's local variables",\r
+ "xml": "<set>\n<parameter name='label-restriction.' value='`$link.te.te-link-attributes.label-restriction[$tidx].`' />\n<parameter name='unique-lrId' value=\"`$alt-unique-linkId + '-lrId-' + $label-restriction.index`\" />\n",\r
+ "comments": "",\r
+ "x": 2347.6669921875,\r
+ "y": 657.8889770507812,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "7135b68.c08c3c8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2483.0555419921875,\r
+ "y": 702.635009765625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "2043dae3.034356"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "69007117.c84f9",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2490.734130859375,\r
+ "y": 761.8493347167969,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "30f94010.a2f0b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2043dae3.034356",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2643.5556640625,\r
+ "y": 701.8889465332031,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "30f94010.a2f0b",\r
+ "type": "update",\r
+ "name": "save label-restriction",\r
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n key='logical-link.link-name = $alt-unique-linkId\n AND label-restriction.id = $unique-lrId' > \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start`' />\n<parameter name='label-end' value='`$label-restriction.label-end`' />\n<parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\n<parameter name='label-step' value='`$label-restriction.label-step`' />\n<parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2674.5556640625,\r
+ "y": 761.8889465332031,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "bf1c8950.f6775",\r
+ "type": "save",\r
+ "name": "save link relationship to label-restriction in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n key='logical-link.link-name = $alt-unique-linkId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[$tidx].related-to\" value=\"label-restriction\" />\n<parameter name=\"relationship-list.relationship[$tidx].related-link\" value=\"`'/network/label-restrictions/label-restriction/' + $unique-lrId`\" />\n<parameter name=\"relationship-list.relationship[$tidx].relationship-data[0].relationship-key\" value=\"label-restriction.id\" />\n<parameter name=\"relationship-list.relationship[$tidx].relationship-data[0].relationship-value\" value=\"`$unique-lrId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2369.5556640625,\r
+ "y": 815.888916015625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "869edf38.84c148",\r
+ "type": "update",\r
+ "name": "save label-restriction",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n key='logical-link.link-name = $alt-unique-linkId\n AND label-restriction.id = $unique-lrId' > \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start`' />\n<parameter name='label-end' value='`$label-restriction.label-end`' />\n<parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\n<parameter name='label-step' value='`$label-restriction.label-step`' />\n<parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2292.370849609375,\r
+ "y": 734.444580078125,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "7135b68.c08c3c8",\r
+ "69007117.c84f9"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "dd8767a.3acd918",\r
+ "type": "switchNode",\r
+ "name": "switch te-link-attributes",\r
+ "xml": "<switch test='`$link.te.te-link-attributes.label-restriction`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1529.5555419921875,\r
+ "y": 657.888916015625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "2ac06a2f.120e4e",\r
+ "45e6587f.a583a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2ac06a2f.120e4e",\r
+ "type": "outcome",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1718.5555419921875,\r
+ "y": 628.888916015625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "5884f4a0.224604"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5884f4a0.224604",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1878.5555419921875,\r
+ "y": 627.888916015625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "45e6587f.a583a",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1722.5555419921875,\r
+ "y": 701.888916015625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "ec4710d1.a4614"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "915555f.abb44a8",\r
+ "type": "set",\r
+ "name": "set more local variables",\r
+ "xml": "<set>\n<parameter name='unique-linkId' value=\"`'networkId-' + $unique-networkId + '-linkId-' + $link.link-id`\" />\n<parameter name='src-tpId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $link.source.source-node + '-ltpId-' + $link.source.source-tp`\" />\n<parameter name='unique-src-node-Id' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $link.source.source-node`\" />\n",\r
+ "comments": "",\r
+ "x": 536,\r
+ "y": 149,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e4a47b8d.470f98",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1478,\r
+ "y": 62,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "944bf6fb.a03838",\r
+ "type": "switchNode",\r
+ "name": "switch inter-domain-plug-id of the src tp",\r
+ "xml": "<switch test='`$tmp.aai.p-interface.inter-domain-plug-id`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1628,\r
+ "y": 142,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "757c7b80.d77ff4",\r
+ "a7e52125.cd95a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "757c7b80.d77ff4",\r
+ "type": "outcome",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1858,\r
+ "y": 89,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "ed9b2776.e3f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a7e52125.cd95a",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1862,\r
+ "y": 162,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "d4d599ee.a3913"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ed9b2776.e3f",\r
+ "type": "set",\r
+ "name": "unset is-open-ended-link",\r
+ "xml": "<set>\n<parameter name='is-open-ended-link' value='false' />\n<parameter name='is-invalid-open-ended-link' value='true' />\n\n",\r
+ "comments": "",\r
+ "x": 2046,\r
+ "y": 85,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "952d829a.9e04c8",\r
+ "type": "save",\r
+ "name": "delete logical-link",\r
+ "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\" \n\tkey=\"logical-link.link-name = $tmp.link-name\" >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2027,\r
+ "y": 34,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "b5320c88.aa407",\r
+ "type": "set",\r
+ "name": "unset network link's local variables",\r
+ "xml": "<set>\n<parameter name='link.' value='' />\n<parameter name='dst-tpId' value='' />\n<parameter name='unique-dst-node-Id' value='' />\n<parameter name='is-open-ended-link' value='false' />\n<parameter name='is-invalid-open-ended-link' value='false' />\n\n",\r
+ "comments": "",\r
+ "x": 564,\r
+ "y": 41,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1c31f66.0ec5b8a",\r
+ "type": "switchNode",\r
+ "name": "switch is-invalid-open-ended-link",\r
+ "xml": "<switch test='`$is-invalid-open-ended-link`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 715,\r
+ "y": 1046,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "59b5f613.5fe9d8",\r
+ "a603a990.7bb358"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a603a990.7bb358",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 922,\r
+ "y": 1014,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "9ab8714a.2092f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "59b5f613.5fe9d8",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 919,\r
+ "y": 1074,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "34901df.74cf7e2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9ab8714a.2092f",\r
+ "type": "save",\r
+ "name": "save source only",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n key='logical-link.link-name = $unique-linkId' 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/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`\" />\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=\"`$src-tpId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1102,\r
+ "y": 1013,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "5352bd62.ccf79c",\r
+ "type": "switchNode",\r
+ "name": "switch relationship-list_length",\r
+ "xml": "<switch test='`$tmp.aai.logical-link.relationship-list_length`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1370,\r
+ "y": 314,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "eff4d21d.288088",\r
+ "37404956.35d1ce",\r
+ "8c968f09.e16c4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2c9276d9.9299c2",\r
+ "type": "switchNode",\r
+ "name": "switch relationship-list_length != $src-tpId",\r
+ "xml": "<switch test='`$tmp.aai.logical-link.relationship-list.relationship[0].relationship-data[1].relationship-value != $src-tpId`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1821,\r
+ "y": 328,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "267a2f8f.07cbd"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "eff4d21d.288088",\r
+ "type": "outcome",\r
+ "name": "0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1588,\r
+ "y": 273,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "984dee72.e9354"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "37404956.35d1ce",\r
+ "type": "outcome",\r
+ "name": "1",\r
+ "xml": "<outcome value='1'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1585,\r
+ "y": 310,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "2c9276d9.9299c2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8c968f09.e16c4",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1595,\r
+ "y": 384,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "978f2fad.844c4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "978f2fad.844c4",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1732,\r
+ "y": 385,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "a65b0566.f99d28"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "984dee72.e9354",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1730,\r
+ "y": 281,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "3177c841.0c8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "589a9016.f198c",\r
+ "type": "switchNode",\r
+ "name": "switch is-invalid-open-ended-link",\r
+ "xml": "<switch test='`$is-invalid-open-ended-link`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 431,\r
+ "y": 538,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "68d44b36.10ebc4",\r
+ "b635b7a2.550c68"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b635b7a2.550c68",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 638,\r
+ "y": 506,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "a2f767e6.1afe7"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "68d44b36.10ebc4",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 635,\r
+ "y": 566,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "954c1d48.971018"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a2f767e6.1afe7",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 789,\r
+ "y": 506,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "dc4f90cd.605cd",\r
+ "type": "save",\r
+ "name": "save source and dest TP",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n key='logical-link.link-name = $unique-linkId' 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/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`\" />\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=\"`$src-tpId`\" />\n\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-dst-node-Id + '/p-interfaces/p-interface/' + $dst-tpId`\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$dst-tpId`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1129,\r
+ "y": 791,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "267a2f8f.07cbd",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2068,\r
+ "y": 319,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "a0d07820.dfe9c",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logTopologyDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"uniqueLinkId\" />\n <parameter name=\"field3\" value=\"`$unique-linkId`\" />\n <parameter name=\"field4\" value=\"srcTpId\" />\n <parameter name=\"field5\" value=\"`$src-tpId`\" />\n <parameter name=\"field6\" value=\"dstTpId\" />\n <parameter name=\"field7\" value=\"`$dst-tpId`\" />\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1074,\r
+ "y": 739,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9d4a7a95.ca2e88",\r
+ "type": "set",\r
+ "name": "unset tmp.aai.p-interface",\r
+ "xml": "<set>\n<parameter name='tmp.aai.p-interface' value='' />\n<parameter name='tmp.aai.p-interface.inter-domain-plug-id' value='' />\n\n",\r
+ "comments": "",\r
+ "x": 1144,\r
+ "y": 103,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6cbb9c56.a1a2b4",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logMerge.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"altUniqueLinkId\" />\n <parameter name=\"field3\" value=\"`$alt-unique-linkId`\" />\n <parameter name=\"field4\" value=\"srcTpId\" />\n <parameter name=\"field5\" value=\"`$src-tpId`\" />\n <parameter name=\"field6\" value=\"relationship-value\" />\n <parameter name=\"field7\" value='`$tmp.aai.logical-link.relationship-list.relationship[0].relationship-data[1].relationship-value`' />\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2384,\r
+ "y": 291,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "b240875.e435ff8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2060,\r
+ "y": 536,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "6cbb9c56.a1a2b4",\r
+ "6b973.4170168dc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "46117ab.f8f0504",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2798,\r
+ "y": 357,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "f6743dce.4b9b98"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "46594b42.a6ff04",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2805.6785888671875,\r
+ "y": 416.2143249511719,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "fa1c4b7d.8445b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f6743dce.4b9b98",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2946,\r
+ "y": 352,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "1261d503.e1a3cb"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1261d503.e1a3cb",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logMergeSuccess.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"altUniqueLinkId\" />\n <parameter name=\"field3\" value=\"`$alt-unique-linkId`\" />\n <parameter name=\"field4\" value=\"srcTpId\" />\n <parameter name=\"field5\" value=\"`$src-tpId`\" />\n <parameter name=\"field6\" value=\"relationship-value\" />\n <parameter name=\"field7\" value='`$tmp.aai.logical-link.relationship-list.relationship[0].relationship-data[1].relationship-value`' />\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3091,\r
+ "y": 352,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "fa1c4b7d.8445b",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2953,\r
+ "y": 414,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "8f51aa8d.73ba38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3177c841.0c8",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logNoRelationship.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"noRelationshipForLink:\" />\n <parameter name=\"field3\" value=\"`$tmp.aai.logical-link.link-name`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1866,\r
+ "y": 279,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "a65b0566.f99d28",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logNoRelationship.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"moreThanOneRelationshipForLink:\" />\n <parameter name=\"field3\" value=\"`$tmp.aai.logical-link.link-name`\" />\n <parameter name=\"field4\" value=\"HowMany:\" />\n <parameter name=\"field5\" value=\"`$tmp.aai.logical-link.relationship-list_length`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1877,\r
+ "y": 394,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "8f51aa8d.73ba38",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logMergeFailure.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"altUniqueLinkId\" />\n <parameter name=\"field3\" value=\"`$alt-unique-linkId`\" />\n <parameter name=\"field4\" value=\"srcTpId\" />\n <parameter name=\"field5\" value=\"`$src-tpId`\" />\n <parameter name=\"field6\" value=\"relationship-value\" />\n <parameter name=\"field7\" value='`$tmp.aai.logical-link.relationship-list.relationship[0].relationship-data[1].relationship-value`' />\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3098,\r
+ "y": 414,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ }\r
]
\ No newline at end of file
-[
- {
- "id": "ef88be3f.517f78",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 105,
- "y": 67,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "74a7a837.229be"
- ]
- ]
- },
- {
- "id": "74a7a837.229be",
- "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": 194.00003051757812,
- "y": 157.88891220092773,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "284dae72.737532"
- ]
- ]
- },
- {
- "id": "284dae72.737532",
- "type": "method",
- "name": "update-network-to-aai",
- "xml": "<method rpc='update-network-to-aai' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 230.1112518310547,
- "y": 228.22223663330078,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "da05320e.186d48"
- ]
- ]
- },
- {
- "id": "da05320e.186d48",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 455.33343505859375,
- "y": 227.77792358398438,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "8c187a81.9e4d28",
- "75113293.98ea0c",
- "9937b93d.ff5938",
- "55dde830.cc61b8"
- ]
- ]
- },
- {
- "id": "75113293.98ea0c",
- "type": "save",
- "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<parameter name='network-type' value='`$network.network-types`' />\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 685.333251953125,
- "y": 133.00001525878906,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "74f65e67.75c658",
- "type": "save",
- "name": "save pnf",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n key='pnf.pnf-name = $unique-nodeId' >\n<parameter name='pnf-name' value='`$unique-nodeId`' />\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": 897.1111450195312,
- "y": 223.111083984375,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "9937b93d.ff5938",
- "type": "for",
- "name": "for each node",
- "xml": "<for index='pidx' start='0' end='`$network.node_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 668.8888549804688,
- "y": 203.33331298828125,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "74f65e67.75c658",
- "60e29b35.16fbd4",
- "b27f201.393186",
- "e83884ed.3fb2d8",
- "7257c53.4f087bc",
- "395bef40.08498",
- "1392eb55.76adbd",
- "e55192de.2cc998"
- ]
- ]
- },
- {
- "id": "60e29b35.16fbd4",
- "type": "set",
- "name": "set node",
- "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n\n",
- "comments": "",
- "x": 902.111083984375,
- "y": 119.22221374511719,
- "z": "6d6b8a1f.be1cb4",
- "wires": []
- },
- {
- "id": "e83884ed.3fb2d8",
- "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 = $unique-nodeId' 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": 993.7779541015625,
- "y": 398.44447803497314,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "9c15e41a.6cfbc8",
- "type": "for",
- "name": "for each termination point",
- "xml": "<for index='tidx' start='0' end='`$node.termination-point_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1279.4444580078125,
- "y": 574.111083984375,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "3c657cae.66477c",
- "2e1dc2b9.f23686",
- "8c144095.b1eaf8"
- ]
- ]
- },
- {
- "id": "3c657cae.66477c",
- "type": "set",
- "name": "set termination point",
- "xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tidx].`' />\n",
- "comments": "",
- "x": 1550.111328125,
- "y": 536.0000457763672,
- "z": "6d6b8a1f.be1cb4",
- "wires": []
- },
- {
- "id": "8c144095.b1eaf8",
- "type": "save",
- "name": "save p-interface",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $unique-nodeId\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<parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\n<parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1533.815185546875,
- "y": 628.5556030273438,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "3fc33363.5b82ec",
- "34c813e4.f5477c"
- ]
- ]
- },
- {
- "id": "f6e5129a.8bd048",
- "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 = $unique-nodeId' 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/' + $unique-nodeId '/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": 1610.703857421875,
- "y": 784.3333740234375,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "2e1dc2b9.f23686",
- "type": "set",
- "name": "set unique-ltpId",
- "xml": "<set>\n<parameter name='unique-ltpId' value=\"`$unique-nodeId + '-ltpId-' + $tp.te-tp-id`\" />\n",
- "comments": "",
- "x": 1534.000244140625,
- "y": 570.1111145019531,
- "z": "6d6b8a1f.be1cb4",
- "wires": []
- },
- {
- "id": "8c187a81.9e4d28",
- "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": 640.9935302734375,
- "y": 83.99349975585938,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "b27f201.393186",
- "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/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": 975,
- "y": 434.9934997558594,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "3fc33363.5b82ec",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1705.499885559082,
- "y": 615.7460784912109,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "a873419b.bc81c"
- ]
- ]
- },
- {
- "id": "34c813e4.f5477c",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1699.1784744262695,
- "y": 667.9603900909424,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "66113f50.7819f8"
- ]
- ]
- },
- {
- "id": "a873419b.bc81c",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1856.0000457763672,
- "y": 615.0000095367432,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "66113f50.7819f8",
- "type": "update",
- "name": "update p-interface",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $unique-nodeId\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<parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\n<parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />",
- "comments": "",
- "outputs": 1,
- "x": 1885,
- "y": 669,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "c8e5472a.d10408",
- "type": "save",
- "name": "save tunnel-termination-point",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n key='pnf.pnf-name = $unique-nodeId\n AND tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='ttp-id' value='`$unique-ttpId`' />\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1678,
- "y": 331,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "11cb3cf8.02c3eb",
- "1a336806.ba4bc8"
- ]
- ]
- },
- {
- "id": "8b0a557c.b35cd",
- "type": "for",
- "name": "for each tunnel termination point",
- "xml": "<for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1341,
- "y": 319,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "58c4d943.63d2f",
- "e7e93cd.8f563c",
- "c8e5472a.d10408",
- "7c00c858.c87ab8"
- ]
- ]
- },
- {
- "id": "58c4d943.63d2f",
- "type": "set",
- "name": "set tunnel termination point",
- "xml": "<set>\n<parameter name='ttp.' value='`$node.te.tunnel-termination-point[$ttidx].`' />\n",
- "comments": "",
- "x": 1676,
- "y": 239,
- "z": "6d6b8a1f.be1cb4",
- "wires": []
- },
- {
- "id": "e7e93cd.8f563c",
- "type": "set",
- "name": "set unique-ttpId",
- "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-nodeId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",
- "comments": "",
- "x": 1634.888916015625,
- "y": 277.111083984375,
- "z": "6d6b8a1f.be1cb4",
- "wires": []
- },
- {
- "id": "11cb3cf8.02c3eb",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1944,
- "y": 317,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "9ad375c8.fab3e8"
- ]
- ]
- },
- {
- "id": "1a336806.ba4bc8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1937.6785888671875,
- "y": 369.21431159973145,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "842e7e75.fc0558"
- ]
- ]
- },
- {
- "id": "9ad375c8.fab3e8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2094.500160217285,
- "y": 316.2539310455322,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "842e7e75.fc0558",
- "type": "update",
- "name": "update tunnel-termination-point",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n key='pnf.pnf-name = $unique-nodeId\n AND tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='ttp-id' value='`$unique-ttpId`' />\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2175,
- "y": 371,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "7257c53.4f087bc",
- "type": "set",
- "name": "set local variables",
- "xml": "<set>\n<parameter name='unique-nodeId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $node.node-id`\" />\n",
- "comments": "",
- "x": 927,
- "y": 166,
- "z": "6d6b8a1f.be1cb4",
- "wires": []
- },
- {
- "id": "55dde830.cc61b8",
- "type": "call",
- "name": "call update-network-links-to-aai",
- "xml": "<call module='DataChange' rpc='update-network-links-to-aai' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 611,
- "y": 329,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "b86a9ee9.558c2",
- "type": "save",
- "name": "save pnf-interface relationship to pnf in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface:relationship-list' \n key='pnf.pnf-name = $unique-nodeId\n AND p-interface.interface-name = $unique-ltpId' 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/' + $unique-nodeId`\" />\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=\"`$unique-nodeId`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1617,
- "y": 728,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "7c00c858.c87ab8",
- "type": "save",
- "name": "save pnf relationship to tunnel termination point in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[$ttidx].related-to\" value=\"tunnel-termination-point\" />\n<parameter name=\"relationship-list.relationship[$ttidx].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $node.node-id '/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`\" />\n<parameter name=\"relationship-list.relationship[$ttidx].relationship-data[0].relationship-key\" value=\"tunnel-termination-point.ttp-id\" />\n<parameter name=\"relationship-list.relationship[$ttidx].relationship-data[0].relationship-value\" value=\"`$unique-ttpId`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1749,
- "y": 423,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "395bef40.08498",
- "type": "switchNode",
- "name": "switch node ttp",
- "xml": "<switch test='`$node.te.tunnel-termination-point_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 913,
- "y": 295,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "84bf875e.b8d51",
- "cc6df2e.2398e9",
- "f2d2c388.1aa578"
- ]
- ]
- },
- {
- "id": "5889c4ed.3fc544",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1261,
- "y": 247,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "f2d2c388.1aa578",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1103,
- "y": 318,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "8b0a557c.b35cd"
- ]
- ]
- },
- {
- "id": "1392eb55.76adbd",
- "type": "switchNode",
- "name": "switch node tp",
- "xml": "<switch test='`$node.termination-point_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 893,
- "y": 550,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "c5e649ab.cfe2e8",
- "d7a3de29.b44a1",
- "a21fbfb7.b6608"
- ]
- ]
- },
- {
- "id": "c5e649ab.cfe2e8",
- "type": "other",
- "name": "Null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1072,
- "y": 502,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "3d51c59d.7acffa"
- ]
- ]
- },
- {
- "id": "d7a3de29.b44a1",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1071,
- "y": 604,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "9c15e41a.6cfbc8"
- ]
- ]
- },
- {
- "id": "3d51c59d.7acffa",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1227,
- "y": 502,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "e55192de.2cc998",
- "type": "record",
- "name": "log file",
- "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/hesamlogx.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"sucess executing Hesam hesam log file\" />\n <parameter name=\"field3\" value=\"`$node.te.tunnel-termination-point_length`\" />\n <parameter name=\"field4\" value=\"`$node.termination-point_length`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 891,
- "y": 339,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- []
- ]
- },
- {
- "id": "84bf875e.b8d51",
- "type": "other",
- "name": "Null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1101,
- "y": 181,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "5889c4ed.3fc544"
- ]
- ]
- },
- {
- "id": "cc6df2e.2398e9",
- "type": "outcome",
- "name": "length 0",
- "xml": "<outcome value='0'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1106,
- "y": 256,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "5889c4ed.3fc544"
- ]
- ]
- },
- {
- "id": "a21fbfb7.b6608",
- "type": "outcome",
- "name": "length 0",
- "xml": "<outcome value='0'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1082,
- "y": 550,
- "z": "6d6b8a1f.be1cb4",
- "wires": [
- [
- "3d51c59d.7acffa"
- ]
- ]
- }
+[\r
+ {\r
+ "id": "ef88be3f.517f78",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 105,\r
+ "y": 67,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "74a7a837.229be"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "74a7a837.229be",\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": 194.00003051757812,\r
+ "y": 157.88891220092773,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "284dae72.737532"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "284dae72.737532",\r
+ "type": "method",\r
+ "name": "update-network-to-aai",\r
+ "xml": "<method rpc='update-network-to-aai' mode='sync'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 230.1112518310547,\r
+ "y": 228.22223663330078,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "da05320e.186d48"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "da05320e.186d48",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">\n",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 455.33343505859375,\r
+ "y": 227.77792358398438,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "8c187a81.9e4d28",\r
+ "75113293.98ea0c",\r
+ "9937b93d.ff5938",\r
+ "55dde830.cc61b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "75113293.98ea0c",\r
+ "type": "save",\r
+ "name": "save network-resource",\r
+ "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<parameter name='network-type' value='`$network.network-types`' />\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 685.333251953125,\r
+ "y": 133.00001525878906,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "74f65e67.75c658",\r
+ "type": "save",\r
+ "name": "save pnf",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n key='pnf.pnf-name = $unique-nodeId' >\n<parameter name='pnf-name' value='`$unique-nodeId`' />\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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 897.1111450195312,\r
+ "y": 223.111083984375,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9937b93d.ff5938",\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": 668.8888549804688,\r
+ "y": 203.33331298828125,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "74f65e67.75c658",\r
+ "60e29b35.16fbd4",\r
+ "b27f201.393186",\r
+ "e83884ed.3fb2d8",\r
+ "7257c53.4f087bc",\r
+ "395bef40.08498",\r
+ "1392eb55.76adbd",\r
+ "e55192de.2cc998",\r
+ "a1ffb2f2.4b50b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "60e29b35.16fbd4",\r
+ "type": "set",\r
+ "name": "set node",\r
+ "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n\n",\r
+ "comments": "",\r
+ "x": 902.111083984375,\r
+ "y": 119.22221374511719,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e83884ed.3fb2d8",\r
+ "type": "save",\r
+ "name": "save pnf relationship to network-resource in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' 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`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 993.7779541015625,\r
+ "y": 398.44447803497314,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9c15e41a.6cfbc8",\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": 1279.4444580078125,\r
+ "y": 574.111083984375,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "3c657cae.66477c",\r
+ "2e1dc2b9.f23686",\r
+ "8c144095.b1eaf8",\r
+ "9abbad80.6c0f7"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3c657cae.66477c",\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": 1550.111328125,\r
+ "y": 536.0000457763672,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8c144095.b1eaf8",\r
+ "type": "save",\r
+ "name": "save p-interface",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $unique-nodeId\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<parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\n<parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1533.815185546875,\r
+ "y": 628.5556030273438,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "3fc33363.5b82ec",\r
+ "34c813e4.f5477c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f6e5129a.8bd048",\r
+ "type": "save",\r
+ "name": "save pnf relationship to p-interface in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' 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/' + $unique-nodeId '/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`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1367.703857421875,\r
+ "y": 779.3333740234375,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "2e1dc2b9.f23686",\r
+ "type": "set",\r
+ "name": "set unique-ltpId",\r
+ "xml": "<set>\n<parameter name='unique-ltpId' value=\"`$unique-nodeId + '-ltpId-' + $tp.te-tp-id`\" />\n",\r
+ "comments": "",\r
+ "x": 1534.000244140625,\r
+ "y": 570.1111145019531,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8c187a81.9e4d28",\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": 640.9935302734375,\r
+ "y": 83.99349975585938,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "b27f201.393186",\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": 975,\r
+ "y": 434.9934997558594,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "3fc33363.5b82ec",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1705.499885559082,\r
+ "y": 615.7460784912109,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "a873419b.bc81c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "34c813e4.f5477c",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1699.1784744262695,\r
+ "y": 667.9603900909424,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "66113f50.7819f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a873419b.bc81c",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1856.0000457763672,\r
+ "y": 615.0000095367432,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "66113f50.7819f8",\r
+ "type": "update",\r
+ "name": "update p-interface",\r
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $unique-nodeId\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<parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\n<parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1885,\r
+ "y": 669,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c8e5472a.d10408",\r
+ "type": "save",\r
+ "name": "save tunnel-termination-point",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n key='tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='ttp-id' value='`$unique-ttpId`' />\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1678,\r
+ "y": 331,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "11cb3cf8.02c3eb",\r
+ "1a336806.ba4bc8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8b0a557c.b35cd",\r
+ "type": "for",\r
+ "name": "for each tunnel termination point",\r
+ "xml": "<for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1341,\r
+ "y": 319,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "58c4d943.63d2f",\r
+ "e7e93cd.8f563c",\r
+ "c8e5472a.d10408",\r
+ "7c00c858.c87ab8",\r
+ "1bd07bf.99e9784"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "58c4d943.63d2f",\r
+ "type": "set",\r
+ "name": "set tunnel termination point",\r
+ "xml": "<set>\n<parameter name='ttp.' value='`$node.te.tunnel-termination-point[$ttidx].`' />\n",\r
+ "comments": "",\r
+ "x": 1676,\r
+ "y": 239,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e7e93cd.8f563c",\r
+ "type": "set",\r
+ "name": "set unique-ttpId",\r
+ "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-nodeId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",\r
+ "comments": "",\r
+ "x": 1634.888916015625,\r
+ "y": 277.111083984375,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "11cb3cf8.02c3eb",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1944,\r
+ "y": 317,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "9ad375c8.fab3e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1a336806.ba4bc8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1937.6785888671875,\r
+ "y": 369.21431159973145,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "842e7e75.fc0558"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9ad375c8.fab3e8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2094.500160217285,\r
+ "y": 316.2539310455322,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "842e7e75.fc0558",\r
+ "type": "update",\r
+ "name": "update tunnel-termination-point",\r
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n key='tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='ttp-id' value='`$unique-ttpId`' />\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2175,\r
+ "y": 371,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "7257c53.4f087bc",\r
+ "type": "set",\r
+ "name": "set local variables",\r
+ "xml": "<set>\n<parameter name='unique-nodeId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $node.node-id`\" />\n",\r
+ "comments": "",\r
+ "x": 927,\r
+ "y": 166,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "55dde830.cc61b8",\r
+ "type": "call",\r
+ "name": "call update-network-links-to-aai",\r
+ "xml": "<call module='DataChange' rpc='update-network-links-to-aai' mode='sync' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 611,\r
+ "y": 329,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "b86a9ee9.558c2",\r
+ "type": "save",\r
+ "name": "save pnf-interface relationship to pnf in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface:relationship-list' \n key='pnf.pnf-name = $unique-nodeId\n AND p-interface.interface-name = $unique-ltpId' 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/' + $unique-nodeId`\" />\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=\"`$unique-nodeId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1617,\r
+ "y": 728,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "7c00c858.c87ab8",\r
+ "type": "save",\r
+ "name": "save pnf relationship to tunnel termination point in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"`relationship-list.relationship[$ttidx].related-to`\" value=\"tunnel-termination-point\" />\n<!--<parameter name=\"relationship-list.relationship[$ttidx].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $node.node-id '/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`\" />-->\n<parameter name=\"`relationship-list.relationship[$ttidx].related-link`\" value=\"`'/network/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`\" />\n<parameter name=\"`relationship-list.relationship[$ttidx].relationship-data[0].relationship-key`\" value=\"tunnel-termination-point.ttp-id\" />\n<parameter name=\"`relationship-list.relationship[$ttidx].relationship-data[0].relationship-value`\" value=\"`$unique-ttpId`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1749,\r
+ "y": 423,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "5d32d079.32cfb8",\r
+ "5c2d8774.9a9178"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "395bef40.08498",\r
+ "type": "switchNode",\r
+ "name": "switch node ttp",\r
+ "xml": "<switch test='`$node.te.tunnel-termination-point_length`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 913,\r
+ "y": 295,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "84bf875e.b8d51",\r
+ "cc6df2e.2398e9",\r
+ "f2d2c388.1aa578"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5889c4ed.3fc544",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1261,\r
+ "y": 247,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "f2d2c388.1aa578",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1103,\r
+ "y": 318,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "8b0a557c.b35cd"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1392eb55.76adbd",\r
+ "type": "switchNode",\r
+ "name": "switch node tp",\r
+ "xml": "<switch test='`$node.termination-point_length`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 893,\r
+ "y": 550,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "c5e649ab.cfe2e8",\r
+ "d7a3de29.b44a1",\r
+ "a21fbfb7.b6608"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c5e649ab.cfe2e8",\r
+ "type": "other",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1072,\r
+ "y": 502,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "3d51c59d.7acffa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d7a3de29.b44a1",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1071,\r
+ "y": 604,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "9c15e41a.6cfbc8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3d51c59d.7acffa",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1227,\r
+ "y": 502,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "e55192de.2cc998",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logTopologyDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"sucess executing Hesam log file\" />\n <parameter name=\"field3\" value=\"`$node.te.tunnel-termination-point_length`\" />\n <parameter name=\"field4\" value=\"`$node.termination-point_length`\" />\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 891,\r
+ "y": 339,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "84bf875e.b8d51",\r
+ "type": "other",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1101,\r
+ "y": 181,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "5889c4ed.3fc544"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cc6df2e.2398e9",\r
+ "type": "outcome",\r
+ "name": "length 0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1106,\r
+ "y": 256,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "5889c4ed.3fc544"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a21fbfb7.b6608",\r
+ "type": "outcome",\r
+ "name": "length 0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1082,\r
+ "y": 550,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "3d51c59d.7acffa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a1ffb2f2.4b50b8",\r
+ "type": "set",\r
+ "name": "unset node",\r
+ "xml": "<set>\n<parameter name='node.' value='' />\n\n",\r
+ "comments": "",\r
+ "x": 899,\r
+ "y": 68,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9abbad80.6c0f7",\r
+ "type": "set",\r
+ "name": "unset termination point",\r
+ "xml": "<set>\n<parameter name='tp.' value='' />\n",\r
+ "comments": "",\r
+ "x": 1549,\r
+ "y": 491,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1bd07bf.99e9784",\r
+ "type": "set",\r
+ "name": "unset tunnel termination point",\r
+ "xml": "<set>\n<parameter name='ttp.' value='' />\n",\r
+ "comments": "",\r
+ "x": 1676,\r
+ "y": 191,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5d32d079.32cfb8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2081,\r
+ "y": 426,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "42b15971.2191b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5c2d8774.9a9178",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2078,\r
+ "y": 474,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "ad595c83.2160d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "42b15971.2191b8",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logTopologyDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"sucess executing Hesam log file\" />\n <parameter name=\"field3\" value=\"`$node.te.tunnel-termination-point_length`\" />\n <parameter name=\"field4\" value=\"`$node.termination-point_length`\" />\n <parameter name=\"field5\" value=\"sucessfully saved ttp\" />\n <parameter name=\"field6\" value=\"`relationship-list.relationship[$ttidx].related-link`\" />\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2236,\r
+ "y": 427,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ad595c83.2160d",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logTopologyDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"sucess executing Hesam log file\" />\n <parameter name=\"field3\" value=\"`$node.te.tunnel-termination-point_length`\" />\n <parameter name=\"field4\" value=\"`$node.termination-point_length`\" />\n <parameter name=\"field5\" value=\"failuire on saving ttp\" />\n <parameter name=\"field6\" value=\"`relationship-list.relationship[$ttidx].related-link`\" />\n\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2237,\r
+ "y": 475,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ }\r
]
\ No newline at end of file
-[
- {
- "id": "c069a9f3.34d638",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 168,
- "y": 75,
- "z": "d37ca473.74b47",
- "wires": [
- [
- "2f4d91cf.36cc46"
- ]
- ]
- },
- {
- "id": "2f4d91cf.36cc46",
- "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": 257.0000305175781,
- "y": 165.88891220092773,
- "z": "d37ca473.74b47",
- "wires": [
- [
- "550913a5.d552a4"
- ]
- ]
- },
- {
- "id": "550913a5.d552a4",
- "type": "method",
- "name": "method update-tp-ttp-relationship",
- "xml": "<method rpc='update-tp-ttp-relationship' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 293.1112518310547,
- "y": 236.22223663330078,
- "z": "d37ca473.74b47",
- "wires": [
- [
- "1261384d.98d348"
- ]
- ]
- },
- {
- "id": "1261384d.98d348",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 518.3334350585938,
- "y": 235.77792358398438,
- "z": "d37ca473.74b47",
- "wires": [
- [
- "f631c21f.80e608",
- "d6f41ba6.e863f8",
- "9c740eae.9ff66"
- ]
- ]
- },
- {
- "id": "d6f41ba6.e863f8",
- "type": "for",
- "name": "for each node in network-eth",
- "xml": "<for index='pethidx' start='0' end='`$network-eth.node_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 750.8888549804688,
- "y": 190.33331298828125,
- "z": "d37ca473.74b47",
- "wires": [
- [
- "9889f298.ed1fc8",
- "5c75717d.de39a",
- "f952b49d.52fa6"
- ]
- ]
- },
- {
- "id": "9889f298.ed1fc8",
- "type": "set",
- "name": "set node-eth",
- "xml": "<set>\n<parameter name='node-eth.' value='`$network-eth.node[$pethidx].`' />",
- "comments": "",
- "x": 1034.111083984375,
- "y": 97.22221374511719,
- "z": "d37ca473.74b47",
- "wires": []
- },
- {
- "id": "5c75717d.de39a",
- "type": "for",
- "name": "for each termination point",
- "xml": "<for index='tidx' start='0' end='`$node-eth.termination-point_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 983.4444580078125,
- "y": 353.111083984375,
- "z": "d37ca473.74b47",
- "wires": [
- [
- "c60cccd6.642dd",
- "4b686a78.0dbfdc",
- "634edb60.ca9b44",
- "d61d1f77.90dba"
- ]
- ]
- },
- {
- "id": "c60cccd6.642dd",
- "type": "set",
- "name": "set termination point tp-eth",
- "xml": "<set>\n<parameter name='tp-eth.' value='`$node-eth.termination-point[$tidx].`' />\n",
- "comments": "",
- "x": 1255.111328125,
- "y": 224.00006103515625,
- "z": "d37ca473.74b47",
- "wires": []
- },
- {
- "id": "4b686a78.0dbfdc",
- "type": "set",
- "name": "set unique-ltpethId",
- "xml": "<set>\n<parameter name='unique-ltpethId' value=\"`$unique-node-ethId + '-ltpId-' + $tp-eth.te-tp-id`\" />\n",
- "comments": "",
- "x": 1233.000244140625,
- "y": 261.111083984375,
- "z": "d37ca473.74b47",
- "wires": []
- },
- {
- "id": "f631c21f.80e608",
- "type": "execute",
- "name": "execute set tmp.network-eth.network-id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$network-eth.network-id`\"/>\n <parameter name=\"outputPath\" value=\"tmp.network-eth.network-id\"/>\n <parameter name=\"target\" value=\"/\"/>\n <parameter name=\"replacement\" value=\"-\"/>\n ",
- "comments": "",
- "outputs": 1,
- "x": 708.9935302734375,
- "y": 54.993499755859375,
- "z": "d37ca473.74b47",
- "wires": [
- []
- ]
- },
- {
- "id": "f952b49d.52fa6",
- "type": "set",
- "name": "set local variables",
- "xml": "<set>\n<parameter name='unique-network-ethId' value='`$tmp.network-eth.network-id`' />\n<parameter name='unique-node-ethId' value=\"`'networkId-' + $unique-network-ethId + '-nodeId-' + $node-eth.node-id`\" />\n",
- "comments": "",
- "x": 1033,
- "y": 145,
- "z": "d37ca473.74b47",
- "wires": []
- },
- {
- "id": "9c740eae.9ff66",
- "type": "execute",
- "name": "execute set tmp.network-otn.network-id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$network-otn.network-id`\"/>\n <parameter name=\"outputPath\" value=\"tmp.network-otn.network-id\"/>\n <parameter name=\"target\" value=\"/\"/>\n <parameter name=\"replacement\" value=\"-\"/>\n ",
- "comments": "",
- "outputs": 1,
- "x": 706,
- "y": 94,
- "z": "d37ca473.74b47",
- "wires": [
- []
- ]
- },
- {
- "id": "75e07276.34af4c",
- "type": "for",
- "name": "for each tunnel termination point in otn",
- "xml": "<for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1609,
- "y": 408,
- "z": "d37ca473.74b47",
- "wires": [
- [
- "74200ec3.9b2e88",
- "b86a8b99.9fa22",
- "f5f85bac.6cdcb",
- "45e7bcc7.d12924"
- ]
- ]
- },
- {
- "id": "74200ec3.9b2e88",
- "type": "set",
- "name": "set tunnel termination point",
- "xml": "<set>\n<parameter name='ttp.' value='`$node-otn.te.tunnel-termination-point[$ttidx].`' />\n",
- "comments": "",
- "x": 1985,
- "y": 333,
- "z": "d37ca473.74b47",
- "wires": []
- },
- {
- "id": "b86a8b99.9fa22",
- "type": "set",
- "name": "set unique-ttpId",
- "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-node-otnId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",
- "comments": "",
- "x": 1962.888916015625,
- "y": 400.111083984375,
- "z": "d37ca473.74b47",
- "wires": []
- },
- {
- "id": "634edb60.ca9b44",
- "type": "set",
- "name": "set tp-inter-layer-lock-id",
- "xml": "<set>\n<parameter name='tp-inter-layer-lock-id' value='`$node-eth.termination-point[$tidx].te.inter-layer-lock-id[0]`' />\n",
- "comments": "",
- "x": 1273,
- "y": 301,
- "z": "d37ca473.74b47",
- "wires": []
- },
- {
- "id": "d61d1f77.90dba",
- "type": "for",
- "name": "for each node in network-otn",
- "xml": "<for index='potnidx' start='0' end='`$network-otn.node_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1291,
- "y": 350,
- "z": "d37ca473.74b47",
- "wires": [
- [
- "75e07276.34af4c",
- "81ad0d1b.593018",
- "65d2d272.734f34"
- ]
- ]
- },
- {
- "id": "81ad0d1b.593018",
- "type": "set",
- "name": "set node-otn",
- "xml": "<set>\n<parameter name='node-otn.' value='`$network-otn.node[$potnidx].`' />",
- "comments": "",
- "x": 1585,
- "y": 320,
- "z": "d37ca473.74b47",
- "wires": []
- },
- {
- "id": "65d2d272.734f34",
- "type": "set",
- "name": "set local variables",
- "xml": "<set>\n<parameter name='unique-network-otnId' value='`$tmp.network-otn.network-id`' />\n<parameter name='unique-node-otnId' value=\"`'networkId-' + $unique-network-otnId + '-nodeId-' + $node-otn.node-id`\" />\n",
- "comments": "",
- "x": 1583.888916015625,
- "y": 367.7777862548828,
- "z": "d37ca473.74b47",
- "wires": []
- },
- {
- "id": "f5f85bac.6cdcb",
- "type": "set",
- "name": "set ttp-inter-layer-lock-id",
- "xml": "<set>\n<parameter name='ttp-inter-layer-lock-id' value='`$node-otn.te.tunnel-termination-point[$ttidx].inter-layer-lock-id`' />\n",
- "comments": "",
- "x": 1984,
- "y": 451,
- "z": "d37ca473.74b47",
- "wires": []
- },
- {
- "id": "45e7bcc7.d12924",
- "type": "switchNode",
- "name": "switch tp-inter-layer-lock-id",
- "xml": "<switch test='tp-inter-layer-lock-id'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1927,
- "y": 506,
- "z": "d37ca473.74b47",
- "wires": [
- [
- "7b1ad64c.6662d"
- ]
- ]
- },
- {
- "id": "7b1ad64c.6662d",
- "type": "outcome",
- "name": "ttp-inter-layer-lock-id",
- "xml": "<outcome value='ttp-inter-layer-lock-id'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2036,
- "y": 603,
- "z": "d37ca473.74b47",
- "wires": [
- [
- "d7c8dbff.d22ff"
- ]
- ]
- },
- {
- "id": "d7c8dbff.d22ff",
- "type": "save",
- "name": "save p-interface relationship to ttp in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface:relationship-list' \n key='p-interface.interface-name = $unique-ltpethId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"tunnel-termination-point\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"/network/tunnel-termination-points/tunnel-termination-point/ + `$unique-ttpId`\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"tunnel-termination-point.tunnel-tp-id\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$unique-ttpId`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 2354,
- "y": 603,
- "z": "d37ca473.74b47",
- "wires": [
- []
- ]
- }
+[\r
+ {\r
+ "id": "f3ed8bda.981eb",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 126,\r
+ "y": 86.00650024414062,\r
+ "z": "8966128c.40fc9",\r
+ "wires": [\r
+ [\r
+ "1edaf826.be0fa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1edaf826.be0fa",\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": 215.00003051757812,\r
+ "y": 176.89541244506836,\r
+ "z": "8966128c.40fc9",\r
+ "wires": [\r
+ [\r
+ "3d56f688.012602"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3d56f688.012602",\r
+ "type": "method",\r
+ "name": "method update-tp-ttp-relationship",\r
+ "xml": "<method rpc='update-tp-ttp-relationship' mode='sync'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 251.1112518310547,\r
+ "y": 247.2287368774414,\r
+ "z": "8966128c.40fc9",\r
+ "wires": [\r
+ [\r
+ "91a7d40.f3c79b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "91a7d40.f3c79b",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 476.33343505859375,\r
+ "y": 246.784423828125,\r
+ "z": "8966128c.40fc9",\r
+ "wires": [\r
+ [\r
+ "44cf69ab.02fc28",\r
+ "6f71423b.e63cac",\r
+ "8b1ad0d7.d3282"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6f71423b.e63cac",\r
+ "type": "for",\r
+ "name": "for each node in network-eth",\r
+ "xml": "<for index='pethidx' start='0' end='`$network-eth.node_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 708.8888549804688,\r
+ "y": 201.33981323242188,\r
+ "z": "8966128c.40fc9",\r
+ "wires": [\r
+ [\r
+ "c451c605.7ae0a",\r
+ "70ab1d73.78dfa4",\r
+ "7bcb2ba2.9953f4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c451c605.7ae0a",\r
+ "type": "set",\r
+ "name": "set node-eth",\r
+ "xml": "<set>\n<parameter name='node-eth.' value='`$network-eth.node[$pethidx].`' />",\r
+ "comments": "",\r
+ "x": 992.111083984375,\r
+ "y": 108.22871398925781,\r
+ "z": "8966128c.40fc9",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "70ab1d73.78dfa4",\r
+ "type": "for",\r
+ "name": "for each termination point",\r
+ "xml": "<for index='tidx' start='0' end='`$node-eth.termination-point_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 941.4444580078125,\r
+ "y": 364.1175842285156,\r
+ "z": "8966128c.40fc9",\r
+ "wires": [\r
+ [\r
+ "ae76cdd8.d0a408",\r
+ "f5cb00b6.301068",\r
+ "a58125ba.f3ece",\r
+ "6948417f.bffae",\r
+ "eb8eee0c.443eb8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ae76cdd8.d0a408",\r
+ "type": "set",\r
+ "name": "set termination point tp-eth",\r
+ "xml": "<set>\n<parameter name='tp-eth.' value='`$node-eth.termination-point[$tidx].`' />\n",\r
+ "comments": "",\r
+ "x": 1213.111328125,\r
+ "y": 235.00656127929688,\r
+ "z": "8966128c.40fc9",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f5cb00b6.301068",\r
+ "type": "set",\r
+ "name": "set unique-ltpethId",\r
+ "xml": "<set>\n<parameter name='unique-ltpethId' value=\"`$unique-node-ethId + '-ltpId-' + $tp-eth.te-tp-id`\" />\n",\r
+ "comments": "",\r
+ "x": 1191.000244140625,\r
+ "y": 272.1175842285156,\r
+ "z": "8966128c.40fc9",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "44cf69ab.02fc28",\r
+ "type": "execute",\r
+ "name": "execute set tmp.network-eth.network-id",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$network-eth.network-id`\"/>\n <parameter name=\"outputPath\" value=\"tmp.network-eth.network-id\"/>\n <parameter name=\"target\" value=\"/\"/>\n <parameter name=\"replacement\" value=\"-\"/>\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 666.9935302734375,\r
+ "y": 66,\r
+ "z": "8966128c.40fc9",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "7bcb2ba2.9953f4",\r
+ "type": "set",\r
+ "name": "set local variables",\r
+ "xml": "<set>\n<parameter name='unique-network-ethId' value='`$tmp.network-eth.network-id`' />\n<parameter name='unique-node-ethId' value=\"`'networkId-' + $unique-network-ethId + '-nodeId-' + $node-eth.node-id`\" />\n",\r
+ "comments": "",\r
+ "x": 991,\r
+ "y": 156.00650024414062,\r
+ "z": "8966128c.40fc9",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8b1ad0d7.d3282",\r
+ "type": "execute",\r
+ "name": "execute set tmp.network-otn.network-id",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$network-otn.network-id`\"/>\n <parameter name=\"outputPath\" value=\"tmp.network-otn.network-id\"/>\n <parameter name=\"target\" value=\"/\"/>\n <parameter name=\"replacement\" value=\"-\"/>\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 664,\r
+ "y": 105.00650024414062,\r
+ "z": "8966128c.40fc9",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "3e8d4c9d.81492c",\r
+ "type": "for",\r
+ "name": "for each tunnel termination point in otn",\r
+ "xml": "<for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1567,\r
+ "y": 419.0065002441406,\r
+ "z": "8966128c.40fc9",\r
+ "wires": [\r
+ [\r
+ "c8d54563.247c18",\r
+ "5e04ba3c.b57a04",\r
+ "f0519db1.196698",\r
+ "86fe0338.dea2e8",\r
+ "14bac025.125a4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c8d54563.247c18",\r
+ "type": "set",\r
+ "name": "set tunnel termination point",\r
+ "xml": "<set>\n<parameter name='ttp.' value='`$node-otn.te.tunnel-termination-point[$ttidx].`' />\n",\r
+ "comments": "",\r
+ "x": 1943,\r
+ "y": 344.0065002441406,\r
+ "z": "8966128c.40fc9",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5e04ba3c.b57a04",\r
+ "type": "set",\r
+ "name": "set unique-ttpId",\r
+ "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-node-otnId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",\r
+ "comments": "",\r
+ "x": 1920.888916015625,\r
+ "y": 411.1175842285156,\r
+ "z": "8966128c.40fc9",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "a58125ba.f3ece",\r
+ "type": "set",\r
+ "name": "set tp-inter-layer-lock-id",\r
+ "xml": "<set>\n<parameter name='tp-inter-layer-lock-id' value='`$node-eth.termination-point[$tidx].te.inter-layer-lock-id[0]`' />\n",\r
+ "comments": "",\r
+ "x": 1231,\r
+ "y": 312.0065002441406,\r
+ "z": "8966128c.40fc9",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6948417f.bffae",\r
+ "type": "for",\r
+ "name": "for each node in network-otn",\r
+ "xml": "<for index='potnidx' start='0' end='`$network-otn.node_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1249,\r
+ "y": 361.0065002441406,\r
+ "z": "8966128c.40fc9",\r
+ "wires": [\r
+ [\r
+ "3e8d4c9d.81492c",\r
+ "a37094cf.0ec268",\r
+ "f9e7891b.a33b9"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a37094cf.0ec268",\r
+ "type": "set",\r
+ "name": "set node-otn",\r
+ "xml": "<set>\n<parameter name='node-otn.' value='`$network-otn.node[$potnidx].`' />",\r
+ "comments": "",\r
+ "x": 1543,\r
+ "y": 331.0065002441406,\r
+ "z": "8966128c.40fc9",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f9e7891b.a33b9",\r
+ "type": "set",\r
+ "name": "set local variables",\r
+ "xml": "<set>\n<parameter name='unique-network-otnId' value='`$tmp.network-otn.network-id`' />\n<parameter name='unique-node-otnId' value=\"`'networkId-' + $unique-network-otnId + '-nodeId-' + $node-otn.node-id`\" />\n",\r
+ "comments": "",\r
+ "x": 1541.888916015625,\r
+ "y": 378.78428649902344,\r
+ "z": "8966128c.40fc9",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f0519db1.196698",\r
+ "type": "set",\r
+ "name": "set ttp-inter-layer-lock-id",\r
+ "xml": "<set>\n<parameter name='ttp-inter-layer-lock-id' value='`$node-otn.te.tunnel-termination-point[$ttidx].inter-layer-lock-id`' />\n",\r
+ "comments": "",\r
+ "x": 1942,\r
+ "y": 462.0065002441406,\r
+ "z": "8966128c.40fc9",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "86fe0338.dea2e8",\r
+ "type": "switchNode",\r
+ "name": "switch tp-inter-layer-lock-id",\r
+ "xml": "<switch test='tp-inter-layer-lock-id'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1885,\r
+ "y": 517.0065002441406,\r
+ "z": "8966128c.40fc9",\r
+ "wires": [\r
+ [\r
+ "bece73d9.c8717"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bece73d9.c8717",\r
+ "type": "outcome",\r
+ "name": "ttp-inter-layer-lock-id",\r
+ "xml": "<outcome value='ttp-inter-layer-lock-id'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1994,\r
+ "y": 614.0065002441406,\r
+ "z": "8966128c.40fc9",\r
+ "wires": [\r
+ [\r
+ "377503ca.868e7c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "377503ca.868e7c",\r
+ "type": "save",\r
+ "name": "save p-interface relationship to ttp in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface:relationship-list' \n key='p-interface.interface-name = $unique-ltpethId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"tunnel-termination-point\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"/network/tunnel-termination-points/tunnel-termination-point/ + `$unique-ttpId`\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"tunnel-termination-point.tunnel-tp-id\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$unique-ttpId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2312,\r
+ "y": 614.0065002441406,\r
+ "z": "8966128c.40fc9",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "eb8eee0c.443eb8",\r
+ "type": "set",\r
+ "name": "unset termination point tp-eth",\r
+ "xml": "<set>\n<parameter name='tp-eth.' value='' />\n",\r
+ "comments": "",\r
+ "x": 1208,\r
+ "y": 198,\r
+ "z": "8966128c.40fc9",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "14bac025.125a4",\r
+ "type": "set",\r
+ "name": "unset tunnel termination point",\r
+ "xml": "<set>\n<parameter name='ttp.' value='' />\n",\r
+ "comments": "",\r
+ "x": 1933,\r
+ "y": 305,\r
+ "z": "8966128c.40fc9",\r
+ "wires": []\r
+ }\r
]
\ No newline at end of file
<service-logic\r
- xmlns='http://www.onap.org/sdnc/svclogic'\r
- 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
+ xmlns='http://www.onap.org/sdnc/svclogic'\r
+ 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
<method rpc='esr-thirdparty-sdnc-discovery' mode='sync'>\r
<block atomic="true">\r
<switch test="`$prop.sdncRestApi.vendor == 'ZTE'`">\r
<call module='DataChange' rpc='update-network-to-aai' mode='sync' ></call>\r
</block>\r
</for>\r
- <switch test='`$topology.networks.network_length`'>\r
- <outcome value='2'>\r
- <switch test='`$topology.networks.network[0].network-types`'>\r
- <outcome value='ethernet-topology'>\r
- <switch test='`$topology.networks.network[1].network-types`'>\r
- <outcome value='otn-topology'>\r
+ <switch test='`$topology.networks.network_length >= 2`'>\r
+ <outcome value='true'>\r
+ <for index='netidx' start='0' end='`$topology.networks.network_length`' >\r
+ <block>\r
+ <set>\r
+ <parameter name='network.' value='' />\r
+ </set>\r
+ <set>\r
+ <parameter name='network.' value='`$topology.networks.network[$netidx].`' />\r
+ </set>\r
+ <switch test='`$network.te-topology-id`'>\r
+ <outcome value='11'>\r
<block>\r
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+ <parameter name="file" value="/opt/onap/logSdncDiscovery.txt" />\r
+ <parameter name="field1" value="__TIMESTAMP__" />\r
+ <parameter name="field2" value="networks_length" />\r
+ <parameter name="field3" value="`$topology.networks.network_length`" />\r
+ <parameter name="field4" value="network-type-is" />\r
+ <parameter name="field5" value="OTN" />\r
+ </record>\r
<set>\r
- <parameter name='network-eth.' value='`$topology.networks.network[0].`' />\r
- <parameter name='network-otn.' value='`$topology.networks.network[1].`' />\r
+ <parameter name='network-otn.' value='`$topology.networks.network[$netidx].`' />\r
</set>\r
- <call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' ></call>\r
</block>\r
</outcome>\r
- <outcome value='Other'>\r
- <return status='failure'>\r
- <parameter name='error-code' value='' />\r
- <parameter name='error-message' value='' />\r
- </return>\r
- </outcome>\r
- </switch>\r
- </outcome>\r
- <outcome value='otn-topology'>\r
- <switch test='`$topology.networks.network[1].network-types`'>\r
- <outcome value='ethernet-topology'>\r
+ <outcome value='33'>\r
<block>\r
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+ <parameter name="file" value="/opt/onap/logSdncDiscovery.txt" />\r
+ <parameter name="field1" value="__TIMESTAMP__" />\r
+ <parameter name="field2" value="networks_length" />\r
+ <parameter name="field3" value="`$topology.networks.network_length`" />\r
+ <parameter name="field4" value="network-type-is" />\r
+ <parameter name="field5" value="ETH" />\r
+ </record>\r
<set>\r
- <parameter name='network.eth' value='`$topology.networks.network[1].`' />\r
- <parameter name='network.otn' value='`$topology.networks.network[0].`' />\r
+ <parameter name='network-eth.' value='`$topology.networks.network[$netidx].`' />\r
</set>\r
- <call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' ></call>\r
</block>\r
</outcome>\r
- <outcome value='Other'>\r
- <return status='failure'>\r
- <parameter name='error-code' value='' />\r
- <parameter name='error-message' value='' />\r
- </return>\r
- </outcome>\r
</switch>\r
- </outcome>\r
- </switch>\r
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+ <parameter name="file" value="/opt/onap/logSdncDiscovery.txt" />\r
+ <parameter name="field6" value="network-otn-is" />\r
+ <parameter name="field7" value="`$network-otn.te-topology-id`" />\r
+ <parameter name="field8" value="network-eth-is" />\r
+ <parameter name="field9" value="`$network-eth.te-topology-id`" />\r
+ </record>\r
+ <call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' ></call>\r
+ </block>\r
+ </for>\r
</outcome>\r
- </switch>\r
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
- resource="network-resources"\r
- pfx='tmp.aai.network-resources' local-only='false' >\r
- <outcome value='success'>\r
- <switch test='tmp.aai.network-resources_length'>\r
- <outcome value='4'>\r
- <block atomic='true'>\r
- <for index='nridx' start='0' end='`$tmp.aai.network-resources.network-resource_length`' >\r
- <block>\r
- <set>\r
- <parameter name='otnidx' value='0' />\r
- </set>\r
- <switch test='`$tmp.aai.network-resources.network-resource[$nridx].network-type`'>\r
- <outcome value='otn-topology'>\r
- <block>\r
- <set>\r
- <parameter name='network-resource-otn[$otnidx].' value='`$tmp.aai.network-resources.network-resource[$nridx].`' />\r
- </set>\r
- <set>\r
- <parameter name='otnidx' value='`$otnidx + 1`' />\r
- </set>\r
- </block>\r
- </outcome>\r
- </switch>\r
- </block>\r
- </for>\r
- <call module='DataChange' rpc='update-open-ended-links' mode='sync' ></call>\r
- </block>\r
- </outcome>\r
- </switch>\r
- </outcome>\r
- <outcome value='not-found'>\r
- <return status='failure'>\r
- <parameter name='error-code' value='' />\r
- <parameter name='error-message' value='' />\r
- </return>\r
+ <outcome value='false'>\r
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+ <parameter name="file" value="/opt/onap/logSdncDiscovery.txt" />\r
+ <parameter name="field1" value="__TIMESTAMP__" />\r
+ <parameter name="field2" value="networks_length" />\r
+ <parameter name="field3" value="`$topology.networks.network_length`" />\r
+ </record>\r
</outcome>\r
- <outcome value='Other'>\r
- <return status='failure'>\r
- <parameter name='error-code' value='' />\r
- <parameter name='error-message' value='' />\r
- </return>\r
- </outcome>\r
- </get-resource>\r
+ </switch>\r
</block>\r
</outcome>\r
</execute>\r
<call module='DataChange' rpc='update-network-to-aai' mode='sync' ></call>\r
</block>\r
</for>\r
- <switch test='`$topology.networks.network_length`'>\r
- <outcome value='2'>\r
- <switch test='`$topology.networks.network[0].network-types`'>\r
- <outcome value='ethernet-topology'>\r
- <switch test='`$topology.networks.network[1].network-types`'>\r
- <outcome value='otn-topology'>\r
+ <switch test='`$topology.networks.network_length >= 2`'>\r
+ <outcome value='true'>\r
+ <for index='netidx' start='0' end='`$topology.networks.network_length`' >\r
+ <block>\r
+ <set>\r
+ <parameter name='network.' value='' />\r
+ </set>\r
+ <set>\r
+ <parameter name='network.' value='`$topology.networks.network[$netidx].`' />\r
+ </set>\r
+ <switch test='`$network.te-topology-id`'>\r
+ <outcome value='11'>\r
<block>\r
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+ <parameter name="file" value="/opt/onap/logSdncDiscovery.txt" />\r
+ <parameter name="field1" value="__TIMESTAMP__" />\r
+ <parameter name="field2" value="networks_length" />\r
+ <parameter name="field3" value="`$topology.networks.network_length`" />\r
+ <parameter name="field4" value="network-type-is" />\r
+ <parameter name="field5" value="OTN" />\r
+ </record>\r
<set>\r
- <parameter name='network-eth.' value='`$topology.networks.network[0].`' />\r
- <parameter name='network-otn.' value='`$topology.networks.network[1].`' />\r
+ <parameter name='network-otn.' value='`$topology.networks.network[$netidx].`' />\r
</set>\r
- <call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' ></call>\r
</block>\r
</outcome>\r
- <outcome value='Other'>\r
- <return status='failure'>\r
- <parameter name='error-code' value='' />\r
- <parameter name='error-message' value='' />\r
- </return>\r
- </outcome>\r
- </switch>\r
- </outcome>\r
- <outcome value='otn-topology'>\r
- <switch test='`$topology.networks.network[1].network-types`'>\r
- <outcome value='ethernet-topology'>\r
+ <outcome value='33'>\r
<block>\r
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+ <parameter name="file" value="/opt/onap/logSdncDiscovery.txt" />\r
+ <parameter name="field1" value="__TIMESTAMP__" />\r
+ <parameter name="field2" value="networks_length" />\r
+ <parameter name="field3" value="`$topology.networks.network_length`" />\r
+ <parameter name="field4" value="network-type-is" />\r
+ <parameter name="field5" value="ETH" />\r
+ </record>\r
<set>\r
- <parameter name='network.eth' value='`$topology.networks.network[1].`' />\r
- <parameter name='network.otn' value='`$topology.networks.network[0].`' />\r
+ <parameter name='network-eth.' value='`$topology.networks.network[$netidx].`' />\r
</set>\r
- <call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' ></call>\r
</block>\r
</outcome>\r
- <outcome value='Other'>\r
- <return status='failure'>\r
- <parameter name='error-code' value='' />\r
- <parameter name='error-message' value='' />\r
- </return>\r
- </outcome>\r
</switch>\r
- </outcome>\r
- </switch>\r
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+ <parameter name="file" value="/opt/onap/logSdncDiscovery.txt" />\r
+ <parameter name="field6" value="network-otn-is" />\r
+ <parameter name="field7" value="`$network-otn.te-topology-id`" />\r
+ <parameter name="field8" value="network-eth-is" />\r
+ <parameter name="field9" value="`$network-eth.te-topology-id`" />\r
+ </record>\r
+ <call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' ></call>\r
+ </block>\r
+ </for>\r
</outcome>\r
- </switch>\r
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
- resource="network-resources"\r
- pfx='tmp.aai.network-resources' local-only='false' >\r
- <outcome value='success'>\r
- <switch test='tmp.aai.network-resources_length'>\r
- <outcome value='4'>\r
- <block atomic='true'>\r
- <for index='nridx' start='0' end='`$tmp.aai.network-resources.network-resource_length`' >\r
- <block>\r
- <set>\r
- <parameter name='otnidx' value='0' />\r
- </set>\r
- <switch test='`$tmp.aai.network-resources.network-resource[$nridx].network-type`'>\r
- <outcome value='otn-topology'>\r
- <block>\r
- <set>\r
- <parameter name='network-resource-otn[$otnidx].' value='`$tmp.aai.network-resources.network-resource[$nridx].`' />\r
- </set>\r
- <set>\r
- <parameter name='otnidx' value='`$otnidx + 1`' />\r
- </set>\r
- </block>\r
- </outcome>\r
- </switch>\r
- </block>\r
- </for>\r
- <call module='DataChange' rpc='update-open-ended-links' mode='sync' ></call>\r
- </block>\r
- </outcome>\r
- </switch>\r
- </outcome>\r
- <outcome value='not-found'>\r
- <return status='failure'>\r
- <parameter name='error-code' value='' />\r
- <parameter name='error-message' value='' />\r
- </return>\r
+ <outcome value='false'>\r
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+ <parameter name="file" value="/opt/onap/logSdncDiscovery.txt" />\r
+ <parameter name="field1" value="__TIMESTAMP__" />\r
+ <parameter name="field2" value="networks_length" />\r
+ <parameter name="field3" value="`$topology.networks.network_length`" />\r
+ </record>\r
</outcome>\r
- <outcome value='Other'>\r
- <return status='failure'>\r
- <parameter name='error-code' value='' />\r
- <parameter name='error-message' value='' />\r
- </return>\r
- </outcome>\r
- </get-resource>\r
+ </switch>\r
</block>\r
</outcome>\r
</execute>\r
-<service-logic xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module="DataChange" version="${project.version}">
- <method rpc="update-network-links-to-aai" mode="sync">
- <block atomic="true">
- <for index="pidx" start="0" end="`$network.link_length`">
- <set>
- <parameter name="link." value="`$network.link[$pidx].`"/>
- <parameter name="unique-networkId" value="`$tmp.network-id`"/>
- </set>
- <set>
- <parameter name="unique-linkId" value="`'networkId-' + $unique-networkId + '-linkId-' + $link.link-id`"/>
- <parameter name="src-tpId" value="`'networkId-' + $unique-networkId + '-nodeId-' + $link.source.source-node + '-ltpId-' + $link.source.source-tp`"/>
- <parameter name="unique-src-node-Id" value="`'networkId-' + $unique-networkId + '-nodeId-' + $link.source.source-node`"/>
- </set>
- <switch test="`$link.destination`">
- <outcome value="">
- <block>
- <set>
- <parameter name="is-open-ended-link" value="true"/>
- </set>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="p-interface" key="pnf.pnf-name = $unique-src-node-Id and p-interface.interface-name = $src-tpId" local-only="false" pfx="tmp.aai.p-interface">
- <outcome value="success">
- <set>
- <parameter name="alt-unique-linkId" value="`$tmp.aai.p-interface.inter-domain-plug-id`"/>
- </set>
- </outcome>
- <outcome value="not-found">
- <return status="failure">
- <parameter name="ack-final" value="Y"/>
- <parameter name="error-code" value="500"/>
- <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`"/>
- </return>
- </outcome>
- <outcome value="failure">
- <return status="failure">
- <parameter name="error-code" value=""/>
- <parameter name="error-message" value=""/>
- </return>
- </outcome>
- </get-resource>
- </block>
- </outcome>
- <outcome value="Other">
- <set>
- <parameter name="dst-tpId" value="`'networkId-' + $unique-networkId + '-nodeId-' + $link.destination.dest-node + '-ltpId-' + $link.destination.dest-tp`"/>
- <parameter name="unique-dst-node-Id" value="`'networkId-' + $unique-networkId + '-nodeId-' + $link.destination.dest-node`"/>
- <parameter name="is-open-ended-link" value="false"/>
- </set>
- </outcome>
- </switch>
- <switch test="`$is-open-ended-link`">
- <outcome value="true">
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="logical-link" key="logical-link.link-name = $alt-unique-linkId" local-only="false" pfx="tmp.aai.logical-link">
- <outcome value="success">
- <update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="logical-link:relationship-list" key="logical-link.link-name = $alt-unique-linkId" force="true" pfx="tmp.AnAI-data">
- <!--
- <parameter name="relationship-list.relationship[0].related-to" value="p-interface" />
- -->
- <!--
- <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`" />
- -->
- <!--
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="p-interface.interface-name" />
- -->
- <!--
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$src-tpId`" />
- -->
- <parameter name="relationship-list.relationship[1].related-to" value="p-interface"/>
- <parameter name="relationship-list.relationship[1].related-link" value="`'/network/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`"/>
- <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-key" value="p-interface.interface-name"/>
- <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-value" value="`$src-tpId`"/>
- </update>
- </outcome>
- <outcome value="not-found">
- <block atomic="true">
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="logical-link" key="logical-link.link-name = $alt-unique-linkId">
- <parameter name="link-name" value="`$alt-unique-linkId`"/>
- <parameter name="link-id" value="`$link.link-id`"/>
- <parameter name="link-type" value="`$link.te.te-link-attributes.access-type`"/>
- </save>
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="logical-link:relationship-list" key="logical-link.link-name = $unique-linkId" force="true" pfx="tmp.AnAI-data">
- <parameter name="relationship-list.relationship[0].related-to" value="p-interface"/>
- <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`"/>
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="p-interface.interface-name"/>
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$src-tpId`"/>
- </save>
- <switch test="`$link.te.te-link-attributes.label-restriction`">
- <outcome value="">
- <block/>
- </outcome>
- <outcome value="Other">
- <for index="tidx" start="0" end="`$link.te.te-link-attributes.label-restriction_length`">
- <set>
- <parameter name="label-restriction." value="`$link.te.te-link-attributes.label-restriction[$tidx].`"/>
- <parameter name="unique-lrId" value="`$alt-unique-linkId + '-lrId-' + $label-restriction.index`"/>
- </set>
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="label-restriction" key="logical-link.link-name = $alt-unique-linkId AND label-restriction.id = $unique-lrId">
- <parameter name="id" value="`$unique-lrId`"/>
- <parameter name="label-start" value="`$label-restriction.label-start`"/>
- <parameter name="label-end" value="`$label-restriction.label-end`"/>
- <parameter name="range-bitmap" value="`$label-restriction.range-bitmap`"/>
- <parameter name="label-step" value="`$label-restriction.label-step`"/>
- <parameter name="inclusive-exclusive" value="`$label-restriction.inclusive-exclusive`"/>
- <outcome value="success">
- <block/>
- </outcome>
- <outcome value="failure">
- <update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="label-restriction" key="logical-link.link-name = $alt-unique-linkId AND label-restriction.id = $unique-lrId">
- <parameter name="id" value="`$unique-lrId`"/>
- <parameter name="label-start" value="`$label-restriction.label-start`"/>
- <parameter name="label-end" value="`$label-restriction.label-end`"/>
- <parameter name="range-bitmap" value="`$label-restriction.range-bitmap`"/>
- <parameter name="label-step" value="`$label-restriction.label-step`"/>
- <parameter name="inclusive-exclusive" value="`$label-restriction.inclusive-exclusive`"/>
- </update>
- </outcome>
- </save>
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="logical-link:relationship-list" key="logical-link.link-name = $alt-unique-linkId" force="true" pfx="tmp.AnAI-data">
- <parameter name="relationship-list.relationship[$tidx].related-to" value="label-restriction"/>
- <parameter name="relationship-list.relationship[$tidx].related-link" value="`'/network/label-restrictions/label-restriction/' + $unique-lrId`"/>
- <parameter name="relationship-list.relationship[$tidx].relationship-data[0].relationship-key" value="label-restriction.id"/>
- <parameter name="relationship-list.relationship[$tidx].relationship-data[0].relationship-value" value="`$unique-lrId`"/>
- </save>
- </for>
- </outcome>
- </switch>
- </block>
- </outcome>
- </get-resource>
- </outcome>
- <outcome value="false">
- <block atomic="true">
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="logical-link" key="logical-link.link-name = $unique-linkId">
- <parameter name="link-name" value="`$unique-linkId`"/>
- <parameter name="link-id" value="`$link.link-id`"/>
- <parameter name="link-type" value="`$link.te.te-link-attributes.access-type`"/>
- </save>
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="logical-link:relationship-list" key="logical-link.link-name = $unique-linkId" force="true" pfx="tmp.AnAI-data">
- <parameter name="relationship-list.relationship[0].related-to" value="p-interface"/>
- <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`"/>
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="p-interface.interface-name"/>
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$src-tpId`"/>
- <parameter name="relationship-list.relationship[1].related-to" value="p-interface"/>
- <parameter name="relationship-list.relationship[1].related-link" value="`'/network/pnfs/pnf/' + $unique-dst-node-Id + '/p-interfaces/p-interface/' + $dst-tpId`"/>
- <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-key" value="p-interface.interface-name"/>
- <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-value" value="`$dst-tpId`"/>
- </save>
- <switch test="`$link.te.te-link-attributes.label-restriction`">
- <outcome value="">
- <block/>
- </outcome>
- <outcome value="Other">
- <for index="tidx" start="0" end="`$link.te.te-link-attributes.label-restriction_length`">
- <set>
- <parameter name="label-restriction." value="`$link.te.te-link-attributes.label-restriction[$tidx].`"/>
- <parameter name="unique-lrId" value="`$unique-linkId + '-lrId-' + $label-restriction.index`"/>
- </set>
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="label-restriction" key="logical-link.link-name = $unique-linkId AND label-restriction.id = $unique-lrId">
- <parameter name="id" value="`$unique-lrId`"/>
- <parameter name="label-start" value="`$label-restriction.label-start`"/>
- <parameter name="label-end" value="`$label-restriction.label-end`"/>
- <parameter name="range-bitmap" value="`$label-restriction.range-bitmap`"/>
- <parameter name="label-step" value="`$label-restriction.label-step`"/>
- <parameter name="inclusive-exclusive" value="`$label-restriction.inclusive-exclusive`"/>
- <outcome value="success">
- <block/>
- </outcome>
- <outcome value="failure">
- <update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="label-restriction" key="logical-link.link-name = $unique-linkId AND label-restriction.id = $unique-lrId">
- <parameter name="id" value="`$unique-lrId`"/>
- <parameter name="label-start" value="`$label-restriction.label-start`"/>
- <parameter name="label-end" value="`$label-restriction.label-end`"/>
- <parameter name="range-bitmap" value="`$label-restriction.range-bitmap`"/>
- <parameter name="label-step" value="`$label-restriction.label-step`"/>
- <parameter name="inclusive-exclusive" value="`$label-restriction.inclusive-exclusive`"/>
- </update>
- </outcome>
- </save>
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="logical-link:relationship-list" key="logical-link.link-name = $unique-linkId" force="true" pfx="tmp.AnAI-data">
- <parameter name="relationship-list.relationship[$tidx].related-to" value="label-restriction"/>
- <parameter name="relationship-list.relationship[$tidx].related-link" value="`'/network/label-restrictions/label-restriction/' + $unique-lrId`"/>
- <parameter name="relationship-list.relationship[$tidx].relationship-data[0].relationship-key" value="label-restriction.id"/>
- <parameter name="relationship-list.relationship[$tidx].relationship-data[0].relationship-value" value="`$unique-lrId`"/>
- </save>
- </for>
- </outcome>
- </switch>
- </block>
- </outcome>
- </switch>
- </for>
- </block>
- </method>
+<service-logic\r
+ xmlns='http://www.onap.org/sdnc/svclogic'\r
+ 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
+ <method rpc='update-network-links-to-aai' mode='sync'>\r
+ <block atomic="true">\r
+ <for index='pidx' start='0' end='`$network.link_length`' >\r
+ <set>\r
+ <parameter name='link.' value='' />\r
+ <parameter name='dst-tpId' value='' />\r
+ <parameter name='unique-dst-node-Id' value='' />\r
+ <parameter name='is-open-ended-link' value='false' />\r
+ <parameter name='is-invalid-open-ended-link' value='false' />\r
+ </set>\r
+ <set>\r
+ <parameter name='link.' value='`$network.link[$pidx].`' />\r
+ <parameter name='unique-networkId' value='`$tmp.network-id`' />\r
+ </set>\r
+ <set>\r
+ <parameter name='unique-linkId' value="`'networkId-' + $unique-networkId + '-linkId-' + $link.link-id`" />\r
+ <parameter name='src-tpId' value="`'networkId-' + $unique-networkId + '-nodeId-' + $link.source.source-node + '-ltpId-' + $link.source.source-tp`" />\r
+ <parameter name='unique-src-node-Id' value="`'networkId-' + $unique-networkId + '-nodeId-' + $link.source.source-node`" />\r
+ </set>\r
+ <switch test='`$link.destination.dest-node`'>\r
+ <outcome value=''>\r
+ <block>\r
+ <set>\r
+ <parameter name='is-open-ended-link' value='true' />\r
+ </set>\r
+ <set>\r
+ <parameter name='tmp.aai.p-interface' value='' />\r
+ <parameter name='tmp.aai.p-interface.inter-domain-plug-id' value='' />\r
+ </set>\r
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+ resource="p-interface"\r
+ key="pnf.pnf-name = $unique-src-node-Id\r
+ and p-interface.interface-name = $src-tpId"\r
+ local-only="false" \r
+ pfx="tmp.aai.p-interface" >\r
+ <outcome value='success'>\r
+ <switch test='`$tmp.aai.p-interface.inter-domain-plug-id`'>\r
+ <outcome value=''>\r
+ <set>\r
+ <parameter name='is-open-ended-link' value='false' />\r
+ <parameter name='is-invalid-open-ended-link' value='true' />\r
+ </set>\r
+ </outcome>\r
+ <outcome value='Other'>\r
+ <set>\r
+ <parameter name='alt-unique-linkId' value="`$tmp.aai.p-interface.inter-domain-plug-id`" />\r
+ <!--<parameter name='alt-unique-linkId' value="`'networkId-' + $unique-networkId + '-linkId-' + $tmp.aai.p-interface.inter-domain-plug-id`" />-->\r
+ </set>\r
+ </outcome>\r
+ </switch>\r
+ </outcome>\r
+ <outcome value='not-found'>\r
+ <return status='failure'>\r
+ <parameter name='ack-final' value='Y'/>\r
+ <parameter name="error-code" value="500" />\r
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+ </return>\r
+ </outcome>\r
+ <outcome value='failure'>\r
+ <return status='failure'>\r
+ <parameter name='error-code' value='' />\r
+ <parameter name='error-message' value='' />\r
+ </return>\r
+ </outcome>\r
+ </get-resource>\r
+ </block>\r
+ </outcome>\r
+ <outcome value='Other'>\r
+ <set>\r
+ <parameter name='dst-tpId' value="`'networkId-' + $unique-networkId + '-nodeId-' + $link.destination.dest-node + '-ltpId-' + $link.destination.dest-tp`" />\r
+ <parameter name='unique-dst-node-Id' value="`'networkId-' + $unique-networkId + '-nodeId-' + $link.destination.dest-node`" />\r
+ <parameter name='is-open-ended-link' value='false' />\r
+ </set>\r
+ </outcome>\r
+ </switch>\r
+ <switch test='`$is-invalid-open-ended-link`'>\r
+ <outcome value='true'>\r
+ <block></block>\r
+ </outcome>\r
+ <outcome value='false'>\r
+ <switch test='`$is-open-ended-link`'>\r
+ <outcome value='true'>\r
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+ resource="logical-link"\r
+ key="logical-link.link-name = $alt-unique-linkId"\r
+ local-only="false" \r
+ pfx="tmp.aai.logical-link" >\r
+ <outcome value='success'>\r
+ <block>\r
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+ <parameter name="file" value="/opt/onap/logMerge.txt" />\r
+ <parameter name="field1" value="__TIMESTAMP__" />\r
+ <parameter name="field2" value="altUniqueLinkId" />\r
+ <parameter name="field3" value="`$alt-unique-linkId`" />\r
+ <parameter name="field4" value="srcTpId" />\r
+ <parameter name="field5" value="`$src-tpId`" />\r
+ <parameter name="field6" value="relationship-value" />\r
+ <parameter name="field7" value='`$tmp.aai.logical-link.relationship-list.relationship[0].relationship-data[1].relationship-value`' />\r
+ </record>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \r
+ key='logical-link.link-name = $alt-unique-linkId' force="true" pfx="tmp.AnAI-data">\r
+ <!--<parameter name="relationship-list.relationship[0].related-to" value="p-interface" />-->\r
+ <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`" />-->\r
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="p-interface.interface-name" />-->\r
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$src-tpId`" />-->\r
+ <parameter name="relationship-list.relationship[0].related-to" value="p-interface" />\r
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`" />\r
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="p-interface.interface-name" />\r
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$src-tpId`" />\r
+ <outcome value='success'>\r
+ <block>\r
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+ <parameter name="file" value="/opt/onap/logMergeSuccess.txt" />\r
+ <parameter name="field1" value="__TIMESTAMP__" />\r
+ <parameter name="field2" value="altUniqueLinkId" />\r
+ <parameter name="field3" value="`$alt-unique-linkId`" />\r
+ <parameter name="field4" value="srcTpId" />\r
+ <parameter name="field5" value="`$src-tpId`" />\r
+ <parameter name="field6" value="relationship-value" />\r
+ <parameter name="field7" value='`$tmp.aai.logical-link.relationship-list.relationship[0].relationship-data[1].relationship-value`' />\r
+ </record>\r
+ </block>\r
+ </outcome>\r
+ <outcome value='failure'>\r
+ <block>\r
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+ <parameter name="file" value="/opt/onap/logMergeFailure.txt" />\r
+ <parameter name="field1" value="__TIMESTAMP__" />\r
+ <parameter name="field2" value="altUniqueLinkId" />\r
+ <parameter name="field3" value="`$alt-unique-linkId`" />\r
+ <parameter name="field4" value="srcTpId" />\r
+ <parameter name="field5" value="`$src-tpId`" />\r
+ <parameter name="field6" value="relationship-value" />\r
+ <parameter name="field7" value='`$tmp.aai.logical-link.relationship-list.relationship[0].relationship-data[1].relationship-value`' />\r
+ </record>\r
+ </block>\r
+ </outcome>\r
+ </save>\r
+ </block>\r
+ </outcome>\r
+ <outcome value='not-found'>\r
+ <block atomic='true'>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link' \r
+ key='logical-link.link-name = $alt-unique-linkId' >\r
+ <parameter name='link-name' value='`$alt-unique-linkId`' />\r
+ <parameter name='link-id' value='`$link.link-id`' />\r
+ <parameter name='link-type' value='`$link.te.te-link-attributes.access-type`' />\r
+ </save>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \r
+ key='logical-link.link-name = $alt-unique-linkId' force="true" pfx="tmp.AnAI-data">\r
+ <parameter name="relationship-list.relationship[0].related-to" value="p-interface" />\r
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`" />\r
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="p-interface.interface-name" />\r
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$src-tpId`" />\r
+ </save>\r
+ <switch test='`$link.te.te-link-attributes.label-restriction`'>\r
+ <outcome value=''>\r
+ <block></block>\r
+ </outcome>\r
+ <outcome value='Other'>\r
+ <for index='tidx' start='0' end='`$link.te.te-link-attributes.label-restriction_length`' >\r
+ <set>\r
+ <parameter name='label-restriction.' value='`$link.te.te-link-attributes.label-restriction[$tidx].`' />\r
+ <parameter name='unique-lrId' value="`$alt-unique-linkId + '-lrId-' + $label-restriction.index`" />\r
+ </set>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \r
+ key='logical-link.link-name = $alt-unique-linkId\r
+ AND label-restriction.id = $unique-lrId' >\r
+ <parameter name='id' value='`$unique-lrId`' />\r
+ <parameter name='label-start' value='`$label-restriction.label-start`' />\r
+ <parameter name='label-end' value='`$label-restriction.label-end`' />\r
+ <parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\r
+ <parameter name='label-step' value='`$label-restriction.label-step`' />\r
+ <parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\r
+ <outcome value='success'>\r
+ <block></block>\r
+ </outcome>\r
+ <outcome value='failure'>\r
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \r
+ key='logical-link.link-name = $alt-unique-linkId\r
+ AND label-restriction.id = $unique-lrId' >\r
+ <parameter name='id' value='`$unique-lrId`' />\r
+ <parameter name='label-start' value='`$label-restriction.label-start`' />\r
+ <parameter name='label-end' value='`$label-restriction.label-end`' />\r
+ <parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\r
+ <parameter name='label-step' value='`$label-restriction.label-step`' />\r
+ <parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\r
+ </update>\r
+ </outcome>\r
+ </save>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \r
+ key='logical-link.link-name = $alt-unique-linkId' force="true" pfx="tmp.AnAI-data">\r
+ <parameter name="relationship-list.relationship[$tidx].related-to" value="label-restriction" />\r
+ <parameter name="relationship-list.relationship[$tidx].related-link" value="`'/network/label-restrictions/label-restriction/' + $unique-lrId`" />\r
+ <parameter name="relationship-list.relationship[$tidx].relationship-data[0].relationship-key" value="label-restriction.id" />\r
+ <parameter name="relationship-list.relationship[$tidx].relationship-data[0].relationship-value" value="`$unique-lrId`" />\r
+ </save>\r
+ </for>\r
+ </outcome>\r
+ </switch>\r
+ </block>\r
+ </outcome>\r
+ </get-resource>\r
+ </outcome>\r
+ <outcome value='false'>\r
+ <block atomic='true'>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link' \r
+ key='logical-link.link-name = $unique-linkId' >\r
+ <parameter name='link-name' value='`$unique-linkId`' />\r
+ <parameter name='link-id' value='`$link.link-id`' />\r
+ <parameter name='link-type' value='`$link.te.te-link-attributes.access-type`' />\r
+ </save>\r
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+ <parameter name="file" value="/opt/onap/logTopologyDiscovery.txt" />\r
+ <parameter name="field1" value="__TIMESTAMP__" />\r
+ <parameter name="field2" value="uniqueLinkId" />\r
+ <parameter name="field3" value="`$unique-linkId`" />\r
+ <parameter name="field4" value="srcTpId" />\r
+ <parameter name="field5" value="`$src-tpId`" />\r
+ <parameter name="field6" value="dstTpId" />\r
+ <parameter name="field7" value="`$dst-tpId`" />\r
+ </record>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \r
+ key='logical-link.link-name = $unique-linkId' force="true" pfx="tmp.AnAI-data">\r
+ <parameter name="relationship-list.relationship[0].related-to" value="p-interface" />\r
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`" />\r
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="p-interface.interface-name" />\r
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$src-tpId`" />\r
+ <parameter name="relationship-list.relationship[1].related-to" value="p-interface" />\r
+ <parameter name="relationship-list.relationship[1].related-link" value="`'/network/pnfs/pnf/' + $unique-dst-node-Id + '/p-interfaces/p-interface/' + $dst-tpId`" />\r
+ <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-key" value="p-interface.interface-name" />\r
+ <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-value" value="`$dst-tpId`" />\r
+ </save>\r
+ <switch test='`$link.te.te-link-attributes.label-restriction`'>\r
+ <outcome value=''>\r
+ <block></block>\r
+ </outcome>\r
+ <outcome value='Other'>\r
+ <for index='tidx' start='0' end='`$link.te.te-link-attributes.label-restriction_length`' >\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \r
+ key='logical-link.link-name = $unique-linkId' force="true" pfx="tmp.AnAI-data">\r
+ <parameter name="relationship-list.relationship[$tidx].related-to" value="label-restriction" />\r
+ <parameter name="relationship-list.relationship[$tidx].related-link" value="`'/network/label-restrictions/label-restriction/' + $unique-lrId`" />\r
+ <parameter name="relationship-list.relationship[$tidx].relationship-data[0].relationship-key" value="label-restriction.id" />\r
+ <parameter name="relationship-list.relationship[$tidx].relationship-data[0].relationship-value" value="`$unique-lrId`" />\r
+ </save>\r
+ <set>\r
+ <parameter name='label-restriction.' value='`$link.te.te-link-attributes.label-restriction[$tidx].`' />\r
+ <parameter name='unique-lrId' value="`$unique-linkId + '-lrId-' + $label-restriction.index`" />\r
+ </set>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \r
+ key='logical-link.link-name = $unique-linkId\r
+ AND label-restriction.id = $unique-lrId' >\r
+ <parameter name='id' value='`$unique-lrId`' />\r
+ <parameter name='label-start' value='`$label-restriction.label-start`' />\r
+ <parameter name='label-end' value='`$label-restriction.label-end`' />\r
+ <parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\r
+ <parameter name='label-step' value='`$label-restriction.label-step`' />\r
+ <parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\r
+ <outcome value='success'>\r
+ <block></block>\r
+ </outcome>\r
+ <outcome value='failure'>\r
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \r
+ key='logical-link.link-name = $unique-linkId\r
+ AND label-restriction.id = $unique-lrId' >\r
+ <parameter name='id' value='`$unique-lrId`' />\r
+ <parameter name='label-start' value='`$label-restriction.label-start`' />\r
+ <parameter name='label-end' value='`$label-restriction.label-end`' />\r
+ <parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\r
+ <parameter name='label-step' value='`$label-restriction.label-step`' />\r
+ <parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\r
+ </update>\r
+ </outcome>\r
+ </save>\r
+ </for>\r
+ </outcome>\r
+ </switch>\r
+ </block>\r
+ </outcome>\r
+ </switch>\r
+ </outcome>\r
+ </switch>\r
+ </for>\r
+ </block>\r
+ </method>\r
</service-logic>
\ No newline at end of file
-<service-logic xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module="DataChange" version="${project.version}">\r
- <method rpc="update-network-to-aai" mode="sync">\r
+<service-logic\r
+ xmlns='http://www.onap.org/sdnc/svclogic'\r
+ 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
+ <method rpc='update-network-to-aai' mode='sync'>\r
<block atomic="true">\r
- <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="replace">\r
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\r
<parameter name="source" value="`$network.network-id`"/>\r
<parameter name="outputPath" value="tmp.network-id"/>\r
<parameter name="target" value="/"/>\r
<parameter name="replacement" value="-"/>\r
</execute>\r
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="network-resource" key="network-resource.network-id = $tmp.network-id">\r
- <parameter name="network-id" value="`$tmp.network-id`"/>\r
- <parameter name="client-id" value="`$network.client-id`"/>\r
- <parameter name="te-topo-id" value="`$network.te-topology-id`"/>\r
- <parameter name="provider-id" value="`$network.provider-id`"/>\r
- <parameter name="network-type" value="`$network.network-types`"/>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource' \r
+ key='network-resource.network-id = $tmp.network-id' >\r
+ <parameter name='network-id' value='`$tmp.network-id`' />\r
+ <parameter name='client-id' value='`$network.client-id`' />\r
+ <parameter name='te-topo-id' value='`$network.te-topology-id`' />\r
+ <parameter name='provider-id' value='`$network.provider-id`' />\r
+ <parameter name='network-type' value='`$network.network-types`' />\r
</save>\r
- <for index="pidx" start="0" end="`$network.node_length`">\r
+ <for index='pidx' start='0' end='`$network.node_length`' >\r
<set>\r
- <parameter name="node." value="`$network.node[$pidx].`"/>\r
- <parameter name="unique-networkId" value="`$tmp.network-id`"/>\r
+ <parameter name='node.' value='' />\r
</set>\r
<set>\r
- <parameter name="unique-nodeId" value="`'networkId-' + $unique-networkId + '-nodeId-' + $node.node-id`"/>\r
+ <parameter name='node.' value='`$network.node[$pidx].`' />\r
+ <parameter name='unique-networkId' value='`$tmp.network-id`' />\r
</set>\r
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="pnf" key="pnf.pnf-name = $unique-nodeId">\r
- <parameter name="pnf-name" value="`$unique-nodeId`"/>\r
- <parameter name="pnf-id" value="`$node.node-id`"/>\r
- <parameter name="operational-status" value="`$node.te.oper-status`"/>\r
- <parameter name="admin-status" value="`$node.te.te-node-attributes.admin-status`"/>\r
- <parameter name="in-maint" value="true"/>\r
+ <set>\r
+ <parameter name='unique-nodeId' value="`'networkId-' + $unique-networkId + '-nodeId-' + $node.node-id`" />\r
+ </set>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \r
+ key='pnf.pnf-name = $unique-nodeId' >\r
+ <parameter name='pnf-name' value='`$unique-nodeId`' />\r
+ <parameter name='pnf-id' value='`$node.node-id`' />\r
+ <parameter name='operational-status' value='`$node.te.oper-status`' />\r
+ <parameter name='admin-status' value='`$node.te.te-node-attributes.admin-status`' />\r
+ <parameter name='in-maint' value='true' />\r
</save>\r
- <switch test="`$node.te.tunnel-termination-point_length`">\r
- <outcome value="">\r
- <block/>\r
+ <switch test='`$node.te.tunnel-termination-point_length`'>\r
+ <outcome value=''>\r
+ <block></block>\r
</outcome>\r
- <outcome value="0">\r
- <block/>\r
+ <outcome value='0'>\r
+ <block></block>\r
</outcome>\r
- <outcome value="Other">\r
- <for index="ttidx" start="0" end="`$node.te.tunnel-termination-point_length`">\r
+ <outcome value='Other'>\r
+ <for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\r
+ <set>\r
+ <parameter name='ttp.' value='' />\r
+ </set>\r
<set>\r
- <parameter name="ttp." value="`$node.te.tunnel-termination-point[$ttidx].`"/>\r
+ <parameter name='ttp.' value='`$node.te.tunnel-termination-point[$ttidx].`' />\r
</set>\r
<set>\r
- <parameter name="unique-ttpId" value="`$unique-nodeId + '-ttpId-' + $ttp.tunnel-tp-id`"/>\r
+ <parameter name='unique-ttpId' value="`$unique-nodeId + '-ttpId-' + $ttp.tunnel-tp-id`" />\r
</set>\r
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="tunnel-termination-point" key="pnf.pnf-name = $unique-nodeId AND tunnel-termination-point.ttp-id = $unique-ttpId">\r
- <parameter name="ttp-id" value="`$unique-ttpId`"/>\r
- <parameter name="tunnel-tp-id" value="`$ttp.tunnel-tp-id`"/>\r
- <parameter name="name" value="`$ttp.name`"/>\r
- <parameter name="admin-status" value="`$ttp.admin-status`"/>\r
- <parameter name="oper-status" value="`$ttp.oper-status`"/>\r
- <parameter name="inter-layer-lock-id" value="`$ttp.inter-layer-lock-id`"/>\r
- <parameter name="switching-capability" value="`$ttp.switching-capability`"/>\r
- <parameter name="protection-type" value="`$ttp.protection-type`"/>\r
- <parameter name="encoding" value="`$ttp.encoding`"/>\r
- <outcome value="success">\r
- <block/>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \r
+ key='tunnel-termination-point.ttp-id = $unique-ttpId' >\r
+ <parameter name='ttp-id' value='`$unique-ttpId`' />\r
+ <parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\r
+ <parameter name='name' value='`$ttp.name`' />\r
+ <parameter name='admin-status' value='`$ttp.admin-status`' />\r
+ <parameter name='oper-status' value='`$ttp.oper-status`' />\r
+ <parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\r
+ <parameter name='switching-capability' value='`$ttp.switching-capability`' />\r
+ <parameter name='protection-type' value='`$ttp.protection-type`' />\r
+ <parameter name='encoding' value='`$ttp.encoding`' />\r
+ <outcome value='success'>\r
+ <block></block>\r
</outcome>\r
- <outcome value="failure">\r
- <update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="tunnel-termination-point" key="pnf.pnf-name = $unique-nodeId AND tunnel-termination-point.ttp-id = $unique-ttpId">\r
- <parameter name="ttp-id" value="`$unique-ttpId`"/>\r
- <parameter name="tunnel-tp-id" value="`$ttp.tunnel-tp-id`"/>\r
- <parameter name="name" value="`$ttp.name`"/>\r
- <parameter name="admin-status" value="`$ttp.admin-status`"/>\r
- <parameter name="oper-status" value="`$ttp.oper-status`"/>\r
- <parameter name="inter-layer-lock-id" value="`$ttp.inter-layer-lock-id`"/>\r
- <parameter name="switching-capability" value="`$ttp.switching-capability`"/>\r
- <parameter name="protection-type" value="`$ttp.protection-type`"/>\r
- <parameter name="encoding" value="`$ttp.encoding`"/>\r
+ <outcome value='failure'>\r
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \r
+ key='tunnel-termination-point.ttp-id = $unique-ttpId' >\r
+ <parameter name='ttp-id' value='`$unique-ttpId`' />\r
+ <parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\r
+ <parameter name='name' value='`$ttp.name`' />\r
+ <parameter name='admin-status' value='`$ttp.admin-status`' />\r
+ <parameter name='oper-status' value='`$ttp.oper-status`' />\r
+ <parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\r
+ <parameter name='switching-capability' value='`$ttp.switching-capability`' />\r
+ <parameter name='protection-type' value='`$ttp.protection-type`' />\r
+ <parameter name='encoding' value='`$ttp.encoding`' />\r
</update>\r
</outcome>\r
</save>\r
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="pnf:relationship-list" key="pnf.pnf-name = $unique-nodeId" force="true" pfx="tmp.AnAI-data">\r
- <parameter name="relationship-list.relationship[$ttidx].related-to" value="tunnel-termination-point"/>\r
- <parameter name="relationship-list.relationship[$ttidx].related-link" value="`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $node.node-id '/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`"/>\r
- <parameter name="relationship-list.relationship[$ttidx].relationship-data[0].relationship-key" value="tunnel-termination-point.ttp-id"/>\r
- <parameter name="relationship-list.relationship[$ttidx].relationship-data[0].relationship-value" value="`$unique-ttpId`"/>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \r
+ key='pnf.pnf-name = $unique-nodeId' force="true" pfx="tmp.AnAI-data">\r
+ <parameter name="`relationship-list.relationship[$ttidx].related-to`" value="tunnel-termination-point" />\r
+ <!--<parameter name="relationship-list.relationship[$ttidx].related-link" value="`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $node.node-id '/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`" />-->\r
+ <parameter name="`relationship-list.relationship[$ttidx].related-link`" value="`'/network/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`" />\r
+ <parameter name="`relationship-list.relationship[$ttidx].relationship-data[0].relationship-key`" value="tunnel-termination-point.ttp-id" />\r
+ <parameter name="`relationship-list.relationship[$ttidx].relationship-data[0].relationship-value`" value="`$unique-ttpId`" />\r
+ <outcome value='success'>\r
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+ <parameter name="file" value="/opt/onap/logTopologyDiscovery.txt" />\r
+ <parameter name="field1" value="__TIMESTAMP__" />\r
+ <parameter name="field2" value="sucess executing Hesam log file" />\r
+ <parameter name="field3" value="`$node.te.tunnel-termination-point_length`" />\r
+ <parameter name="field4" value="`$node.termination-point_length`" />\r
+ <parameter name="field5" value="sucessfully saved ttp" />\r
+ <parameter name="field6" value="`relationship-list.relationship[$ttidx].related-link`" />\r
+ </record>\r
+ </outcome>\r
+ <outcome value='failure'>\r
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+ <parameter name="file" value="/opt/onap/logTopologyDiscovery.txt" />\r
+ <parameter name="field1" value="__TIMESTAMP__" />\r
+ <parameter name="field2" value="sucess executing Hesam log file" />\r
+ <parameter name="field3" value="`$node.te.tunnel-termination-point_length`" />\r
+ <parameter name="field4" value="`$node.termination-point_length`" />\r
+ <parameter name="field5" value="failuire on saving ttp" />\r
+ <parameter name="field6" value="`relationship-list.relationship[$ttidx].related-link`" />\r
+ </record>\r
+ </outcome>\r
</save>\r
</for>\r
</outcome>\r
</switch>\r
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
- <parameter name="file" value="/opt/onap/hesamlogx.txt"/>\r
- <parameter name="field1" value="__TIMESTAMP__"/>\r
- <parameter name="field2" value="sucess executing Hesam hesam log file"/>\r
- <parameter name="field3" value="`$node.te.tunnel-termination-point_length`"/>\r
- <parameter name="field4" value="`$node.termination-point_length`"/>\r
+ <parameter name="file" value="/opt/onap/logTopologyDiscovery.txt" />\r
+ <parameter name="field1" value="__TIMESTAMP__" />\r
+ <parameter name="field2" value="sucess executing Hesam log file" />\r
+ <parameter name="field3" value="`$node.te.tunnel-termination-point_length`" />\r
+ <parameter name="field4" value="`$node.termination-point_length`" />\r
</record>\r
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="pnf:relationship-list" key="pnf.pnf-name = $unique-nodeId" force="true" pfx="tmp.AnAI-data">\r
- <parameter name="relationship-list.relationship[0].related-to" value="network-resource"/>\r
- <parameter name="relationship-list.relationship[0].related-link" value="`'/network/network-resources/network-resource/' + $tmp.network-id`"/>\r
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="network-resource.network-id"/>\r
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.network-id`"/>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \r
+ key='pnf.pnf-name = $unique-nodeId' force="true" pfx="tmp.AnAI-data">\r
+ <parameter name="relationship-list.relationship[0].related-to" value="network-resource" />\r
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/network-resources/network-resource/' + $tmp.network-id`" />\r
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="network-resource.network-id" />\r
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.network-id`" />\r
</save>\r
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="esr-thirdparty-sdnc:relationship-list" key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id" force="true" pfx="tmp.AnAI-data">\r
- <parameter name="relationship-list.relationship[0].related-to" value="pnf"/>\r
- <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $node.node-id`"/>\r
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="pnf.pnf-name"/>\r
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$node.node-id`"/>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='esr-thirdparty-sdnc:relationship-list' \r
+ key='esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id' \r
+ force="true" pfx="tmp.AnAI-data">\r
+ <parameter name="relationship-list.relationship[0].related-to" value="pnf" />\r
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $node.node-id`" />\r
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="pnf.pnf-name" />\r
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$node.node-id`" />\r
</save>\r
- <switch test="`$node.termination-point_length`">\r
- <outcome value="">\r
- <block/>\r
+ <switch test='`$node.termination-point_length`'>\r
+ <outcome value=''>\r
+ <block></block>\r
</outcome>\r
- <outcome value="0">\r
- <block/>\r
+ <outcome value='0'>\r
+ <block></block>\r
</outcome>\r
- <outcome value="Other">\r
- <for index="tidx" start="0" end="`$node.termination-point_length`">\r
+ <outcome value='Other'>\r
+ <for index='tidx' start='0' end='`$node.termination-point_length`' >\r
+ <set>\r
+ <parameter name='tp.' value='' />\r
+ </set>\r
<set>\r
- <parameter name="tp." value="`$node.termination-point[$tidx].`"/>\r
+ <parameter name='tp.' value='`$node.termination-point[$tidx].`' />\r
</set>\r
<set>\r
- <parameter name="unique-ltpId" value="`$unique-nodeId + '-ltpId-' + $tp.te-tp-id`"/>\r
+ <parameter name='unique-ltpId' value="`$unique-nodeId + '-ltpId-' + $tp.te-tp-id`" />\r
</set>\r
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="p-interface" key="pnf.pnf-name = $unique-nodeId AND p-interface.interface-name = $unique-ltpId">\r
- <parameter name="interface-name" value="`$unique-ltpId`"/>\r
- <parameter name="network-ref" value="`$tp.supporting-termination-point[0].network-ref`"/>\r
- <parameter name="transparent" value="`$tp.svc.supported-classification.transparent`"/>\r
- <parameter name="speed-value" value="`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`"/>\r
- <parameter name="operational-status" value="`$tp.te.oper-status`"/>\r
- <parameter name="in-maint" value="true"/>\r
- <parameter name="inter-layer-lock-id" value="`$tp.te.inter-layer-lock-id[0]`"/>\r
- <parameter name="inter-domain-plug-id" value="`$tp.te.inter-domain-plug-id`"/>\r
- <outcome value="success">\r
- <block/>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \r
+ key='pnf.pnf-name = $unique-nodeId\r
+ AND p-interface.interface-name = $unique-ltpId' >\r
+ <parameter name='interface-name' value='`$unique-ltpId`' />\r
+ <parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\r
+ <parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\r
+ <parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\r
+ <parameter name='operational-status' value='`$tp.te.oper-status`' />\r
+ <parameter name='in-maint' value="true" />\r
+ <parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\r
+ <parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />\r
+ <outcome value='success'>\r
+ <block></block>\r
</outcome>\r
- <outcome value="failure">\r
- <update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="p-interface" key="pnf.pnf-name = $unique-nodeId AND p-interface.interface-name = $unique-ltpId">\r
- <parameter name="interface-name" value="`$unique-ltpId`"/>\r
- <parameter name="network-ref" value="`$tp.supporting-termination-point[0].network-ref`"/>\r
- <parameter name="transparent" value="`$tp.svc.supported-classification.transparent`"/>\r
- <parameter name="speed-value" value="`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`"/>\r
- <parameter name="operational-status" value="`$tp.te.oper-status`"/>\r
- <parameter name="in-maint" value="true"/>\r
- <parameter name="inter-layer-lock-id" value="`$tp.te.inter-layer-lock-id[0]`"/>\r
- <parameter name="inter-domain-plug-id" value="`$tp.te.inter-domain-plug-id`"/>\r
+ <outcome value='failure'>\r
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \r
+ key='pnf.pnf-name = $unique-nodeId\r
+ AND p-interface.interface-name = $unique-ltpId' >\r
+ <parameter name='interface-name' value='`$unique-ltpId`' />\r
+ <parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\r
+ <parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\r
+ <parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\r
+ <parameter name='operational-status' value='`$tp.te.oper-status`' />\r
+ <parameter name='in-maint' value="true" />\r
+ <parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\r
+ <parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />\r
</update>\r
</outcome>\r
</save>\r
</outcome>\r
</switch>\r
</for>\r
- <call module="DataChange" rpc="update-network-links-to-aai" mode="sync"/>\r
+ <call module='DataChange' rpc='update-network-links-to-aai' mode='sync' ></call>\r
</block>\r
</method>\r
</service-logic>
\ No newline at end of file
-<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='update-tp-ttp-relationship' mode='sync'>
- <block atomic="true">
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$network-eth.network-id`"/>
- <parameter name="outputPath" value="tmp.network-eth.network-id"/>
- <parameter name="target" value="/"/>
- <parameter name="replacement" value="-"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$network-otn.network-id`"/>
- <parameter name="outputPath" value="tmp.network-otn.network-id"/>
- <parameter name="target" value="/"/>
- <parameter name="replacement" value="-"/>
- </execute>
- <for index='pethidx' start='0' end='`$network-eth.node_length`' >
- <set>
- <parameter name='node-eth.' value='`$network-eth.node[$pethidx].`' />
- </set>
- <set>
- <parameter name='unique-network-ethId' value='`$tmp.network-eth.network-id`' />
- <parameter name='unique-node-ethId' value="`'networkId-' + $unique-network-ethId + '-nodeId-' + $node-eth.node-id`" />
- </set>
- <for index='tidx' start='0' end='`$node-eth.termination-point_length`' >
- <set>
- <parameter name='tp-eth.' value='`$node-eth.termination-point[$tidx].`' />
- </set>
- <set>
- <parameter name='unique-ltpethId' value="`$unique-node-ethId + '-ltpId-' + $tp-eth.te-tp-id`" />
- </set>
- <set>
- <parameter name='tp-inter-layer-lock-id' value='`$node-eth.termination-point[$tidx].te.inter-layer-lock-id[0]`' />
- </set>
- <for index='potnidx' start='0' end='`$network-otn.node_length`' >
- <set>
- <parameter name='node-otn.' value='`$network-otn.node[$potnidx].`' />
- </set>
- <set>
- <parameter name='unique-network-otnId' value='`$tmp.network-otn.network-id`' />
- <parameter name='unique-node-otnId' value="`'networkId-' + $unique-network-otnId + '-nodeId-' + $node-otn.node-id`" />
- </set>
- <for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >
- <set>
- <parameter name='ttp.' value='`$node-otn.te.tunnel-termination-point[$ttidx].`' />
- </set>
- <set>
- <parameter name='unique-ttpId' value="`$unique-node-otnId + '-ttpId-' + $ttp.tunnel-tp-id`" />
- </set>
- <set>
- <parameter name='ttp-inter-layer-lock-id' value='`$node-otn.te.tunnel-termination-point[$ttidx].inter-layer-lock-id`' />
- </set>
- <switch test='tp-inter-layer-lock-id'>
- <outcome value='ttp-inter-layer-lock-id'>
- <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface:relationship-list'
- key='p-interface.interface-name = $unique-ltpethId' force="true" pfx="tmp.AnAI-data">
- <parameter name="relationship-list.relationship[1].related-to" value="tunnel-termination-point" />
- <parameter name="relationship-list.relationship[1].related-link" value="/network/tunnel-termination-points/tunnel-termination-point/ + `$unique-ttpId`" />
- <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-key" value="tunnel-termination-point.tunnel-tp-id" />
- <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-value" value="`$unique-ttpId`" />
- </save>
- </outcome>
- </switch>
- </for>
- </for>
- </for>
- </for>
- </block>
- </method>
+<service-logic\r
+ xmlns='http://www.onap.org/sdnc/svclogic'\r
+ 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
+ <method rpc='update-tp-ttp-relationship' mode='sync'>\r
+ <block atomic="true">\r
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\r
+ <parameter name="source" value="`$network-eth.network-id`"/>\r
+ <parameter name="outputPath" value="tmp.network-eth.network-id"/>\r
+ <parameter name="target" value="/"/>\r
+ <parameter name="replacement" value="-"/>\r
+ </execute>\r
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\r
+ <parameter name="source" value="`$network-otn.network-id`"/>\r
+ <parameter name="outputPath" value="tmp.network-otn.network-id"/>\r
+ <parameter name="target" value="/"/>\r
+ <parameter name="replacement" value="-"/>\r
+ </execute>\r
+ <for index='pethidx' start='0' end='`$network-eth.node_length`' >\r
+ <set>\r
+ <parameter name='node-eth.' value='`$network-eth.node[$pethidx].`' />\r
+ </set>\r
+ <set>\r
+ <parameter name='unique-network-ethId' value='`$tmp.network-eth.network-id`' />\r
+ <parameter name='unique-node-ethId' value="`'networkId-' + $unique-network-ethId + '-nodeId-' + $node-eth.node-id`" />\r
+ </set>\r
+ <for index='tidx' start='0' end='`$node-eth.termination-point_length`' >\r
+ <set>\r
+ <parameter name='tp-eth.' value='' />\r
+ </set>\r
+ <set>\r
+ <parameter name='tp-eth.' value='`$node-eth.termination-point[$tidx].`' />\r
+ </set>\r
+ <set>\r
+ <parameter name='unique-ltpethId' value="`$unique-node-ethId + '-ltpId-' + $tp-eth.te-tp-id`" />\r
+ </set>\r
+ <set>\r
+ <parameter name='tp-inter-layer-lock-id' value='`$node-eth.termination-point[$tidx].te.inter-layer-lock-id[0]`' />\r
+ </set>\r
+ <for index='potnidx' start='0' end='`$network-otn.node_length`' >\r
+ <set>\r
+ <parameter name='node-otn.' value='`$network-otn.node[$potnidx].`' />\r
+ </set>\r
+ <set>\r
+ <parameter name='unique-network-otnId' value='`$tmp.network-otn.network-id`' />\r
+ <parameter name='unique-node-otnId' value="`'networkId-' + $unique-network-otnId + '-nodeId-' + $node-otn.node-id`" />\r
+ </set>\r
+ <for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\r
+ <set>\r
+ <parameter name='ttp.' value='' />\r
+ </set>\r
+ <set>\r
+ <parameter name='ttp.' value='`$node-otn.te.tunnel-termination-point[$ttidx].`' />\r
+ </set>\r
+ <set>\r
+ <parameter name='unique-ttpId' value="`$unique-node-otnId + '-ttpId-' + $ttp.tunnel-tp-id`" />\r
+ </set>\r
+ <set>\r
+ <parameter name='ttp-inter-layer-lock-id' value='`$node-otn.te.tunnel-termination-point[$ttidx].inter-layer-lock-id`' />\r
+ </set>\r
+ <switch test='tp-inter-layer-lock-id'>\r
+ <outcome value='ttp-inter-layer-lock-id'>\r
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface:relationship-list' \r
+ key='p-interface.interface-name = $unique-ltpethId' force="true" pfx="tmp.AnAI-data">\r
+ <parameter name="relationship-list.relationship[1].related-to" value="tunnel-termination-point" />\r
+ <parameter name="relationship-list.relationship[1].related-link" value="/network/tunnel-termination-points/tunnel-termination-point/ + `$unique-ttpId`" />\r
+ <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-key" value="tunnel-termination-point.tunnel-tp-id" />\r
+ <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-value" value="`$unique-ttpId`" />\r
+ </save>\r
+ </outcome>\r
+ </switch>\r
+ </for>\r
+ </for>\r
+ </for>\r
+ </for>\r
+ </block>\r
+ </method>\r
</service-logic>
\ No newline at end of file