-[
- {
- "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": "eb6ce69b.3f957",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 248,\r
+ "y": 67,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "dc110d5e.a3e278"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "dc110d5e.a3e278",\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": 305,\r
+ "y": 146.888916015625,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "5f52c1a1.066a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5f52c1a1.066a8",\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": 319,\r
+ "y": 223.22222900390625,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "d4e648b5.a39fa8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d4e648b5.a39fa8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 330.33343505859375,\r
+ "y": 300.7779235839844,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "e5c5d545.9d86e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "367c2dd.186e752",\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": 1205.111083984375,\r
+ "y": 725.111083984375,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "e5c5d545.9d86e8",\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": 358.88885498046875,\r
+ "y": 394.33331298828125,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "c535a196.07d77",\r
+ "2b697423.656f74",\r
+ "23c74055.452fd8",\r
+ "357884ff.889364",\r
+ "5d91edd1.3c2f24"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c535a196.07d77",\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": 691.111083984375,\r
+ "y": 99.22221374511719,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "3a0f4814.b217",\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": 1731.4444580078125,\r
+ "y": 945.111083984375,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "2cea987d.04721",\r
+ "76b35791.18f63",\r
+ "2f963aac.304aa6",\r
+ "a173e4f5.f5a478",\r
+ "c921d18d.970b48",\r
+ "15c10484.c4629b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2cea987d.04721",\r
+ "type": "set",\r
+ "name": "set label-restriction's local variables",\r
+ "xml": "<set>\n<parameter name='unique-lrId' value=\"`$unique-linkId + '-lrId-' + $label-restriction.index`\" />\n",\r
+ "comments": "",\r
+ "x": 2036.111328125,\r
+ "y": 910.0000610351562,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "a53b765.67e4408",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2149.4998779296875,\r
+ "y": 952.74609375,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "bcb47eec.4c95d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "987d5f9c.60006",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2157.178466796875,\r
+ "y": 1011.9604187011719,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "e46f36b.2789648"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bcb47eec.4c95d8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2310,\r
+ "y": 952.0000305175781,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "df8ec894.2ce188",\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": 2718.5001220703125,\r
+ "y": 2414.545135498047,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ed966c58.9421a",\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": 2752.0001220703125,\r
+ "y": 2454.545135498047,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c79cef0b.98c06",\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": 2752.0001220703125,\r
+ "y": 2494.545135498047,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "e46f36b.2789648",\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": 2341,\r
+ "y": 1012.0000305175781,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "cce10880.3add5",\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[0].related-to\" value=\"label-restriction\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/label-restrictions/label-restriction/' + $unique-lrId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"label-restriction.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-lrId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2052,\r
+ "y": 1208,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "76b35791.18f63",\r
+ "type": "update",\r
+ "name": "save label-restriction",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n key='label-restriction.id = $unique-lrId' > \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start.te-label-tpn`' />\n<parameter name='label-end' value='`$label-restriction.label-end.te-label-tpn`' />\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": 1990.815185546875,\r
+ "y": 984.5556640625,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "a53b765.67e4408",\r
+ "987d5f9c.60006"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6bd86154.f4552",\r
+ "type": "switchNode",\r
+ "name": "switch te-link-attributes label-restriction_length",\r
+ "xml": "<switch test='`$link.te.te-link-attributes.label-restriction_length`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1250,\r
+ "y": 945,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "6ededdc5.cf6c8c",\r
+ "ecaf5041.3bee8",\r
+ "5dbfa8d0.65ebe"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2b697423.656f74",\r
+ "type": "switchNode",\r
+ "name": "switch link.destination",\r
+ "xml": "<switch test='`$link.destination.dest-node`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 667,\r
+ "y": 204,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "6a7d179d.85fe8",\r
+ "e3266b7a.5033d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6a7d179d.85fe8",\r
+ "type": "outcome",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 871,\r
+ "y": 165,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "ea7811a5.6557e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e3266b7a.5033d8",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 868,\r
+ "y": 227,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "68cf703d.fdacb8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "68cf703d.fdacb8",\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": 1097,\r
+ "y": 190,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "d8b9afa9.8c7938",\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": 1275,\r
+ "y": 65,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4445364b.3ff31",\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": 1278,\r
+ "y": 150,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "1fabb633.34a7e2",\r
+ "30ce6e4c.0b0d22",\r
+ "78ec6cbb.d8199c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1fabb633.34a7e2",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1521,\r
+ "y": 145,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "f6b85f73.a6bb"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "30ce6e4c.0b0d22",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1519,\r
+ "y": 234,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "112ae233.6a9666"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2d37b161.c87e5e",\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": 2194,\r
+ "y": 162,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "112ae233.6a9666",\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": 1688,\r
+ "y": 235,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b25a39cd.f52a6",\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": 986,\r
+ "y": 671,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "2eac00b.0ddcd8",\r
+ "cef26741.44e878"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "78ec6cbb.d8199c",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1530.490966796875,\r
+ "y": 187.57403564453125,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "cc3c7aa7.507dd8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cc3c7aa7.507dd8",\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": 1684.0623779296875,\r
+ "y": 190.85977172851562,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "339fe7b3.ae4e",\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": 565,\r
+ "y": 710,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "7bffce42.060d68",\r
+ "601fa3d8.aedcac"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7bffce42.060d68",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 782,\r
+ "y": 732,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "d9f05462.4a8968"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "601fa3d8.aedcac",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 785,\r
+ "y": 672,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "b25a39cd.f52a6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2eac00b.0ddcd8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1230,\r
+ "y": 341,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "d26336.070c9cc8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cef26741.44e878",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1255.490966796875,\r
+ "y": 536.5740356445312,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "1417b1e7.adccae"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c9f57eec.3fa43",\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": 1727,\r
+ "y": 558,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "d9f05462.4a8968",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 960,\r
+ "y": 740,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "367c2dd.186e752",\r
+ "6bd86154.f4552",\r
+ "8c3bc53e.020c3",\r
+ "3b98d33.38a2bac",\r
+ "9f4e28fe.9e925"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "882e1409.701ce8",\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": 2641,\r
+ "y": 387,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "a1bfa8c8.032428",\r
+ "4552885e.7227f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7c1006a1.c0bf28",\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": 1190,\r
+ "y": 1179,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ea7811a5.6557e",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1059,\r
+ "y": 126,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "d8b9afa9.8c7938",\r
+ "4445364b.3ff31",\r
+ "78b9c95f.ae17e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1417b1e7.adccae",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1444,\r
+ "y": 539,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "c9f57eec.3fa43",\r
+ "fe6e139a.88d838",\r
+ "1e861048.9f807",\r
+ "fc9bbbc9.76dd6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fe6e139a.88d838",\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": 1656,\r
+ "y": 619,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ed1851cd.c2d2d",\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": 2183,\r
+ "y": 745,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "bf2a36f0.0411c",\r
+ "1a178b14.9ad4dd",\r
+ "13838be4.d07ac4",\r
+ "ec158e78.eb2b58",\r
+ "a3570d8f.6b641",\r
+ "1375d0c1.e8bf07"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bf2a36f0.0411c",\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",\r
+ "comments": "",\r
+ "x": 2473.6669921875,\r
+ "y": 623.8889770507812,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "eb573572.449a5",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2615.0555419921875,\r
+ "y": 702.635009765625,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "80720656.40f1f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e5ad824b.fd1c3",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2622.734130859375,\r
+ "y": 761.8493347167969,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "75cc9002.94bbf8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "80720656.40f1f8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2775.5556640625,\r
+ "y": 701.8889465332031,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "75cc9002.94bbf8",\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": 2806.5556640625,\r
+ "y": 761.8889465332031,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "cb668db0.48c4b",\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[0].related-to\" value=\"label-restriction\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/label-restrictions/label-restriction/' + $unique-lrId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"label-restriction.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-lrId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2482.5556640625,\r
+ "y": 894.888916015625,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "1a178b14.9ad4dd",\r
+ "type": "update",\r
+ "name": "save label-restriction",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n key='label-restriction.id = $unique-lrId' > \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start.te-label-tpn`' />\n<parameter name='label-end' value='`$label-restriction.label-end.te-label-tpn`' />\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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2424.370849609375,\r
+ "y": 734.444580078125,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "eb573572.449a5",\r
+ "e5ad824b.fd1c3"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "23c74055.452fd8",\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": 668,\r
+ "y": 149,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "93546ba2.1bedb8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1610,\r
+ "y": 62,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "f6b85f73.a6bb",\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": 1760,\r
+ "y": 142,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "905e14d2.8e13d",\r
+ "56d86a80.47b554"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "905e14d2.8e13d",\r
+ "type": "outcome",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1990,\r
+ "y": 89,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "39191ee3.a2421a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "56d86a80.47b554",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1994,\r
+ "y": 162,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "2d37b161.c87e5e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "39191ee3.a2421a",\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": 2178,\r
+ "y": 85,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1ecef5c2.0f02ca",\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": 2159,\r
+ "y": 34,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "357884ff.889364",\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": 696,\r
+ "y": 41,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "37660aa6.c865c6",\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": 786,\r
+ "y": 1157,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "f54e3efd.634a38",\r
+ "8022555f.169df8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8022555f.169df8",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 993,\r
+ "y": 1125,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "e44bc7ce.ed35b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f54e3efd.634a38",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 990,\r
+ "y": 1185,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "7c1006a1.c0bf28"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e44bc7ce.ed35b8",\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": 1173,\r
+ "y": 1124,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "6e0155a0.4236dc",\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": 1502,\r
+ "y": 314,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "c6d7c8ac.8edfe",\r
+ "e1f14b0f.6d7378",\r
+ "863a7ad.fb20188"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "64886b03.3e43e4",\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": 1953,\r
+ "y": 328,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "b3998350.44919"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c6d7c8ac.8edfe",\r
+ "type": "outcome",\r
+ "name": "0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1720,\r
+ "y": 273,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "ae0ebd2c.ab0408"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e1f14b0f.6d7378",\r
+ "type": "outcome",\r
+ "name": "1",\r
+ "xml": "<outcome value='1'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1717,\r
+ "y": 310,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "64886b03.3e43e4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "863a7ad.fb20188",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1727,\r
+ "y": 384,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "8fdcd683.3660b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8fdcd683.3660b",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1864,\r
+ "y": 385,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "ec1a3a53.fa7ff8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ae0ebd2c.ab0408",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1862,\r
+ "y": 281,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "c29cb556.f4deb8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5d91edd1.3c2f24",\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": 563,\r
+ "y": 538,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "62e07412.96bbe4",\r
+ "db9d2b02.3f6e5"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "db9d2b02.3f6e5",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 770,\r
+ "y": 506,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "7150962.0cacbe8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "62e07412.96bbe4",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 767,\r
+ "y": 566,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "339fe7b3.ae4e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7150962.0cacbe8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 921,\r
+ "y": 506,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "8c3bc53e.020c3",\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": 1188,\r
+ "y": 828,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "b3998350.44919",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2200,\r
+ "y": 319,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "3b98d33.38a2bac",\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": 1133,\r
+ "y": 773,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "78b9c95f.ae17e8",\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": 1276,\r
+ "y": 103,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c7f9432f.fc4c28",\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": 2516,\r
+ "y": 291,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "d26336.070c9cc8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2192,\r
+ "y": 536,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "c7f9432f.fc4c28",\r
+ "882e1409.701ce8",\r
+ "6e4bc51.b0c9dbc",\r
+ "7a9fabbe.629c44"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a1bfa8c8.032428",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2930,\r
+ "y": 357,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "c9e17582.5ea8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4552885e.7227f8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2937.6785888671875,\r
+ "y": 416.2143249511719,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "de1c7c10.d4de68"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c9e17582.5ea8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3078,\r
+ "y": 352,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "747beccb.60a274"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "747beccb.60a274",\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": 3223,\r
+ "y": 352,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "de1c7c10.d4de68",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3085,\r
+ "y": 414,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "81d2a002.7c0388"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c29cb556.f4deb8",\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": 1998,\r
+ "y": 279,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ec1a3a53.fa7ff8",\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": 2009,\r
+ "y": 394,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "81d2a002.7c0388",\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": 3230,\r
+ "y": 414,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "6ededdc5.cf6c8c",\r
+ "type": "other",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1544,\r
+ "y": 843,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "13eb321c.419dee"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ecaf5041.3bee8",\r
+ "type": "outcome",\r
+ "name": "length 0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1546,\r
+ "y": 891,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "13eb321c.419dee"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5dbfa8d0.65ebe",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1543,\r
+ "y": 945,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "3a0f4814.b217"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "13eb321c.419dee",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1699,\r
+ "y": 843,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "1e861048.9f807",\r
+ "type": "switchNode",\r
+ "name": "switch te-link-attributes label-restriction_length",\r
+ "xml": "<switch test='`$link.te.te-link-attributes.label-restriction_length`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1725,\r
+ "y": 736,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "f4fbab89.9ba908",\r
+ "7dc7ac6a.dc9714",\r
+ "4d8c04cc.f4e3d4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f4fbab89.9ba908",\r
+ "type": "other",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1997,\r
+ "y": 646,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "bc7188dd.cc9d18"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bc7188dd.cc9d18",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2152,\r
+ "y": 646,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "7dc7ac6a.dc9714",\r
+ "type": "outcome",\r
+ "name": "length 0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1999,\r
+ "y": 694,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "bc7188dd.cc9d18"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4d8c04cc.f4e3d4",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1998,\r
+ "y": 745,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "ed1851cd.c2d2d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "13838be4.d07ac4",\r
+ "type": "set",\r
+ "name": "unset label-restriction's local variables",\r
+ "xml": "<set>\n<parameter name='label-restriction.' value='' />\n<parameter name='unique-lrId' value=\"\" />\n",\r
+ "comments": "",\r
+ "x": 2479,\r
+ "y": 572,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "2f963aac.304aa6",\r
+ "type": "set",\r
+ "name": "unset label-restriction's local variables",\r
+ "xml": "<set>\n<parameter name='label-restriction.' value='' />\n<parameter name='unique-lrId' value=\"\" />\n",\r
+ "comments": "",\r
+ "x": 2033,\r
+ "y": 799,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6e4bc51.b0c9dbc",\r
+ "type": "switchNode",\r
+ "name": "switch te-link-attributes label-restriction_length",\r
+ "xml": "<switch test='`$link.te.te-link-attributes.label-restriction_length`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2817,\r
+ "y": 523,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "30a1d0ca.e887a",\r
+ "92fd4ff1.3a409",\r
+ "389e55ce.061fe2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "30a1d0ca.e887a",\r
+ "type": "other",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3087,\r
+ "y": 485,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "5dda79fd.751e4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5dda79fd.751e4",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3242,\r
+ "y": 485,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "92fd4ff1.3a409",\r
+ "type": "outcome",\r
+ "name": "length 0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3089,\r
+ "y": 533,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "5dda79fd.751e4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "389e55ce.061fe2",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3088,\r
+ "y": 584,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "bc1a2664.a26998"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bc1a2664.a26998",\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": 3273,\r
+ "y": 584,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "bc3590a8.aace38",\r
+ "c370620b.230e48",\r
+ "a5a0665d.651de8",\r
+ "1ab3f9a3.2d2bce",\r
+ "fed3d208.8682f8",\r
+ "864febfd.65faf"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a5a0665d.651de8",\r
+ "type": "set",\r
+ "name": "unset label-restriction's local variables",\r
+ "xml": "<set>\n<parameter name='label-restriction.' value='' />\n<parameter name='unique-lrId' value=\"\" />\n",\r
+ "comments": "",\r
+ "x": 3571,\r
+ "y": 399,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "bc3590a8.aace38",\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",\r
+ "comments": "",\r
+ "x": 3560.6669921875,\r
+ "y": 445.88897705078125,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c370620b.230e48",\r
+ "type": "update",\r
+ "name": "save label-restriction",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n key='label-restriction.id = $unique-lrId' > \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start.te-label-tpn`' />\n<parameter name='label-end' value='`$label-restriction.label-end.te-label-tpn`' />\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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3514.370849609375,\r
+ "y": 573.444580078125,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "fa7d62b3.003ef",\r
+ "8c2cda96.78942"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bad7ff54.e113a8",\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[0].related-to\" value=\"label-restriction\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/label-restrictions/label-restriction/' + $unique-lrId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"label-restriction.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-lrId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3588.5556640625,\r
+ "y": 757.888916015625,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "fa7d62b3.003ef",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3705.0555419921875,\r
+ "y": 541.635009765625,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "ee15e7b0.52d0f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8c2cda96.78942",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3712.734130859375,\r
+ "y": 600.8493347167969,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ [\r
+ "ed52377e.4eb4a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ee15e7b0.52d0f8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3865.5556640625,\r
+ "y": 540.8889465332031,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ed52377e.4eb4a",\r
+ "type": "update",\r
+ "name": "save label-restriction",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n key='label-restriction.id = $unique-lrId' > \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start.te-label-tpn`' />\n<parameter name='label-end' value='`$label-restriction.label-end.te-label-tpn`' />\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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3896.5556640625,\r
+ "y": 600.8889465332031,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "1ab3f9a3.2d2bce",\r
+ "type": "set",\r
+ "name": "set label-restriction's local variables",\r
+ "xml": "<set>\n<parameter name='unique-lrId' value=\"`$alt-unique-linkId + '-lrId-' + $label-restriction.index`\" />\n",\r
+ "comments": "",\r
+ "x": 3561,\r
+ "y": 495,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ec158e78.eb2b58",\r
+ "type": "set",\r
+ "name": "set label-restriction's local variables",\r
+ "xml": "<set>\n<parameter name='unique-lrId' value=\"`$alt-unique-linkId + '-lrId-' + $label-restriction.index`\" />\n",\r
+ "comments": "",\r
+ "x": 2475,\r
+ "y": 664,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "a173e4f5.f5a478",\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",\r
+ "comments": "",\r
+ "x": 2030,\r
+ "y": 851,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9f4e28fe.9e925",\r
+ "type": "update",\r
+ "name": "save te-link-attribute",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='te-link-attribute' \n key='te-link-attribute.id = $link.te.te-link-attributes.name' > \n<parameter name='id' value='`$link.te.te-link-attributes.name`' />\n<parameter name='access-type' value='`$link.te.te-link-attributes.access-type`' />\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1171,\r
+ "y": 873,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "15c10484.c4629b",\r
+ "type": "save",\r
+ "name": "save te-link-attribute relationship to label-restriction",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='te-link-attribute:relationship-list' \n key='te-link-attribute.id = $link.te.te-link-attributes.name' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"label-restriction\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/label-restrictions/label-restriction/' + $unique-lrId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"label-restriction.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-lrId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2062,\r
+ "y": 1142,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c921d18d.970b48",\r
+ "type": "save",\r
+ "name": "save te-link-attribute relationship to logical-link in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='te-link-attribute:relationship-list' \n key='te-link-attribute.id = $link.te.te-link-attributes.name' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"logical-link\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/logical-links/logical-link/' + $unique-linkId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"logical-link.link-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-linkId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2071,\r
+ "y": 1082,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "fc9bbbc9.76dd6",\r
+ "type": "update",\r
+ "name": "save te-link-attribute",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='te-link-attribute' \n key='te-link-attribute.id = $link.te.te-link-attributes.name' > \n<parameter name='id' value='`$link.te.te-link-attributes.name`' />\n<parameter name='access-type' value='`$link.te.te-link-attributes.access-type`' />\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1662,\r
+ "y": 671,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "7a9fabbe.629c44",\r
+ "type": "update",\r
+ "name": "update te-link-attribute",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='te-link-attribute' \n key='te-link-attribute.id = $link.te.te-link-attributes.name' > \n<parameter name='id' value='`$link.te.te-link-attributes.name`' />\n<parameter name='access-type' value='`$link.te.te-link-attributes.access-type`' />\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2542,\r
+ "y": 456,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "a3570d8f.6b641",\r
+ "type": "save",\r
+ "name": "save te-link-attribute relationship to logical-link in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='te-link-attribute:relationship-list' \n key='te-link-attribute.id = $link.te.te-link-attributes.name' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"logical-link\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/logical-links/logical-link/' + $alt-unique-linkId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"logical-link.link-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$alt-unique-linkId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2507,\r
+ "y": 802,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "1375d0c1.e8bf07",\r
+ "type": "save",\r
+ "name": "save te-link-attribute relationship to label-restriction",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='te-link-attribute:relationship-list' \n key='te-link-attribute.id = $link.te.te-link-attributes.name' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"label-restriction\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/label-restrictions/label-restriction/' + $unique-lrId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"label-restriction.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-lrId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2500,\r
+ "y": 848,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "864febfd.65faf",\r
+ "type": "save",\r
+ "name": "save te-link-attribute relationship to label-restriction",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='te-link-attribute:relationship-list' \n key='te-link-attribute.id = $link.te.te-link-attributes.name' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"label-restriction\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/label-restrictions/label-restriction/' + $unique-lrId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"label-restriction.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-lrId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3597,\r
+ "y": 700,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "fed3d208.8682f8",\r
+ "type": "save",\r
+ "name": "save te-link-attribute relationship to logical-link in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='te-link-attribute:relationship-list' \n key='te-link-attribute.id = $link.te.te-link-attributes.name' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"logical-link\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/logical-links/logical-link/' + $alt-unique-linkId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"logical-link.link-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$alt-unique-linkId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3604,\r
+ "y": 654,\r
+ "z": "42ade40f.4fa29c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ }\r
]
\ No newline at end of file