+ "name": "update p-interface",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $node.node-id\n AND p-interface.interface-name = $unique-ltpId' > \n<parameter name='interface-name' value='`$unique-ltpId`' />\n<parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\n<parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='operational-status' value='`$tp.te.oper-status`' />\n<parameter name='in-maint' value=\"true\" />\n\n<parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\n<parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1556,
+ "y": 667,
+ "z": "a2160ede.50a7f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "aa9ed7c5.9f2be8",
+ "type": "update",
+ "name": "save tunnel-termination-point",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n key='pnf.pnf-name = $unique-nodeId\n AND tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='ttp-id' value='`$unique-ttpId`' />\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1423,
+ "y": 205,
+ "z": "a2160ede.50a7f8",
+ "wires": [
+ [
+ "54fe71d8.edb1c",
+ "6cd48f92.21a288"
+ ]
+ ]
+ },
+ {
+ "id": "7a876b8.f89b114",
+ "type": "for",
+ "name": "for each tunnel termination point",
+ "xml": "<for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1038,
+ "y": 281,
+ "z": "a2160ede.50a7f8",
+ "wires": [
+ [
+ "79913f13.5b1fa",
+ "4552b8b5.e9ba2",
+ "aa9ed7c5.9f2be8",
+ "e23bdb7f.fdc9c"
+ ]
+ ]
+ },
+ {
+ "id": "79913f13.5b1fa",
+ "type": "set",
+ "name": "set tunnel termination point",
+ "xml": "<set>\n<parameter name='ttp.' value='`$node.te.tunnel-termination-point[$ttidx].`' />\n",
+ "comments": "",
+ "x": 1393,
+ "y": 114,
+ "z": "a2160ede.50a7f8",
+ "wires": []
+ },
+ {
+ "id": "4552b8b5.e9ba2",
+ "type": "set",
+ "name": "set unique-ttpId",
+ "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-nodeId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",
+ "comments": "",
+ "x": 1370.888916015625,
+ "y": 151.111083984375,
+ "z": "a2160ede.50a7f8",
+ "wires": []
+ },
+ {
+ "id": "54fe71d8.edb1c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1680,
+ "y": 191,
+ "z": "a2160ede.50a7f8",
+ "wires": [
+ [
+ "42f8b4e.c7b524c"
+ ]
+ ]
+ },
+ {
+ "id": "6cd48f92.21a288",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1673.6785888671875,
+ "y": 243.21431159973145,
+ "z": "a2160ede.50a7f8",
+ "wires": [
+ [
+ "5f719388.c96efc"
+ ]
+ ]
+ },
+ {
+ "id": "42f8b4e.c7b524c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1830.5001602172852,
+ "y": 190.25393104553223,
+ "z": "a2160ede.50a7f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5f719388.c96efc",
+ "type": "update",
+ "name": "update tunnel-termination-point",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n key='pnf.pnf-name = $node.node-id\n AND tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1911,
+ "y": 245,
+ "z": "a2160ede.50a7f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "46013f8c.54849",
+ "type": "set",
+ "name": "set local variables",
+ "xml": "<set>\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n<parameter name='unique-nodeId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $node.node-id`\" />\n",
+ "comments": "",
+ "x": 969,
+ "y": 167,
+ "z": "a2160ede.50a7f8",
+ "wires": []
+ },
+ {
+ "id": "ffd24e55.e4afa",
+ "type": "call",
+ "name": "call update-network-links-to-aai",
+ "xml": "<call module='DataChange' rpc='update-network-links-to-aai' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 648,
+ "y": 311,
+ "z": "a2160ede.50a7f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f6959b19.b0bc18",
+ "type": "save",
+ "name": "save pnf-interface relationship to pnf in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface:relationship-list' \n key='pnf.pnf-name = $unique-nodeId\n AND p-interface.interface-name = $unique-ltpId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"pnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-nodeId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-nodeId`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1300,
+ "y": 724,
+ "z": "a2160ede.50a7f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e23bdb7f.fdc9c",
+ "type": "save",
+ "name": "save pnf relationship to tunnel termination point in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[$ttidx].related-to\" value=\"tunnel-termination-point\" />\n<parameter name=\"relationship-list.relationship[$ttidx].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $node.node-id '/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`\" />\n<parameter name=\"relationship-list.relationship[$ttidx].relationship-data[0].relationship-key\" value=\"tunnel-termination-point.ttp-id\" />\n<parameter name=\"relationship-list.relationship[$ttidx].relationship-data[0].relationship-value\" value=\"`$unique-ttpId`\" />",