+ },
+ {
+ "id": "e292252a.39cff8",
+ "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": 861,
+ "y": 773.0000305175781,
+ "z": "d1c71750.37b338",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "31c5a0ea.7876c",
+ "type": "switchNode",
+ "name": "switch service-data.networks_length",
+ "xml": "<switch test='`$service-data.networks.network_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 819,
+ "y": 854.0000305175781,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "e20b349f.c8503",
+ "816d3d6d.6345a8"
+ ]
+ ]
+ },
+ {
+ "id": "e20b349f.c8503",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1092.8095703125,
+ "y": 822.9524230957031,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "4ecd5064.971558"
+ ]
+ ]
+ },
+ {
+ "id": "816d3d6d.6345a8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1087.666748046875,
+ "y": 868.6667175292969,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "947799f0.0e982"
+ ]
+ ]
+ },
+ {
+ "id": "4ecd5064.971558",
+ "type": "set",
+ "name": "set nidx",
+ "xml": "<set>\n<parameter name='nidx' value='0' />\n",
+ "comments": "",
+ "x": 1245.8095703125,
+ "y": 822.5238342285156,
+ "z": "d1c71750.37b338",
+ "wires": []
+ },
+ {
+ "id": "947799f0.0e982",
+ "type": "set",
+ "name": "set nidx",
+ "xml": "<set>\n<parameter name='nidx' value='`$service-data.networks.network_length`' />\n",
+ "comments": "",
+ "x": 1247.2381591796875,
+ "y": 867.5238952636719,
+ "z": "d1c71750.37b338",
+ "wires": []
+ },
+ {
+ "id": "f41c462f.8589a",
+ "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": 733,
+ "y": 1342.0000305175781,
+ "z": "d1c71750.37b338",
+ "wires": []
+ },
+ {
+ "id": "58848908.ffbbb",
+ "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": 762,
+ "y": 1387.0000305175781,
+ "z": "d1c71750.37b338",
+ "wires": []
+ },
+ {
+ "id": "7b14c9f6.80d72",
+ "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": 709,
+ "y": 1576.0000305175781,
+ "z": "d1c71750.37b338",
+ "wires": []
+ },
+ {
+ "id": "a66c7c7d.376898",
+ "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": 735,
+ "y": 1434.0000305175781,
+ "z": "d1c71750.37b338",
+ "wires": []
+ },
+ {
+ "id": "30879b4d.be3994",
+ "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": 810,
+ "y": 260.0000305175781,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "48cba823.32bfc",
+ "fe778394.3d9298",
+ "a675b2b2.a64298"
+ ]
+ ]
+ },
+ {
+ "id": "48cba823.32bfc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1132,
+ "y": 150.00003051757812,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "8bb789cd.2a1608"
+ ]
+ ]
+ },
+ {
+ "id": "fe778394.3d9298",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1135.490966796875,
+ "y": 197.57406616210938,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "8f58e126.403b1"
+ ]
+ ]
+ },
+ {
+ "id": "a675b2b2.a64298",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1130.823974609375,
+ "y": 238.90737915039062,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "8d89cc4d.eb7678"
+ ]
+ ]
+ },
+ {
+ "id": "8f58e126.403b1",
+ "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": 1312.0623779296875,
+ "y": 185.85980224609375,
+ "z": "d1c71750.37b338",
+ "wires": []
+ },
+ {
+ "id": "8d89cc4d.eb7678",
+ "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": 1318.5965309143066,
+ "y": 234.34657192230225,
+ "z": "d1c71750.37b338",
+ "wires": []
+ },
+ {
+ "id": "8bb789cd.2a1608",
+ "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": 1336,
+ "y": 137.00003051757812,
+ "z": "d1c71750.37b338",
+ "wires": []
+ },
+ {
+ "id": "d54c20dc.cf6128",
+ "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": 754,
+ "y": 1484.0000305175781,
+ "z": "d1c71750.37b338",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b11968d4.007e68",
+ "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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 746,
+ "y": 1530.0000305175781,
+ "z": "d1c71750.37b338",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d3d6530.ff1843",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1258.5,
+ "y": 412,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "79980939.27992",
+ "6566447b.cd16fc",
+ "db1ad825.26052",
+ "612a1bef.8a1a9c",
+ "32815667.56769a",
+ "d99350c4.40314",
+ "e54a4b77.575f08",
+ "a16ad1af.30669",
+ "a9d432.f245a3d",
+ "89f7d244.7bed58",
+ "9e107c02.44f758",
+ "37c58153.b2998e",
+ "9ab7bd24.8d06c8",
+ "c98044e2.7a0fd",
+ "9c377089.4d9f3",
+ "6227130a.b283dc",
+ "87656c47.a73838",
+ "9d6a7f28.4304b",
+ "b0373753.70f0a",
+ "a53453dd.69ab28",
+ "9abdda02.3e776",
+ "e12d824c.4650c8",
+ "46a813fb.9bd0f4",
+ "f615e32b.689a18",
+ "5e4ee4bb.9cbae4"
+ ]
+ ]
+ },
+ {
+ "id": "e652cb3f.9ae0d",
+ "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\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 979,
+ "y": 927,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "5108fa21.828c5c",
+ "4ae0e1c.42791a"
+ ]
+ ]
+ },
+ {
+ "id": "5108fa21.828c5c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1214,
+ "y": 905,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "8a3a1639.1431d"
+ ]
+ ]
+ },
+ {
+ "id": "4ae0e1c.42791a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1206.25,
+ "y": 958.6428833007812,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "a0998cd9.40253"
+ ]
+ ]
+ },
+ {
+ "id": "a0998cd9.40253",
+ "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": 1359,
+ "y": 958.3929443359375,
+ "z": "d1c71750.37b338",
+ "wires": []
+ },
+ {
+ "id": "8a3a1639.1431d",
+ "type": "set",
+ "name": "set token-id",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
+ "comments": "",
+ "x": 1368,
+ "y": 906,
+ "z": "d1c71750.37b338",
+ "wires": []
+ },
+ {
+ "id": "d40cc8a7.624908",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1394,
+ "y": 1078,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "28652dba.d39e02"
+ ]
+ ]
+ },
+ {
+ "id": "550c17e5.cfd818",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1401.25,
+ "y": 1172.642822265625,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "d57e2b04.e0fea"
+ ]
+ ]
+ },
+ {
+ "id": "d57e2b04.e0fea",
+ "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 Create vrf rest api\" />\n",
+ "comments": "",
+ "x": 1373,
+ "y": 1357.3929443359375,
+ "z": "d1c71750.37b338",
+ "wires": []
+ },
+ {
+ "id": "725ceec3.c5b2",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 702.96875,
+ "y": 998.0000305175781,
+ "z": "d1c71750.37b338",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "28652dba.d39e02",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1234,
+ "y": 1409,
+ "z": "d1c71750.37b338",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "df1ccdd8.7bf27",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1324,
+ "y": 1473,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "948b66a6.ef156"
+ ]
+ ]
+ },
+ {
+ "id": "948b66a6.ef156",
+ "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 Create site rest api\" />\n",
+ "comments": "",
+ "x": 1353.75,
+ "y": 1530.7501220703125,
+ "z": "d1c71750.37b338",
+ "wires": []
+ },
+ {
+ "id": "359e3cd1.226de4",
+ "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 Create vpn rest api\" />\n",
+ "comments": "",
+ "x": 1210,
+ "y": 1061,
+ "z": "d1c71750.37b338",
+ "wires": []
+ },
+ {
+ "id": "c80688e8.50ffd",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1065,
+ "y": 1058,
+ "z": "d1c71750.37b338",
+ "wires": [
+ [
+ "359e3cd1.226de4"
+ ]
+ ]