+ "x": 2688.03125,
+ "y": 1250.9999694824219,
+ "z": "e07ef8ab.015e18",
+ "wires": []
+ },
+ {
+ "id": "cbfd620a.85d71",
+ "type": "execute",
+ "name": "execute generate-underlay-network-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.l3vpn.network-id\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 915.03125,
+ "y": 766,
+ "z": "e07ef8ab.015e18",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "37c9fe5c.d39282",
+ "type": "switchNode",
+ "name": "switch service-data.networks_length",
+ "xml": "<switch test='`$service-data.networks.network_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 873.03125,
+ "y": 847,
+ "z": "e07ef8ab.015e18",
+ "wires": [
+ [
+ "e9c16900.4e5438",
+ "e8407f7c.3cfd8"
+ ]
+ ]
+ },
+ {
+ "id": "e9c16900.4e5438",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1146.8408203125,
+ "y": 815.952392578125,
+ "z": "e07ef8ab.015e18",
+ "wires": [
+ [
+ "8caf1520.ea5d28"
+ ]
+ ]
+ },
+ {
+ "id": "e8407f7c.3cfd8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1141.697998046875,
+ "y": 861.6666870117188,
+ "z": "e07ef8ab.015e18",
+ "wires": [
+ [
+ "3d0ae0cb.0b75"
+ ]
+ ]
+ },
+ {
+ "id": "8caf1520.ea5d28",
+ "type": "set",
+ "name": "set nidx",
+ "xml": "<set>\n<parameter name='nidx' value='0' />\n",
+ "comments": "",
+ "x": 1299.8408203125,
+ "y": 815.5238037109375,
+ "z": "e07ef8ab.015e18",
+ "wires": []
+ },
+ {
+ "id": "3d0ae0cb.0b75",
+ "type": "set",
+ "name": "set nidx",
+ "xml": "<set>\n<parameter name='nidx' value='`$service-data.networks.network_length`' />\n",
+ "comments": "",
+ "x": 1301.2694091796875,
+ "y": 860.5238647460938,
+ "z": "e07ef8ab.015e18",
+ "wires": []
+ },
+ {
+ "id": "bb4e39dc.aefd28",
+ "type": "set",
+ "name": "set network in service-data",
+ "xml": "<set>\n<parameter name=\"service-data.networks.network[$nidx].network-id\" value='`$prop.l3vpn.network-id`' />\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-request-input.' value='`$network-topology-operation-input.network-request-input.`' />\n<parameter name=\"service-data.networks.network_length\" value='`$nidx+1`' />\n\n",
+ "comments": "",
+ "x": 787.03125,
+ "y": 1335,
+ "z": "e07ef8ab.015e18",
+ "wires": []
+ },
+ {
+ "id": "90e757cc.0959f8",
+ "type": "set",
+ "name": "set networkId and network-object-path",
+ "xml": "<set>\n<parameter name='networkId' value='`$prop.l3vpn.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.l3vpn.network-id + '/network-data/'` \" />",
+ "comments": "",
+ "x": 816.03125,
+ "y": 1380,
+ "z": "e07ef8ab.015e18",
+ "wires": []
+ },
+ {
+ "id": "8c153068.d865f",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+ "comments": "",
+ "x": 763.03125,
+ "y": 1569,
+ "z": "e07ef8ab.015e18",
+ "wires": []
+ },
+ {
+ "id": "b9935276.cc7ee",
+ "type": "set",
+ "name": "set network-level-oper-status",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
+ "comments": "",
+ "x": 789.03125,
+ "y": 1427,
+ "z": "e07ef8ab.015e18",
+ "wires": []
+ },
+ {
+ "id": "e891bd7f.8fb2d",
+ "type": "get-resource",
+ "name": "get-resource pnf",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $prop.l3vpn.pe1_id AND \n\t\t depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 864.03125,
+ "y": 253,
+ "z": "e07ef8ab.015e18",
+ "wires": [
+ [
+ "65bf056c.a7d85c",
+ "fae17ce6.d5a8d",
+ "fdfd8ef.d5d287"
+ ]
+ ]
+ },
+ {
+ "id": "65bf056c.a7d85c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1186.03125,
+ "y": 143,
+ "z": "e07ef8ab.015e18",
+ "wires": [
+ [
+ "f138cb6b.a435c8"
+ ]
+ ]
+ },
+ {
+ "id": "fae17ce6.d5a8d",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1189.522216796875,
+ "y": 190.57403564453125,
+ "z": "e07ef8ab.015e18",
+ "wires": [
+ [
+ "922f5f08.50eaa"
+ ]
+ ]
+ },
+ {
+ "id": "fdfd8ef.d5d287",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1184.855224609375,
+ "y": 231.9073486328125,
+ "z": "e07ef8ab.015e18",
+ "wires": [
+ [
+ "c6cd8782.fae7f8"
+ ]
+ ]
+ },
+ {
+ "id": "922f5f08.50eaa",
+ "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": 1366.0936279296875,
+ "y": 178.85977172851562,
+ "z": "e07ef8ab.015e18",
+ "wires": []
+ },
+ {
+ "id": "c6cd8782.fae7f8",
+ "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=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",
+ "comments": "",
+ "x": 1372.6277809143066,
+ "y": 227.34654140472412,
+ "z": "e07ef8ab.015e18",
+ "wires": []
+ },
+ {
+ "id": "f138cb6b.a435c8",
+ "type": "set",
+ "name": "set tmp.thirdparty-sdnc-id",
+ "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 1390.03125,
+ "y": 130,
+ "z": "e07ef8ab.015e18",
+ "wires": []
+ },
+ {
+ "id": "56419be7.895d24",
+ "type": "save",
+ "name": "save underlay configuration in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='configuration' \n key='configuration.configuration-id = $prop.l3vpn.network-id' >\n<parameter name='configuration-id' value='`$prop.l3vpn.network-id`' />\n<parameter name='configuration-type' value='underlay' />\n<parameter name='configuration-sub-type' value='l3vpn' />\n<parameter name='orchestration-status' value='Created' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$prop.l3vpn.network-id`' />\n<parameter name='configuration-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.l3vpn.network-id + '/network-data/'` \" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 808.03125,
+ "y": 1477,
+ "z": "e07ef8ab.015e18",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a13270b7.6c1f5",
+ "type": "save",
+ "name": "save service relationship in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id \n AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"configuration\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/configurations/configuration/' + $prop.l3vpn.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"configuration.configuration-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.l3vpn.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"configuration.configuration-type\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"underlay\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 800.03125,
+ "y": 1523,
+ "z": "e07ef8ab.015e18",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a0a289d3.8a3128",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1312.53125,
+ "y": 404.9999694824219,
+ "z": "e07ef8ab.015e18",
+ "wires": [
+ [
+ "8ed22fd9.4d3dc",
+ "efdd2674.739ce8",
+ "f576c53a.7be778",
+ "f5da2a66.76d6a8",
+ "9322169f.7e6468",
+ "41e22f2d.675b9",
+ "fc7aed60.65dde",
+ "3fbbe309.27a1fc",
+ "a2bdcc47.ae6fd",
+ "5ff7d202.bbe52c",
+ "70478129.46c8",
+ "5b2c84b5.c4133c",
+ "5f56629a.41d4bc",
+ "88ead0cd.822bb",
+ "166443d5.94dbbc",
+ "2e267b3e.323f94",
+ "291e6ccb.4ad7e4",
+ "c859e422.4eadc8",
+ "335bcb16.8452b4",
+ "b8ac331e.cf80f",
+ "eddb16e2.7d3ca8",
+ "445b45a7.1c9e2c",
+ "ff841f48.1f039",
+ "b523547.75bb8a8",
+ "3d30a696.2b7b1a"
+ ]
+ ]
+ },
+ {
+ "id": "be278e7d.aed",
+ "type": "execute",
+ "name": "execute RestApiCallNode Get token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1033.03125,
+ "y": 919.9999694824219,
+ "z": "e07ef8ab.015e18",
+ "wires": [
+ [
+ "33fe71db.48126e",
+ "3c08e3ae.fb245c"
+ ]
+ ]
+ },
+ {
+ "id": "33fe71db.48126e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1268.03125,
+ "y": 897.9999694824219,
+ "z": "e07ef8ab.015e18",
+ "wires": [
+ [
+ "b2de4cc8.de5ec"
+ ]
+ ]
+ },
+ {
+ "id": "3c08e3ae.fb245c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1260.28125,
+ "y": 951.6428527832031,
+ "z": "e07ef8ab.015e18",
+ "wires": [
+ [
+ "49c53683.778b88"
+ ]
+ ]
+ },
+ {
+ "id": "49c53683.778b88",
+ "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=\"Error executing get token rest api\" />\n",
+ "comments": "",
+ "x": 1413.03125,
+ "y": 951.3929138183594,
+ "z": "e07ef8ab.015e18",
+ "wires": []
+ },
+ {
+ "id": "b2de4cc8.de5ec",
+ "type": "set",
+ "name": "set token-id",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='$token-result.token_id' />\n",
+ "comments": "",
+ "x": 1422.03125,
+ "y": 898.9999694824219,
+ "z": "e07ef8ab.015e18",