3     "id": "7b8cbc85.2da064",
 
   8     "y": 55.99999871850014,
 
  17     "id": "e9b1afb9.5ff99",
 
  18     "type": "service-logic",
 
  19     "name": "GENERIC-RESOURCE-API ${project.version}",
 
  20     "module": "GENERIC-RESOURCE-API",
 
  21     "version": "${project.version}",
 
  23     "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='GENERIC-RESOURCE-API' version='${project.version}'>",
 
  25     "x": 248.2895965576172,
 
  26     "y": 106.23810735344887,
 
  27     "z": "b1933fd7.45eec",
 
  35     "id": "4b2b7cbd.d36844",
 
  37     "name": "method sdwan-vnf-topology-operation-wanport-deactivate",
 
  38     "xml": "<method rpc='sdwan-vnf-topology-operation-wanport-deactivate' mode='sync'>\n",
 
  41     "x": 282.4325180053711,
 
  42     "y": 190.00001588463783,
 
  43     "z": "b1933fd7.45eec",
 
  51     "id": "5407681f.e8b5e8",
 
  53     "name": "block : atomic",
 
  54     "xml": "<block atomic=\"true\">",
 
  57     "x": 257.6706123352051,
 
  58     "y": 574.6666819155216,
 
  59     "z": "b1933fd7.45eec",
 
  77     "id": "df156b9b.893498",
 
  79     "name": "switch service-data.vnfs.vnf_length",
 
  80     "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
 
  83     "x": 763.0248603820801,
 
  84     "y": 99.02095222473145,
 
  85     "z": "b1933fd7.45eec",
 
  95     "id": "cd5b067d.e6ac48",
 
  98     "xml": "<outcome value=''>\n",
 
 101     "x": 1006.024787902832,
 
 102     "y": 124.02103519439697,
 
 103     "z": "b1933fd7.45eec",
 
 111     "id": "e50203dd.f1638",
 
 112     "type": "returnFailure",
 
 113     "name": "return failure",
 
 114     "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
 
 116     "x": 1154.8022994995117,
 
 117     "y": 103.9099702835083,
 
 118     "z": "b1933fd7.45eec",
 
 122     "id": "8805239b.f3949",
 
 125     "xml": "<outcome value='Other'>\n",
 
 128     "x": 1007.0251121520996,
 
 129     "y": 157.02105808258057,
 
 130     "z": "b1933fd7.45eec",
 
 138     "id": "ec39454c.89fad8",
 
 140     "name": "block : atomic",
 
 141     "xml": "<block atomic=\"true\">",
 
 144     "x": 1154.2948150634766,
 
 145     "y": 146.57558059692383,
 
 146     "z": "b1933fd7.45eec",
 
 155     "id": "581f3be0.95f264",
 
 157     "name": "for vidx..service-data.vnfs.vnf_length[]",
 
 158     "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
 
 161     "x": 1399.310775756836,
 
 162     "y": 98.44958019256592,
 
 163     "z": "b1933fd7.45eec",
 
 171     "id": "9ccafa3a.a3a8e8",
 
 172     "type": "switchNode",
 
 173     "name": "switch tmp.vidx ",
 
 174     "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
 
 177     "x": 1330.6121292114258,
 
 178     "y": 146.43275928497314,
 
 179     "z": "b1933fd7.45eec",
 
 187     "id": "4834ec00.0aabb4",
 
 190     "xml": "<outcome value=''>\n",
 
 193     "x": 1484.0407676696777,
 
 194     "y": 145.00417232513428,
 
 195     "z": "b1933fd7.45eec",
 
 203     "id": "5b23a76a.488d28",
 
 204     "type": "switchNode",
 
 205     "name": "switch vnfid found",
 
 206     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
 
 209     "x": 1770.739356994629,
 
 210     "y": 95.69969272613525,
 
 211     "z": "b1933fd7.45eec",
 
 219     "id": "fddc1ade.282818",
 
 220     "type": "returnFailure",
 
 221     "name": "return failure",
 
 222     "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
 
 224     "x": 1620.4691619873047,
 
 225     "y": 144.14703464508057,
 
 226     "z": "b1933fd7.45eec",
 
 230     "id": "acf51a78.0a9178",
 
 231     "type": "outcomeTrue",
 
 233     "xml": "<outcome value='true'>\n",
 
 236     "x": 1809.691505432129,
 
 237     "y": 150.59241199493408,
 
 238     "z": "b1933fd7.45eec",
 
 246     "id": "b1447a06.d6b6b8",
 
 249     "xml": "<outcome value='0'>\n",
 
 252     "x": 1002.9935340881348,
 
 253     "y": 91.98973083496094,
 
 254     "z": "b1933fd7.45eec",
 
 262     "id": "66dc1ec4.8151c",
 
 269     "x": 1618.6604080200195,
 
 270     "y": 97.9896411895752,
 
 271     "z": "b1933fd7.45eec",
 
 279     "id": "be3201ef.467c4",
 
 281     "name": "set vnf in service-data",
 
 282     "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='`$vnf-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='`$vnf-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='`$vnf-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-information.' value='`$vnf-topology-operation-input.vnf-information.`' />\n\n",
 
 284     "x": 718.338077545166,
 
 285     "y": 747.6668863296509,
 
 286     "z": "b1933fd7.45eec",
 
 290     "id": "860b5ecf.dd7b5",
 
 292     "name": "set vnfId and vnf-object-path",
 
 293     "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />",
 
 295     "x": 730.8937187194824,
 
 296     "y": 804.889181137085,
 
 297     "z": "b1933fd7.45eec",
 
 301     "id": "16992179.73e94f",
 
 303     "name": "set vnf-level-oper-status to PendingDelete",
 
 304     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
 
 306     "x": 773.3380928039551,
 
 307     "y": 839.6670169830322,
 
 308     "z": "b1933fd7.45eec",
 
 312     "id": "98f2142f.e861f8",
 
 313     "type": "returnSuccess",
 
 314     "name": "return success",
 
 315     "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",
 
 317     "x": 683.6714630126953,
 
 318     "y": 928.4448499679565,
 
 319     "z": "b1933fd7.45eec",
 
 323     "id": "873153fb.ad4f6",
 
 324     "type": "get-resource",
 
 325     "name": "get-resource esr-thirdparty-sdnc",
 
 326     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = SDWANController AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
 
 329     "x": 743.5042667388916,
 
 330     "y": 267.00012239813805,
 
 331     "z": "b1933fd7.45eec",
 
 341     "id": "5df9a8e2.afb138",
 
 344     "xml": "<outcome value='success'>\n",
 
 347     "x": 962.5042362213135,
 
 348     "y": 226.00011897087097,
 
 349     "z": "b1933fd7.45eec",
 
 357     "id": "e0b2bff0.163f1",
 
 360     "xml": "<outcome value='not-found'>\n",
 
 363     "x": 965.9952030181885,
 
 364     "y": 273.5741546154022,
 
 365     "z": "b1933fd7.45eec",
 
 373     "id": "a120de42.8cdeb",
 
 376     "xml": "<outcome value='Other'>\n",
 
 379     "x": 961.3282108306885,
 
 380     "y": 314.9074676036835,
 
 381     "z": "b1933fd7.45eec",
 
 389     "id": "4fef696b.8e5e98",
 
 390     "type": "returnFailure",
 
 391     "name": "return failure",
 
 392     "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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
 
 394     "x": 1149.1007671356201,
 
 395     "y": 310.3466603755951,
 
 396     "z": "b1933fd7.45eec",
 
 400     "id": "1f1c50e3.e0332f",
 
 401     "type": "returnFailure",
 
 402     "name": "return failure",
 
 403     "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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
 
 405     "x": 1142.566614151001,
 
 406     "y": 261.8598906993866,
 
 407     "z": "b1933fd7.45eec",
 
 411     "id": "c101e40a.a37c18",
 
 413     "name": "set controller data",
 
 414     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
 
 416     "x": 1143.0043392181396,
 
 417     "y": 220.00015768408775,
 
 418     "z": "b1933fd7.45eec",
 
 422     "id": "8c780213.0f5d9",
 
 424     "name": "execute RestApiCallNode device port delete",
 
 425     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-device-port-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/ports/action/batch-delete'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"portResp\"/>\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\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
 
 428     "x": 776.0044193267822,
 
 429     "y": 642.666867017746,
 
 430     "z": "b1933fd7.45eec",
 
 439     "id": "a8a639cc.af8fc8",
 
 442     "xml": "<outcome value='success'>\n",
 
 445     "x": 1022.0044040679932,
 
 446     "y": 680.6669557094574,
 
 447     "z": "b1933fd7.45eec",
 
 455     "id": "b547a1c8.93a66",
 
 458     "xml": "<outcome value='failure'>\n",
 
 461     "x": 1018.0044841766357,
 
 462     "y": 634.6668708324432,
 
 463     "z": "b1933fd7.45eec",
 
 471     "id": "bf4f49a8.2593f8",
 
 472     "type": "returnFailure",
 
 473     "name": "return failure",
 
 474     "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",
 
 476     "x": 1159.0045757293701,
 
 477     "y": 634.6668717861176,
 
 478     "z": "b1933fd7.45eec",
 
 482     "id": "da37396d.3af718",
 
 484     "name": "block : atomic",
 
 485     "xml": "<block atomic=\"true\">",
 
 489     "x": 1166.0042705535889,
 
 490     "y": 678.6668746471405,
 
 491     "z": "b1933fd7.45eec",
 
 497     "id": "e4cc3ba0.aaef78",
 
 499     "name": "execute RestApiCallNode wan port delete",
 
 500     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-wan-port-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/transport-network-ports/action/batch-delete'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"portResp\"/>\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\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
 
 503     "x": 767.0045871734619,
 
 504     "y": 535.666864156723,
 
 505     "z": "b1933fd7.45eec",
 
 514     "id": "456c9aa6.bae384",
 
 517     "xml": "<outcome value='success'>\n",
 
 520     "x": 1000.0046825408936,
 
 521     "y": 568.6668565273285,
 
 522     "z": "b1933fd7.45eec",
 
 530     "id": "c9572446.4deba8",
 
 533     "xml": "<outcome value='failure'>\n",
 
 536     "x": 1004.0047626495361,
 
 537     "y": 504.66693472862244,
 
 538     "z": "b1933fd7.45eec",
 
 546     "id": "2bd63ac3.ca30f6",
 
 547     "type": "returnFailure",
 
 548     "name": "return failure",
 
 549     "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",
 
 551     "x": 1149.004934310913,
 
 552     "y": 506.66693472862244,
 
 553     "z": "b1933fd7.45eec",
 
 557     "id": "3ae835e7.d94c3a",
 
 559     "name": "block : atomic",
 
 560     "xml": "<block atomic=\"true\">",
 
 564     "x": 1156.0045261383057,
 
 565     "y": 566.6668565273285,
 
 566     "z": "b1933fd7.45eec",
 
 572     "id": "d04b477e.b0b688",
 
 574     "name": "execute Properties",
 
 575     "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",
 
 578     "x": 711.0038948059082,
 
 579     "y": 142.0000295639038,
 
 580     "z": "b1933fd7.45eec",
 
 586     "id": "104270ca.7ed57f",
 
 588     "name": "execute RestApiCallNode Get token",
 
 589     "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\"/>",
 
 592     "x": 760.0041751861572,
 
 593     "y": 405.66669368743896,
 
 594     "z": "b1933fd7.45eec",
 
 603     "id": "4437f7fc.652918",
 
 606     "xml": "<outcome value='success'>\n",
 
 609     "x": 994.0042133331299,
 
 610     "y": 391.6667184829712,
 
 611     "z": "b1933fd7.45eec",
 
 619     "id": "1c05902b.92524",
 
 622     "xml": "<outcome value='failure'>\n",
 
 625     "x": 987.2541751861572,
 
 626     "y": 437.3095769882202,
 
 627     "z": "b1933fd7.45eec",
 
 635     "id": "7ff91448.c6f30c",
 
 636     "type": "returnFailure",
 
 637     "name": "return failure",
 
 638     "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",
 
 640     "x": 1140.0041751861572,
 
 641     "y": 437.05963802337646,
 
 642     "z": "b1933fd7.45eec",
 
 646     "id": "a3e2158c.084138",
 
 648     "name": "set token-id",
 
 649     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
 
 651     "x": 1148.0042133331299,
 
 652     "y": 392.6667184829712,
 
 653     "z": "b1933fd7.45eec",
 
 657     "id": "4a7918ac.67fac8",
 
 659     "name": "block : atomic",
 
 660     "xml": "<block atomic=\"true\">",
 
 663     "x": 1950.0040168762207,
 
 664     "y": 151.00004482269287,
 
 665     "z": "b1933fd7.45eec",
 
 675     "id": "a5d33dff.966b",
 
 677     "name": "save SDWAN wan port instance configuration in AAI",
 
 678     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n      key='wan-port-config.wan-port-config-id = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name='wan-port-config-id' value=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\" />\n<parameter name='operational-status' value='PendingDelete' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n",
 
 681     "x": 796.0041923522949,
 
 682     "y": 881.0004291534424,
 
 683     "z": "b1933fd7.45eec",
 
 689     "id": "bb491f3b.31d3b",
 
 691     "name": "set tmp.vidx and ctx.vnf-data",
 
 692     "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
 
 694     "x": 2200.0352516174316,
 
 695     "y": 102.03129148483276,
 
 696     "z": "b1933fd7.45eec",
 
 700     "id": "af8f15c9.eb4d58",
 
 702     "name": "set vnf-request-input.",
 
 703     "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
 
 705     "x": 2172.4815406799316,
 
 706     "y": 148.6889271736145,
 
 707     "z": "b1933fd7.45eec",
 
 711     "id": "df2693ee.5beea",
 
 713     "name": "call sdwan-get-wan-param",
 
 714     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
 
 717     "x": 2196.481491088867,
 
 718     "y": 198.68891525268555,
 
 719     "z": "b1933fd7.45eec",