-[
- {
- "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": "ebe56983.0d3a9",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 134,\r
+ "y": 65,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "13e5c84a.55bf3"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "13e5c84a.55bf3",\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": 191,\r
+ "y": 144.888916015625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "66a22ecb.fd2f58"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "66a22ecb.fd2f58",\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": 205,\r
+ "y": 221.22222900390625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "6e3553b1.ce5dcc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6e3553b1.ce5dcc",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 216.33343505859375,\r
+ "y": 298.7779235839844,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "ce48b85e.94f938"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a43a6e87.7bb85",\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": 1091.111083984375,\r
+ "y": 723.111083984375,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ce48b85e.94f938",\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": 244.88885498046875,\r
+ "y": 392.33331298828125,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "dec42fbf.1e3dc8",\r
+ "faf4c2c8.a313e8",\r
+ "6624aa74.606e14",\r
+ "dbc86076.1de4f",\r
+ "4c4fa03a.a50f2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "dec42fbf.1e3dc8",\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": 577.111083984375,\r
+ "y": 97.22221374511719,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9f28786b.9755c",\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": 1617.4444580078125,\r
+ "y": 943.111083984375,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "a10e9de3.90e708",\r
+ "9f6f811c.bccf8",\r
+ "7166bef0.82e4a",\r
+ "c6ea0cbf.fb7cd",\r
+ "441a859d.1c08ec",\r
+ "e1339bff.8f7f98"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a10e9de3.90e708",\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": 1922.111328125,\r
+ "y": 908.0000610351562,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "481ae7ff.84ac9",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2035.4998779296875,\r
+ "y": 950.74609375,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "4b5e8d4c.a2cfc4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "958898b9.8616a",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2043.178466796875,\r
+ "y": 1009.9604187011719,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "76714a99.5b6304"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4b5e8d4c.a2cfc4",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2196,\r
+ "y": 950.0000305175781,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "1494b149.c9a337",\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": 2604.5001220703125,\r
+ "y": 2412.545135498047,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ed0f5687.170a7",\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": 2638.0001220703125,\r
+ "y": 2452.545135498047,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c964af3.a8439d",\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": 2638.0001220703125,\r
+ "y": 2492.545135498047,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "76714a99.5b6304",\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": 2227,\r
+ "y": 1010.0000305175781,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "df8f6a30.0e19f",\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": 1938,\r
+ "y": 1206,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9f6f811c.bccf8",\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": 1876.815185546875,\r
+ "y": 982.5556640625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "481ae7ff.84ac9",\r
+ "958898b9.8616a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e7971b0b.c3d0c",\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": 1136,\r
+ "y": 943,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "d0a27e5d.161cf",\r
+ "c301ff98.2e6928",\r
+ "4d75dbb8.4d6b04"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "faf4c2c8.a313e8",\r
+ "type": "switchNode",\r
+ "name": "switch link.destination",\r
+ "xml": "<switch test='`$link.destination.dest-node`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 553,\r
+ "y": 202,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "998d07b5.34538",\r
+ "4877c101.9ce65"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "998d07b5.34538",\r
+ "type": "outcome",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 757,\r
+ "y": 163,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "c3ced1a5.7034b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4877c101.9ce65",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 754,\r
+ "y": 225,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "d4197495.299218"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d4197495.299218",\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": 983,\r
+ "y": 188,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c382f34.d97691",\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": 1161,\r
+ "y": 63,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ff450949.dbf658",\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": 1164,\r
+ "y": 148,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "5da3043a.2acbac",\r
+ "1bf53d3.d439ac3",\r
+ "8f4faa5b.7a92c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5da3043a.2acbac",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1407,\r
+ "y": 143,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "ce061615.442fb"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1bf53d3.d439ac3",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1405,\r
+ "y": 232,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "8dce7fe6.cbf1f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "863e663a.20d8f8",\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": 2080,\r
+ "y": 160,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8dce7fe6.cbf1f",\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": 1574,\r
+ "y": 233,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "2b1dcd15.312222",\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": 872,\r
+ "y": 669,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "ec693039.84dc28",\r
+ "3de532fd.f494f6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8f4faa5b.7a92c",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1416.490966796875,\r
+ "y": 185.57403564453125,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "788cf8a5.93c298"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "788cf8a5.93c298",\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": 1570.0623779296875,\r
+ "y": 188.85977172851562,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "98f67a1e.d79eb",\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": 451,\r
+ "y": 708,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "6cd18165.d49da8",\r
+ "a4b87205.849aa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6cd18165.d49da8",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 668,\r
+ "y": 730,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "6eb10efe.79be58"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a4b87205.849aa",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 671,\r
+ "y": 670,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "2b1dcd15.312222"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ec693039.84dc28",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1116,\r
+ "y": 339,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "7e014e1e.a8dd8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3de532fd.f494f6",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1141.490966796875,\r
+ "y": 534.5740356445312,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "308dc22b.73a67e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2e5d2820.63e8c",\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<parameter name='link-role' value='cross-domain' />\n\n\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1613,\r
+ "y": 556,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "6eb10efe.79be58",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 846,\r
+ "y": 738,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "a43a6e87.7bb85",\r
+ "e7971b0b.c3d0c",\r
+ "a6b6ae44.7eb2a8",\r
+ "370b414a.4eba76",\r
+ "4aadddbd.521a8c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "521f891d.91cfc8",\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": 2527,\r
+ "y": 385,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "27e614a8.33d2f4",\r
+ "5b692078.dcecc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6468635a.9e6d94",\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": 1076,\r
+ "y": 1177,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c3ced1a5.7034b",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 945,\r
+ "y": 124,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "c382f34.d97691",\r
+ "ff450949.dbf658",\r
+ "b85c23da.8517d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "308dc22b.73a67e",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1330,\r
+ "y": 537,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "2e5d2820.63e8c",\r
+ "3996c800.afa0a8",\r
+ "d3a8ab71.fccb7",\r
+ "6c137df8.722b8c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3996c800.afa0a8",\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": 1542,\r
+ "y": 617,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "51ef22a.000c3dc",\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": 2069,\r
+ "y": 743,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "cb31166c.2edd2",\r
+ "db1f7d98.2def68",\r
+ "c4dd69cd.d872b",\r
+ "f581a4e4.841408",\r
+ "f2fac409.beeaf8",\r
+ "ea1f1d76.87207"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cb31166c.2edd2",\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": 2359.6669921875,\r
+ "y": 621.8889770507812,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1dcb5e38.622da2",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2501.0555419921875,\r
+ "y": 700.635009765625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "2526017c.1c252e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "19906550.30ac83",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2508.734130859375,\r
+ "y": 759.8493347167969,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "52d0ed95.142f34"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2526017c.1c252e",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2661.5556640625,\r
+ "y": 699.8889465332031,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "52d0ed95.142f34",\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": 2692.5556640625,\r
+ "y": 759.8889465332031,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "e7979ea6.dbce4",\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": 2368.5556640625,\r
+ "y": 892.888916015625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "db1f7d98.2def68",\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": 2310.370849609375,\r
+ "y": 732.444580078125,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "1dcb5e38.622da2",\r
+ "19906550.30ac83"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6624aa74.606e14",\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": 554,\r
+ "y": 147,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6e337c6f.cd362c",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1496,\r
+ "y": 60,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ce061615.442fb",\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": 1646,\r
+ "y": 140,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "a445a8a1.87665",\r
+ "7abf5d27.d789e4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a445a8a1.87665",\r
+ "type": "outcome",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1876,\r
+ "y": 87,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "85dfc9e9.b205a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7abf5d27.d789e4",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1880,\r
+ "y": 160,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "863e663a.20d8f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "85dfc9e9.b205a8",\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": 2064,\r
+ "y": 83,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5df859b8.6bf788",\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": 2045,\r
+ "y": 32,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "dbc86076.1de4f",\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": 582,\r
+ "y": 39,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5be7d94e.325bd",\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": 672,\r
+ "y": 1155,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "3a021903.aa35de",\r
+ "bd6a87fb.60cad"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bd6a87fb.60cad",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 879,\r
+ "y": 1123,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "7d536275.1f7f6c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3a021903.aa35de",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 876,\r
+ "y": 1183,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "6468635a.9e6d94"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7d536275.1f7f6c",\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": 1059,\r
+ "y": 1122,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c290c25a.9cb058",\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": 1388,\r
+ "y": 312,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "8171cd76.e9b4d",\r
+ "9c1be6a.eb1c998",\r
+ "be2751bf.fc2318"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8ea0dfd0.e04d5",\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": 1839,\r
+ "y": 326,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "f6fe2af1.32bcd"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8171cd76.e9b4d",\r
+ "type": "outcome",\r
+ "name": "0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1606,\r
+ "y": 271,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "6d799180.26117"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9c1be6a.eb1c998",\r
+ "type": "outcome",\r
+ "name": "1",\r
+ "xml": "<outcome value='1'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1603,\r
+ "y": 308,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "8ea0dfd0.e04d5"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "be2751bf.fc2318",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1613,\r
+ "y": 382,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "a1d91cb.fcaede"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a1d91cb.fcaede",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1750,\r
+ "y": 383,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "9a538487.c08aa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6d799180.26117",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1748,\r
+ "y": 279,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "92abbd48.ac3ab"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4c4fa03a.a50f2",\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": 449,\r
+ "y": 536,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "7a803037.7fbd88",\r
+ "a043c19c.e11a18"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a043c19c.e11a18",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 656,\r
+ "y": 504,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "2aea0930.46cd5e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7a803037.7fbd88",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 653,\r
+ "y": 564,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "98f67a1e.d79eb"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2aea0930.46cd5e",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 807,\r
+ "y": 504,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "a6b6ae44.7eb2a8",\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": 1074,\r
+ "y": 826,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "f6fe2af1.32bcd",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2086,\r
+ "y": 317,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "370b414a.4eba76",\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": 1019,\r
+ "y": 771,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "b85c23da.8517d",\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": 1162,\r
+ "y": 101,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e0d728fb.03e448",\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": 2402,\r
+ "y": 289,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "7e014e1e.a8dd8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2078,\r
+ "y": 534,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "e0d728fb.03e448",\r
+ "521f891d.91cfc8",\r
+ "cedaeaf5.78fef8",\r
+ "740002f8.4aedac"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "27e614a8.33d2f4",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2816,\r
+ "y": 355,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "c5f6a36b.0845d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5b692078.dcecc",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2823.6785888671875,\r
+ "y": 414.2143249511719,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "b2044c9b.8096a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c5f6a36b.0845d8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2964,\r
+ "y": 350,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "ad2b40a6.ff37f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ad2b40a6.ff37f8",\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": 3109,\r
+ "y": 350,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "b2044c9b.8096a",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2971,\r
+ "y": 412,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "a8dbf2db.72f548"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "92abbd48.ac3ab",\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": 1884,\r
+ "y": 277,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9a538487.c08aa",\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": 1895,\r
+ "y": 392,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "a8dbf2db.72f548",\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": 3116,\r
+ "y": 412,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "d0a27e5d.161cf",\r
+ "type": "other",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1430,\r
+ "y": 841,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "53c3433b.ea3fa4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c301ff98.2e6928",\r
+ "type": "outcome",\r
+ "name": "length 0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1432,\r
+ "y": 889,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "53c3433b.ea3fa4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4d75dbb8.4d6b04",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1429,\r
+ "y": 943,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "9f28786b.9755c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "53c3433b.ea3fa4",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1585,\r
+ "y": 841,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "d3a8ab71.fccb7",\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": 1611,\r
+ "y": 734,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "d2a47af.0c53388",\r
+ "6ac8d49a.12d694",\r
+ "7da4e2ad.ccfb34"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d2a47af.0c53388",\r
+ "type": "other",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1883,\r
+ "y": 644,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "70211305.a9bd74"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "70211305.a9bd74",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2038,\r
+ "y": 644,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "6ac8d49a.12d694",\r
+ "type": "outcome",\r
+ "name": "length 0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1885,\r
+ "y": 692,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "70211305.a9bd74"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7da4e2ad.ccfb34",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1884,\r
+ "y": 743,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "51ef22a.000c3dc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c4dd69cd.d872b",\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": 2365,\r
+ "y": 570,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "7166bef0.82e4a",\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": 1919,\r
+ "y": 797,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "cedaeaf5.78fef8",\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": 2703,\r
+ "y": 521,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "e2267c99.350348",\r
+ "3e0a9900.cec47e",\r
+ "ab55b067.791f5"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e2267c99.350348",\r
+ "type": "other",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2973,\r
+ "y": 483,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "8e66b008.2f7c48"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8e66b008.2f7c48",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3128,\r
+ "y": 483,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "3e0a9900.cec47e",\r
+ "type": "outcome",\r
+ "name": "length 0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2975,\r
+ "y": 531,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "8e66b008.2f7c48"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ab55b067.791f5",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2974,\r
+ "y": 582,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "ef26b767.51cb"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ef26b767.51cb",\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": 3159,\r
+ "y": 582,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "1e98f683.1aa1c9",\r
+ "fb05e52d.520ed8",\r
+ "d6c4c7a0.0d9e8",\r
+ "c76088aa.f470c8",\r
+ "4bfdac8d.42ab7c",\r
+ "fab9bbde.d7c01"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d6c4c7a0.0d9e8",\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": 3457,\r
+ "y": 397,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1e98f683.1aa1c9",\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": 3446.6669921875,\r
+ "y": 443.88897705078125,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "fb05e52d.520ed8",\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": 3400.370849609375,\r
+ "y": 571.444580078125,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "d9005ccd.b320e8",\r
+ "c6b7c3e3.521e98"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9c6aaa8e.65077",\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": 3474.5556640625,\r
+ "y": 755.888916015625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "d9005ccd.b320e8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3591.0555419921875,\r
+ "y": 539.635009765625,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "85dd0f0d.ac434"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c6b7c3e3.521e98",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3598.734130859375,\r
+ "y": 598.8493347167969,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ [\r
+ "d138a600.db5b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "85dd0f0d.ac434",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3751.5556640625,\r
+ "y": 538.8889465332031,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "d138a600.db5b8",\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": 3782.5556640625,\r
+ "y": 598.8889465332031,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c76088aa.f470c8",\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": 3447,\r
+ "y": 493,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f581a4e4.841408",\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": 2361,\r
+ "y": 662,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c6ea0cbf.fb7cd",\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": 1916,\r
+ "y": 849,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4aadddbd.521a8c",\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": 1057,\r
+ "y": 871,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "e1339bff.8f7f98",\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": 1948,\r
+ "y": 1140,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "441a859d.1c08ec",\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": 1957,\r
+ "y": 1080,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "6c137df8.722b8c",\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": 1548,\r
+ "y": 669,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "740002f8.4aedac",\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": 2428,\r
+ "y": 454,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "f2fac409.beeaf8",\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": 2393,\r
+ "y": 800,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ea1f1d76.87207",\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": 2386,\r
+ "y": 846,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "fab9bbde.d7c01",\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": 3483,\r
+ "y": 698,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "4bfdac8d.42ab7c",\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": 3490,\r
+ "y": 652,\r
+ "z": "3cbec5d5.54ea02",\r
+ "wires": [\r
+ []\r
+ ]\r
+ }\r