diff options
author | Hesam Rahimi <hesam.rahimi@huawei.com> | 2020-04-08 22:53:30 +0000 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2020-04-09 13:41:33 +0000 |
commit | 3e46010ac38c6b738439e718e8b771371317f932 (patch) | |
tree | 18682e7ce439bba869d037506258cc84d10c6aca /platform-logic/datachange/src/main/json/DataChange_update-network-links-to-aai.json | |
parent | 0878c7ee9fe947a1c748e663c1db6ebd2a0cda96 (diff) |
Cross-domain topology discovery for ACTN, bug fixing.
Issue-ID: SDNC-899
Signed-off-by: Hesam Rahimi <hesam.rahimi@huawei.com>
Change-Id: I3b399f1c8f4ded5ea7fea5dd3fbdec71b11a7601
(cherry picked from commit 7dc3fff566f520cd9adc5bcbd373a2a76f6910a9 [formerly 6f6176c4f74c5cf128077a14b9dd085ec0f346e9])
Former-commit-id: 6d3a724e8f0d060441aef42692f0af054a96a250
Diffstat (limited to 'platform-logic/datachange/src/main/json/DataChange_update-network-links-to-aai.json')
-rw-r--r-- | platform-logic/datachange/src/main/json/DataChange_update-network-links-to-aai.json | 2376 |
1 files changed, 1466 insertions, 910 deletions
diff --git a/platform-logic/datachange/src/main/json/DataChange_update-network-links-to-aai.json b/platform-logic/datachange/src/main/json/DataChange_update-network-links-to-aai.json index 9c07e5fb..fb4f302f 100644 --- a/platform-logic/datachange/src/main/json/DataChange_update-network-links-to-aai.json +++ b/platform-logic/datachange/src/main/json/DataChange_update-network-links-to-aai.json @@ -1,911 +1,1467 @@ -[ - { - "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": [] - } +[
+ {
+ "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": 1159.111083984375,
+ "y": 694.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",
+ "915555f.abb44a8",
+ "b5320c88.aa407",
+ "589a9016.f198c"
+ ]
+ ]
+ },
+ {
+ "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": 559.111083984375,
+ "y": 99.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": 1532.4444580078125,
+ "y": 915.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": 1867.111328125,
+ "y": 838.0000610351562,
+ "z": "3cbec5d5.54ea02",
+ "wires": []
+ },
+ {
+ "id": "3398d2c0.69ae06",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2002.4998779296875,
+ "y": 882.74609375,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "abb716be.3fb59"
+ ]
+ ]
+ },
+ {
+ "id": "3d46f558.3e53f2",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2010.178466796875,
+ "y": 941.9604187011719,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "f0df0cf2.e46b6"
+ ]
+ ]
+ },
+ {
+ "id": "abb716be.3fb59",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2163,
+ "y": 882.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": 2194,
+ "y": 942.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": 1914,
+ "y": 792,
+ "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": 1811.815185546875,
+ "y": 914.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": 1136,
+ "y": 870,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "acb46a14.faf1b8",
+ "fad2e2be.055cd8"
+ ]
+ ]
+ },
+ {
+ "id": "acb46a14.faf1b8",
+ "type": "outcome",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1321,
+ "y": 868,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "b663d811.06fad8"
+ ]
+ ]
+ },
+ {
+ "id": "b663d811.06fad8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1476,
+ "y": 868,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fad2e2be.055cd8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1325,
+ "y": 915,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "7a38f4d0.9f3e6c"
+ ]
+ ]
+ },
+ {
+ "id": "8fbc8f1e.fe24c8",
+ "type": "switchNode",
+ "name": "switch link.destination",
+ "xml": "<switch test='`$link.destination.dest-node`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535,
+ "y": 204,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "44b39c00.9558ec",
+ "d8a931d0.793fd"
+ ]
+ ]
+ },
+ {
+ "id": "44b39c00.9558ec",
+ "type": "outcome",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 739,
+ "y": 165,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "dd848e51.9b8178"
+ ]
+ ]
+ },
+ {
+ "id": "d8a931d0.793fd",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 736,
+ "y": 227,
+ "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": 1143,
+ "y": 65,
+ "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": [
+ [
+ "944bf6fb.a03838"
+ ]
+ ]
+ },
+ {
+ "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<!--<parameter name='alt-unique-linkId' value=\"`'networkId-' + $unique-networkId + '-linkId-' + $tmp.aai.p-interface.inter-domain-plug-id`\" />-->\n\n",
+ "comments": "",
+ "x": 2062,
+ "y": 162,
+ "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": 854,
+ "y": 671,
+ "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": 433,
+ "y": 710,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "4e6e74a5.e8af4c",
+ "53a87226.590744"
+ ]
+ ]
+ },
+ {
+ "id": "4e6e74a5.e8af4c",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 650,
+ "y": 732,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "2e08f3a1.53987c"
+ ]
+ ]
+ },
+ {
+ "id": "53a87226.590744",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 653,
+ "y": 672,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "f65cb67d.b3d368"
+ ]
+ ]
+ },
+ {
+ "id": "48397109.a69d68",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1098,
+ "y": 341,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "b240875.e435ff8"
+ ]
+ ]
+ },
+ {
+ "id": "efa56bf.4c6db98",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1123.490966796875,
+ "y": 536.5740356445312,
+ "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": 1595,
+ "y": 558,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2e08f3a1.53987c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 828,
+ "y": 740,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "f41ff5d9.72c91",
+ "9c77d572.aa0dd",
+ "dc4f90cd.605cd",
+ "a0d07820.dfe9c"
+ ]
+ ]
+ },
+ {
+ "id": "6b973.4170168dc",
+ "type": "save",
+ "name": "update dest TP by putting src TP of the current link",
+ "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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2509,
+ "y": 387,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "46117ab.f8f0504",
+ "46594b42.a6ff04"
+ ]
+ ]
+ },
+ {
+ "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": 1119,
+ "y": 1068,
+ "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",
+ "9d4a7a95.ca2e88"
+ ]
+ ]
+ },
+ {
+ "id": "ef51ee2a.cafb5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1312,
+ "y": 539,
+ "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 = $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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1524,
+ "y": 619,
+ "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": 1930,
+ "y": 702,
+ "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": 2347.6669921875,
+ "y": 657.8889770507812,
+ "z": "3cbec5d5.54ea02",
+ "wires": []
+ },
+ {
+ "id": "7135b68.c08c3c8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2483.0555419921875,
+ "y": 702.635009765625,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "2043dae3.034356"
+ ]
+ ]
+ },
+ {
+ "id": "69007117.c84f9",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2490.734130859375,
+ "y": 761.8493347167969,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "30f94010.a2f0b"
+ ]
+ ]
+ },
+ {
+ "id": "2043dae3.034356",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2643.5556640625,
+ "y": 701.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": 2674.5556640625,
+ "y": 761.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": 2369.5556640625,
+ "y": 815.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": 2292.370849609375,
+ "y": 734.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": 1529.5555419921875,
+ "y": 657.888916015625,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "2ac06a2f.120e4e",
+ "45e6587f.a583a"
+ ]
+ ]
+ },
+ {
+ "id": "2ac06a2f.120e4e",
+ "type": "outcome",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1718.5555419921875,
+ "y": 628.888916015625,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "5884f4a0.224604"
+ ]
+ ]
+ },
+ {
+ "id": "5884f4a0.224604",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1878.5555419921875,
+ "y": 627.888916015625,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "45e6587f.a583a",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1722.5555419921875,
+ "y": 701.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": 536,
+ "y": 149,
+ "z": "3cbec5d5.54ea02",
+ "wires": []
+ },
+ {
+ "id": "e4a47b8d.470f98",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1478,
+ "y": 62,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "944bf6fb.a03838",
+ "type": "switchNode",
+ "name": "switch inter-domain-plug-id of the src tp",
+ "xml": "<switch test='`$tmp.aai.p-interface.inter-domain-plug-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1628,
+ "y": 142,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "757c7b80.d77ff4",
+ "a7e52125.cd95a"
+ ]
+ ]
+ },
+ {
+ "id": "757c7b80.d77ff4",
+ "type": "outcome",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1858,
+ "y": 89,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "ed9b2776.e3f"
+ ]
+ ]
+ },
+ {
+ "id": "a7e52125.cd95a",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1862,
+ "y": 162,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "d4d599ee.a3913"
+ ]
+ ]
+ },
+ {
+ "id": "ed9b2776.e3f",
+ "type": "set",
+ "name": "unset is-open-ended-link",
+ "xml": "<set>\n<parameter name='is-open-ended-link' value='false' />\n<parameter name='is-invalid-open-ended-link' value='true' />\n\n",
+ "comments": "",
+ "x": 2046,
+ "y": 85,
+ "z": "3cbec5d5.54ea02",
+ "wires": []
+ },
+ {
+ "id": "952d829a.9e04c8",
+ "type": "save",
+ "name": "delete logical-link",
+ "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\" \n\tkey=\"logical-link.link-name = $tmp.link-name\" >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2027,
+ "y": 34,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b5320c88.aa407",
+ "type": "set",
+ "name": "unset network link's local variables",
+ "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",
+ "comments": "",
+ "x": 564,
+ "y": 41,
+ "z": "3cbec5d5.54ea02",
+ "wires": []
+ },
+ {
+ "id": "1c31f66.0ec5b8a",
+ "type": "switchNode",
+ "name": "switch is-invalid-open-ended-link",
+ "xml": "<switch test='`$is-invalid-open-ended-link`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 715,
+ "y": 1046,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "59b5f613.5fe9d8",
+ "a603a990.7bb358"
+ ]
+ ]
+ },
+ {
+ "id": "a603a990.7bb358",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 922,
+ "y": 1014,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "9ab8714a.2092f"
+ ]
+ ]
+ },
+ {
+ "id": "59b5f613.5fe9d8",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 919,
+ "y": 1074,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "34901df.74cf7e2"
+ ]
+ ]
+ },
+ {
+ "id": "9ab8714a.2092f",
+ "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": 1102,
+ "y": 1013,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5352bd62.ccf79c",
+ "type": "switchNode",
+ "name": "switch relationship-list_length",
+ "xml": "<switch test='`$tmp.aai.logical-link.relationship-list_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1370,
+ "y": 314,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "eff4d21d.288088",
+ "37404956.35d1ce",
+ "8c968f09.e16c4"
+ ]
+ ]
+ },
+ {
+ "id": "2c9276d9.9299c2",
+ "type": "switchNode",
+ "name": "switch relationship-list_length != $src-tpId",
+ "xml": "<switch test='`$tmp.aai.logical-link.relationship-list.relationship[0].relationship-data[1].relationship-value != $src-tpId`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1821,
+ "y": 328,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "267a2f8f.07cbd"
+ ]
+ ]
+ },
+ {
+ "id": "eff4d21d.288088",
+ "type": "outcome",
+ "name": "0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1588,
+ "y": 273,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "984dee72.e9354"
+ ]
+ ]
+ },
+ {
+ "id": "37404956.35d1ce",
+ "type": "outcome",
+ "name": "1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1585,
+ "y": 310,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "2c9276d9.9299c2"
+ ]
+ ]
+ },
+ {
+ "id": "8c968f09.e16c4",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1595,
+ "y": 384,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "978f2fad.844c4"
+ ]
+ ]
+ },
+ {
+ "id": "978f2fad.844c4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1732,
+ "y": 385,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "a65b0566.f99d28"
+ ]
+ ]
+ },
+ {
+ "id": "984dee72.e9354",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1730,
+ "y": 281,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "3177c841.0c8"
+ ]
+ ]
+ },
+ {
+ "id": "589a9016.f198c",
+ "type": "switchNode",
+ "name": "switch is-invalid-open-ended-link",
+ "xml": "<switch test='`$is-invalid-open-ended-link`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 431,
+ "y": 538,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "68d44b36.10ebc4",
+ "b635b7a2.550c68"
+ ]
+ ]
+ },
+ {
+ "id": "b635b7a2.550c68",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 638,
+ "y": 506,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "a2f767e6.1afe7"
+ ]
+ ]
+ },
+ {
+ "id": "68d44b36.10ebc4",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 635,
+ "y": 566,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "954c1d48.971018"
+ ]
+ ]
+ },
+ {
+ "id": "a2f767e6.1afe7",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 789,
+ "y": 506,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dc4f90cd.605cd",
+ "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": 1129,
+ "y": 791,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "267a2f8f.07cbd",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2068,
+ "y": 319,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a0d07820.dfe9c",
+ "type": "record",
+ "name": "log file",
+ "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 ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1074,
+ "y": 739,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9d4a7a95.ca2e88",
+ "type": "set",
+ "name": "unset tmp.aai.p-interface",
+ "xml": "<set>\n<parameter name='tmp.aai.p-interface' value='' />\n<parameter name='tmp.aai.p-interface.inter-domain-plug-id' value='' />\n\n",
+ "comments": "",
+ "x": 1144,
+ "y": 103,
+ "z": "3cbec5d5.54ea02",
+ "wires": []
+ },
+ {
+ "id": "6cbb9c56.a1a2b4",
+ "type": "record",
+ "name": "log file",
+ "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 ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2384,
+ "y": 291,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b240875.e435ff8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2060,
+ "y": 536,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "6cbb9c56.a1a2b4",
+ "6b973.4170168dc"
+ ]
+ ]
+ },
+ {
+ "id": "46117ab.f8f0504",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2798,
+ "y": 357,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "f6743dce.4b9b98"
+ ]
+ ]
+ },
+ {
+ "id": "46594b42.a6ff04",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2805.6785888671875,
+ "y": 416.2143249511719,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "fa1c4b7d.8445b"
+ ]
+ ]
+ },
+ {
+ "id": "f6743dce.4b9b98",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2946,
+ "y": 352,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "1261d503.e1a3cb"
+ ]
+ ]
+ },
+ {
+ "id": "1261d503.e1a3cb",
+ "type": "record",
+ "name": "log file",
+ "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 ",
+ "comments": "",
+ "outputs": 1,
+ "x": 3091,
+ "y": 352,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fa1c4b7d.8445b",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2953,
+ "y": 414,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ [
+ "8f51aa8d.73ba38"
+ ]
+ ]
+ },
+ {
+ "id": "3177c841.0c8",
+ "type": "record",
+ "name": "log file",
+ "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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1866,
+ "y": 279,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a65b0566.f99d28",
+ "type": "record",
+ "name": "log file",
+ "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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1877,
+ "y": 394,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8f51aa8d.73ba38",
+ "type": "record",
+ "name": "log file",
+ "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 ",
+ "comments": "",
+ "outputs": 1,
+ "x": 3098,
+ "y": 414,
+ "z": "3cbec5d5.54ea02",
+ "wires": [
+ []
+ ]
+ }
]
\ No newline at end of file |