3     "id": "503a78f7.47ca18",
 
   5     "name": "switch service-data.vnfs.vnf_length",
 
   6     "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
 
   9     "x": 657.0634536743164,
 
  11     "z": "944c3ee1.29b9e",
 
  20     "id": "1a9196c0.4e6769",
 
  25     "y": 156.73882961273193,
 
  26     "z": "944c3ee1.29b9e",
 
  34     "id": "902e1c94.66f24",
 
  35     "type": "service-logic",
 
  36     "name": "GENERIC-RESOURCE-API ${project.version}",
 
  37     "module": "GENERIC-RESOURCE-API",
 
  38     "version": "${project.version}",
 
  40     "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}'>",
 
  42     "x": 194.25445556640625,
 
  43     "y": 196.9769411087036,
 
  44     "z": "944c3ee1.29b9e",
 
  52     "id": "2648545f.a0239c",
 
  54     "name": "wan port-vnf-topology-operation-delete",
 
  57     "x": 568.3136672973633,
 
  58     "y": 230.32522869110107,
 
  59     "z": "944c3ee1.29b9e",
 
  63     "id": "cb66206e.4a85e",
 
  65     "name": "block : atomic",
 
  66     "xml": "<block atomic=\"true\">",
 
  69     "x": 195.63541412353516,
 
  70     "y": 458.4055013656616,
 
  71     "z": "944c3ee1.29b9e",
 
  87     "id": "77aa4ba.68c1bb4",
 
  89     "name": "outcome Null",
 
  90     "xml": "<outcome value=''>\n",
 
  93     "x": 921.7857666015625,
 
  94     "y": 374.5556221008301,
 
  95     "z": "944c3ee1.29b9e",
 
 103     "id": "5f41004a.301df",
 
 104     "type": "returnFailure",
 
 105     "name": "return failure",
 
 106     "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",
 
 108     "x": 1102.7856369018555,
 
 109     "y": 369.5555000305176,
 
 110     "z": "944c3ee1.29b9e",
 
 114     "id": "4952201a.7d4c8",
 
 117     "xml": "<outcome value='Other'>\n",
 
 120     "x": 907.2857666015625,
 
 121     "y": 426.55558490753174,
 
 122     "z": "944c3ee1.29b9e",
 
 130     "id": "dcbc4218.194a6",
 
 132     "name": "block : atomic",
 
 133     "xml": "<block atomic=\"true\">",
 
 136     "x": 1079.285472869873,
 
 137     "y": 426.5555830001831,
 
 138     "z": "944c3ee1.29b9e",
 
 148     "id": "f6b988cf.3ccc88",
 
 149     "type": "switchNode",
 
 150     "name": "switch tmp.vidx ",
 
 151     "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
 
 154     "x": 1254.28564453125,
 
 155     "y": 445.55550479888916,
 
 156     "z": "944c3ee1.29b9e",
 
 164     "id": "335cedb5.736ac2",
 
 165     "type": "switchNode",
 
 166     "name": "switch vnf-level-oper-status",
 
 167     "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
 
 170     "x": 627.4524536132812,
 
 171     "y": 466.4444637298584,
 
 172     "z": "944c3ee1.29b9e",
 
 181     "id": "2a3d41e1.8aa8ce",
 
 183     "name": "outcome PendingDelete",
 
 184     "xml": "<outcome value='PendingDelete'>\n",
 
 187     "x": 918.2857208251953,
 
 188     "y": 470.55558681488037,
 
 189     "z": "944c3ee1.29b9e",
 
 197     "id": "c521841a.091868",
 
 200     "xml": "<outcome value='Other'>\n",
 
 203     "x": 864.2857818603516,
 
 204     "y": 517.5555906295776,
 
 205     "z": "944c3ee1.29b9e",
 
 213     "id": "8d57a7f4.cb78b8",
 
 214     "type": "returnFailure",
 
 215     "name": "return failure",
 
 216     "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 is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",
 
 218     "x": 1023.7855491638184,
 
 219     "y": 520.5555896759033,
 
 220     "z": "944c3ee1.29b9e",
 
 224     "id": "ee257c77.ce85f",
 
 225     "type": "switchNode",
 
 226     "name": "switch vnf-id",
 
 227     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",
 
 230     "x": 593.2857704162598,
 
 231     "y": 347.5555934906006,
 
 232     "z": "944c3ee1.29b9e",
 
 240     "id": "d82c9312.151d9",
 
 243     "xml": "<outcome value=''>",
 
 246     "x": 791.2858352661133,
 
 247     "y": 337.5556058883667,
 
 248     "z": "944c3ee1.29b9e",
 
 256     "id": "a3bf6d80.2d0f6",
 
 257     "type": "returnFailure",
 
 258     "name": "return failure",
 
 259     "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-request-input.vnf-input-parameters.name is a required input\" />\n",
 
 261     "x": 957.7857208251953,
 
 262     "y": 334.5556001663208,
 
 263     "z": "944c3ee1.29b9e",
 
 267     "id": "b8b4f7cf.20f728",
 
 269     "name": "for vidx..service-data.vnfs.vnf[]",
 
 270     "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
 
 273     "x": 1314.7856483459473,
 
 274     "y": 381.5555009841919,
 
 275     "z": "944c3ee1.29b9e",
 
 283     "id": "ba14948d.015c78",
 
 284     "type": "switchNode",
 
 285     "name": "switch vnf-id found",
 
 286     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
 
 289     "x": 1570.7856674194336,
 
 290     "y": 381.5555009841919,
 
 291     "z": "944c3ee1.29b9e",
 
 299     "id": "b53ab16b.22442",
 
 300     "type": "outcomeTrue",
 
 302     "xml": "<outcome value='true'>\n",
 
 305     "x": 1747.2857208251953,
 
 306     "y": 384.5555009841919,
 
 307     "z": "944c3ee1.29b9e",
 
 315     "id": "c9311851.f90738",
 
 317     "name": "set tmp.vidx and ctx.vnf-data",
 
 318     "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].vnf-data.`' />\n",
 
 320     "x": 1914.2857360839844,
 
 321     "y": 445.5555009841919,
 
 322     "z": "944c3ee1.29b9e",
 
 326     "id": "6ec9cdbe.844104",
 
 327     "type": "returnFailure",
 
 328     "name": "return failure",
 
 329     "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",
 
 331     "x": 1559.785659790039,
 
 332     "y": 445.55550479888916,
 
 333     "z": "944c3ee1.29b9e",
 
 337     "id": "2be170a7.d1fc4",
 
 340     "xml": "<outcome value=''>\n",
 
 343     "x": 1422.285659790039,
 
 344     "y": 445.55550479888916,
 
 345     "z": "944c3ee1.29b9e",
 
 353     "id": "7d0a1f82.5f016",
 
 355     "name": "set vnfId and vnf-object-path",
 
 356     "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/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
 
 358     "x": 605.3021850585938,
 
 359     "y": 642.0722465515137,
 
 360     "z": "944c3ee1.29b9e",
 
 364     "id": "60ff59e4.f2b988",
 
 365     "type": "returnSuccess",
 
 366     "name": "return success",
 
 367     "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",
 
 369     "x": 554.4133453369141,
 
 370     "y": 767.6276769638062,
 
 371     "z": "944c3ee1.29b9e",
 
 375     "id": "99c3b58a.28fe68",
 
 377     "name": "set new vnf length",
 
 378     "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value=\"`$service-data.vnfs.vnf_length - 1`\"/>\n\n\t\n",
 
 380     "x": 585.9347686767578,
 
 381     "y": 539.5431041717529,
 
 382     "z": "944c3ee1.29b9e",
 
 386     "id": "41864004.a59f8",
 
 388     "name": "Remove vnf from ServiceData",
 
 389     "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$tmp.vidx].\" value=\"\"/>\n\n",
 
 391     "x": 621.5589599609375,
 
 392     "y": 583.5110712051392,
 
 393     "z": "944c3ee1.29b9e",
 
 397     "id": "edb94879.c47ed8",
 
 399     "name": "block : atomic",
 
 400     "xml": "<block atomic=\"true\">",
 
 403     "x": 1115.5921211242676,
 
 404     "y": 480.88074111938477,
 
 405     "z": "944c3ee1.29b9e",
 
 411     "id": "a3cff3f0.d5beb",
 
 413     "name": "method sdwan-vnf-topology-operation-wanport-delete",
 
 414     "xml": "<method rpc='sdwan-vnf-topology-operation-wanport-delete' mode='sync'>\n",
 
 419     "z": "944c3ee1.29b9e",
 
 427     "id": "b68bb604.af2598",
 
 429     "name": "execute requiredParameters",
 
 430     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vnf-topology-operation-input.vnf-information.vnf-id\" value=\"$vnf-topology-operation-input.vnf-information.vnf-id\"/>\n\n",
 
 433     "x": 650.7858276367188,
 
 434     "y": 287.55559253692627,
 
 435     "z": "944c3ee1.29b9e",
 
 441     "id": "55b1fa8a.f95f74",
 
 443     "name": "delete wan port instance configuration in AAI",
 
 444     "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='wan-port-config' \n        key='wan-port-config.id = $vnf-topology-operation-input.vnf-information.vnf-id'>\n",
 
 449     "z": "944c3ee1.29b9e",
 
 455     "id": "a936ae5c.480e",
 
 458     "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"tmp.vidx1234555\"/>\n<parameter name=\"field3\" value='`$tmp.vidx`'/>\n",
 
 461     "x": 1303.5001373291016,
 
 462     "y": 500.0000123977661,
 
 463     "z": "944c3ee1.29b9e",