3 "id": "2395bbe0.4b8ec4",
\r
5 "name": "get all-vpn-bindings from aai",
\r
6 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t key=\"selflink = 'https://aai.onap:8443/aai/v24/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.all-vpn-bindings\" >\n",
\r
11 "z": "ed7c1675.7a56b",
\r
21 "id": "7a4b4c32.339f0c",
\r
24 "xml": "<outcome value='success'>\n",
\r
29 "z": "ed7c1675.7a56b",
\r
37 "id": "476b558f.0cf4e4",
\r
38 "type": "not-found",
\r
39 "name": "not-found",
\r
40 "xml": "<outcome value='not-found'>\n",
\r
43 "x": 549.490966796875,
\r
44 "y": 406.57403564453125,
\r
45 "z": "ed7c1675.7a56b",
\r
53 "id": "c5f863d4.faa76",
\r
56 "xml": "<outcome value='failure'>\n",
\r
61 "z": "ed7c1675.7a56b",
\r
69 "id": "477b4d49.40f0ec",
\r
71 "name": "block : atomic",
\r
72 "xml": "<block atomic=\"true\">",
\r
77 "z": "ed7c1675.7a56b",
\r
85 "id": "9391f816.87a258",
\r
86 "type": "returnFailure",
\r
87 "name": "return failure",
\r
88 "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",
\r
90 "x": 712.0623779296875,
\r
91 "y": 406.8597717285156,
\r
92 "z": "ed7c1675.7a56b",
\r
96 "id": "7e716c79.c4ee54",
\r
97 "type": "returnFailure",
\r
98 "name": "return failure",
\r
99 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
103 "z": "ed7c1675.7a56b",
\r
107 "id": "de48ad25.e4a568",
\r
109 "name": "for vpnidx in all-vpn-bindings",
\r
110 "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",
\r
115 "z": "ed7c1675.7a56b",
\r
123 "id": "1fd8993c.e83297",
\r
125 "name": "block : atomic",
\r
126 "xml": "<block atomic='true'>",
\r
132 "z": "ed7c1675.7a56b",
\r
140 "id": "edb565df.2fd588",
\r
141 "type": "switchNode",
\r
142 "name": "switch vpnuuid is for this slice",
\r
143 "xml": "<!--<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">-->\n\n<!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->\n<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].slice-id == $tmp.aai.service-instance.service-instance-id `\">\n\n",
\r
148 "z": "ed7c1675.7a56b",
\r
157 "id": "d9f77b89.2576a8",
\r
158 "type": "outcomeTrue",
\r
160 "xml": "<outcome value='true'>\n",
\r
165 "z": "ed7c1675.7a56b",
\r
173 "id": "d1a41641.7e8658",
\r
174 "type": "outcomeFalse",
\r
176 "xml": "<outcome value='false'>\n",
\r
181 "z": "ed7c1675.7a56b",
\r
187 "id": "33755ee2.127952",
\r
189 "name": "block : atomic",
\r
190 "xml": "<block atomic='true'>",
\r
196 "z": "ed7c1675.7a56b",
\r
206 "id": "48081245.456c3c",
\r
212 "z": "ed7c1675.7a56b",
\r
220 "id": "226f6982.562f5e",
\r
221 "type": "service-logic",
\r
222 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
223 "module": "GENERIC-RESOURCE-API",
\r
224 "version": "${project.version}",
\r
226 "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}'>",
\r
228 "x": 464.2856903076172,
\r
229 "y": 150.23810863494873,
\r
230 "z": "ed7c1675.7a56b",
\r
238 "id": "f533e2ec.f849f",
\r
240 "name": "method cll-vnf-topology-operation-cll-F1-Activate",
\r
241 "xml": "<method rpc='cll-vnf-topology-operation-cll-F1-Activate' mode='sync'>\n",
\r
244 "x": 470.42860412597656,
\r
245 "y": 235.00003051757812,
\r
246 "z": "ed7c1675.7a56b",
\r
254 "id": "15848be5.af4ba4",
\r
256 "name": "block : atomic",
\r
257 "xml": "<block atomic=\"true\">",
\r
260 "x": 780.238037109375,
\r
261 "y": 226.66668701171875,
\r
262 "z": "ed7c1675.7a56b",
\r
274 "id": "9647ef19.c8c25",
\r
276 "name": "set tmp.aai.vpn-binding",
\r
277 "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`\" />\n",
\r
281 "z": "ed7c1675.7a56b",
\r
285 "id": "927e2807.47e1",
\r
287 "name": "set attachment_param for OTN A",
\r
288 "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingA.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingA.customer-vpn-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-src-domain' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\n",
\r
292 "z": "ed7c1675.7a56b",
\r
296 "id": "71f8cbde.7b70ec",
\r
298 "name": "execute RestApiCallNode Create OTN tunnel with token",
\r
299 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-otn-src-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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`\" />",
\r
304 "z": "ed7c1675.7a56b",
\r
313 "id": "dca0592f.f2f0f8",
\r
316 "xml": "<outcome value='failure'>\n",
\r
321 "z": "ed7c1675.7a56b",
\r
329 "id": "7abf945b.d3630c",
\r
332 "xml": "<outcome value='success'>\n",
\r
337 "z": "ed7c1675.7a56b",
\r
345 "id": "4d6d008.1dd328",
\r
346 "type": "returnFailure",
\r
347 "name": "return failure",
\r
348 "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 OTN tunnel rest api\" />\n",
\r
352 "z": "ed7c1675.7a56b",
\r
356 "id": "6ddc3bc2.826894",
\r
358 "name": "block : atomic",
\r
359 "xml": "<block atomic=\"true\">",
\r
365 "z": "ed7c1675.7a56b",
\r
371 "id": "639d74a6.1d8f04",
\r
373 "name": "set sotn_value",
\r
374 "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityA.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityA.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityA.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />\n",
\r
378 "z": "ed7c1675.7a56b",
\r
382 "id": "d9456183.6b2d68",
\r
384 "name": "execute RestApiCallNode Create ethernet Service without token",
\r
385 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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",
\r
390 "z": "ed7c1675.7a56b",
\r
399 "id": "3efbdf9b.54682",
\r
402 "xml": "<outcome value='failure'>\n",
\r
407 "z": "ed7c1675.7a56b",
\r
415 "id": "243cc169.72316e",
\r
418 "xml": "<outcome value='success'>\n",
\r
423 "z": "ed7c1675.7a56b",
\r
431 "id": "ba970949.4ab53",
\r
432 "type": "returnFailure",
\r
433 "name": "return failure",
\r
434 "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 ethernet service rest api\" />\n",
\r
438 "z": "ed7c1675.7a56b",
\r
442 "id": "4891a43f.02e58c",
\r
444 "name": "block : atomic",
\r
445 "xml": "<block atomic=\"true\">",
\r
451 "z": "ed7c1675.7a56b",
\r
460 "id": "388beb56.7c7234",
\r
462 "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",
\r
463 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingA.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingA.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",
\r
468 "z": "ed7c1675.7a56b",
\r
474 "id": "d196af8c.f36ae8",
\r
476 "name": "TODO: FIXME",
\r
477 "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
\r
481 "z": "ed7c1675.7a56b",
\r
485 "id": "eb334e0f.b54c3",
\r
487 "name": "update connectivity resource in AAI",
\r
488 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.connectivityA.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",
\r
493 "z": "ed7c1675.7a56b",
\r
499 "id": "51361643.15e97",
\r
501 "name": "set pnf-name",
\r
502 "xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-bindingA.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-bindingA.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-bindingA.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-bindingA.src-access-node-id`\" />\n",
\r
506 "z": "ed7c1675.7a56b",
\r
510 "id": "7074e291.428a74",
\r
511 "type": "get-resource",
\r
512 "name": "get-resource src pnf",
\r
513 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\"\n pfx='tmp.aai.source-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
\r
518 "z": "ed7c1675.7a56b",
\r
528 "id": "fd9f25cd.b6ab9",
\r
531 "xml": "<outcome value='success'>\n",
\r
534 "x": 4366.5001220703125,
\r
536 "z": "ed7c1675.7a56b",
\r
544 "id": "13f82e43.b47822",
\r
545 "type": "not-found",
\r
546 "name": "not-found",
\r
547 "xml": "<outcome value='not-found'>\n",
\r
550 "x": 4358.5001220703125,
\r
552 "z": "ed7c1675.7a56b",
\r
560 "id": "10d11922.59185f",
\r
563 "xml": "<block>\n",
\r
567 "x": 4510.8824462890625,
\r
568 "y": 288.6556701660156,
\r
569 "z": "ed7c1675.7a56b",
\r
577 "id": "391ce87d.ba3df8",
\r
579 "name": "esr-thirdparty-sdnc",
\r
580 "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
\r
585 "z": "ed7c1675.7a56b",
\r
593 "id": "777ae9c7.6a278",
\r
595 "name": "for each relationship",
\r
596 "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",
\r
601 "z": "ed7c1675.7a56b",
\r
609 "id": "f4f1a808.b22bc",
\r
610 "type": "switchNode",
\r
611 "name": "switch related-to",
\r
612 "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
\r
617 "z": "ed7c1675.7a56b",
\r
625 "id": "a1ba843c.92fa78",
\r
628 "xml": "<outcome value='Other'>\n",
\r
631 "x": 4363.5001220703125,
\r
633 "z": "ed7c1675.7a56b",
\r
641 "id": "a6d9e4b5.ea0fd8",
\r
642 "type": "returnFailure",
\r
643 "name": "return failure",
\r
644 "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.connection-attachement.access-node-id`\" />\n\n",
\r
646 "x": 4515.5001220703125,
\r
648 "z": "ed7c1675.7a56b",
\r
652 "id": "19650434.8dad4c",
\r
653 "type": "returnFailure",
\r
654 "name": "return failure",
\r
655 "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.connection-attachement.access-node-id`\" />\n\n",
\r
657 "x": 4526.5001220703125,
\r
659 "z": "ed7c1675.7a56b",
\r
663 "id": "5d042a1f.c8fb44",
\r
665 "name": "get esr-thirdparty-sdnc",
\r
666 "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 = $tmp.domainA.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >",
\r
671 "z": "ed7c1675.7a56b",
\r
681 "id": "65b820ac.17e0d",
\r
683 "name": "block : atomic",
\r
684 "xml": "<block atomic=\"true\">",
\r
689 "z": "ed7c1675.7a56b",
\r
698 "id": "1918c44c.117ae4",
\r
700 "name": "set esr-thirdparty-sdnc domainA id",
\r
701 "xml": "<set>\n<parameter name='tmp.domainA.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
\r
705 "z": "ed7c1675.7a56b",
\r
709 "id": "8c0f87c1.0cfa88",
\r
712 "xml": "<outcome value='success'>\n",
\r
717 "z": "ed7c1675.7a56b",
\r
725 "id": "96b96977.b4fed8",
\r
726 "type": "not-found",
\r
727 "name": "not-found",
\r
728 "xml": "<outcome value='not-found'>\n",
\r
733 "z": "ed7c1675.7a56b",
\r
741 "id": "6ce026da.737ea",
\r
744 "xml": "<outcome value='Other'>\n",
\r
749 "z": "ed7c1675.7a56b",
\r
757 "id": "80c7718d.f0881",
\r
758 "type": "returnFailure",
\r
759 "name": "return failure",
\r
760 "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.connection-attachement.access-node-id`\" />\n\n",
\r
764 "z": "ed7c1675.7a56b",
\r
768 "id": "a74826f7.daef6",
\r
769 "type": "returnFailure",
\r
770 "name": "return failure",
\r
771 "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.connection-attachement.access-node-id`\" />\n\n",
\r
775 "z": "ed7c1675.7a56b",
\r
779 "id": "e1aae278.d9aab",
\r
782 "xml": "<block>\n",
\r
786 "x": 5832.38232421875,
\r
787 "y": 292.6556701660156,
\r
788 "z": "ed7c1675.7a56b",
\r
796 "id": "b6fb5857.56d2c",
\r
798 "name": "set controller domainA data",
\r
799 "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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",
\r
803 "z": "ed7c1675.7a56b",
\r
807 "id": "881ac3d.2b73cc",
\r
809 "name": "set attachment_param for OTN B",
\r
810 "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingB.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\n<!--<parameter name='src-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingB.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingB.src-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-dst-domain' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\n",
\r
814 "z": "ed7c1675.7a56b",
\r
818 "id": "f942fe34.857118",
\r
820 "name": "execute RestApiCallNode Create OTN tunnel with token",
\r
821 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-otn-dst-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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`\" />",
\r
826 "z": "ed7c1675.7a56b",
\r
835 "id": "d6aba815.0c0b98",
\r
838 "xml": "<outcome value='failure'>\n",
\r
843 "z": "ed7c1675.7a56b",
\r
851 "id": "fb15fc4f.27732",
\r
854 "xml": "<outcome value='success'>\n",
\r
859 "z": "ed7c1675.7a56b",
\r
867 "id": "f7e9b7f6.cb6cf8",
\r
868 "type": "returnFailure",
\r
869 "name": "return failure",
\r
870 "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 OTN tunnel rest api\" />\n",
\r
874 "z": "ed7c1675.7a56b",
\r
878 "id": "e7e93f9f.05e6f8",
\r
880 "name": "block : atomic",
\r
881 "xml": "<block atomic=\"true\">",
\r
887 "z": "ed7c1675.7a56b",
\r
893 "id": "c6f7c9bc.a78ea8",
\r
895 "name": "set pnf-name",
\r
896 "xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-bindingB.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-bindingB.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-bindingB.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-bindingB.dst-access-node-id`\" />\n",
\r
900 "z": "ed7c1675.7a56b",
\r
904 "id": "8f243ad6.97dd38",
\r
905 "type": "get-resource",
\r
906 "name": "get-resource dst pnf",
\r
907 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\"\n pfx='tmp.aai.destination-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
\r
912 "z": "ed7c1675.7a56b",
\r
922 "id": "a8e6c84d.0f237",
\r
925 "xml": "<outcome value='success'>\n",
\r
928 "x": 3775.5001220703125,
\r
930 "z": "ed7c1675.7a56b",
\r
938 "id": "3ee8ddc2.b7378a",
\r
939 "type": "not-found",
\r
940 "name": "not-found",
\r
941 "xml": "<outcome value='not-found'>\n",
\r
944 "x": 3767.5001220703125,
\r
946 "z": "ed7c1675.7a56b",
\r
954 "id": "6ef9124f.c91bc4",
\r
957 "xml": "<block>\n",
\r
961 "x": 3919.8824462890625,
\r
962 "y": 1733.6556701660156,
\r
963 "z": "ed7c1675.7a56b",
\r
971 "id": "8bd570a1.9b5908",
\r
973 "name": "for each relationship",
\r
974 "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",
\r
979 "z": "ed7c1675.7a56b",
\r
987 "id": "311698c.6883b68",
\r
990 "xml": "<outcome value='Other'>\n",
\r
993 "x": 3772.5001220703125,
\r
995 "z": "ed7c1675.7a56b",
\r
1003 "id": "25fe1469.5e13bc",
\r
1004 "type": "returnFailure",
\r
1005 "name": "return failure",
\r
1006 "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.connection-attachement.access-node-id`\" />\n\n",
\r
1008 "x": 3924.5001220703125,
\r
1010 "z": "ed7c1675.7a56b",
\r
1014 "id": "9b01e4a.2bf7598",
\r
1015 "type": "returnFailure",
\r
1016 "name": "return failure",
\r
1017 "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.connection-attachement.access-node-id`\" />\n\n",
\r
1019 "x": 3935.5001220703125,
\r
1021 "z": "ed7c1675.7a56b",
\r
1025 "id": "a9a3100d.7e9a38",
\r
1026 "type": "outcome",
\r
1027 "name": "esr-thirdparty-sdnc",
\r
1028 "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
\r
1033 "z": "ed7c1675.7a56b",
\r
1041 "id": "5951fb7a.778dbc",
\r
1042 "type": "switchNode",
\r
1043 "name": "switch related-to",
\r
1044 "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",
\r
1049 "z": "ed7c1675.7a56b",
\r
1057 "id": "b462757e.f97cf",
\r
1058 "type": "execute",
\r
1059 "name": "get esr-thirdparty-sdnc",
\r
1060 "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 = $tmp.domainB.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >",
\r
1065 "z": "ed7c1675.7a56b",
\r
1068 "f548cd5f.cf97e8",
\r
1069 "7bf2c309.936484",
\r
1075 "id": "15a6f6cf.b80121",
\r
1077 "name": "block : atomic",
\r
1078 "xml": "<block atomic=\"true\">",
\r
1083 "z": "ed7c1675.7a56b",
\r
1092 "id": "24625031.3ccbb",
\r
1094 "name": "set esr-thirdparty-sdnc domainB id",
\r
1095 "xml": "<set>\n<parameter name='tmp.domainB.esr-thirdparty-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",
\r
1099 "z": "ed7c1675.7a56b",
\r
1103 "id": "3717e4c0.7e91fc",
\r
1104 "type": "returnFailure",
\r
1105 "name": "return failure",
\r
1106 "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.connection-attachement.access-node-id`\" />\n\n",
\r
1110 "z": "ed7c1675.7a56b",
\r
1114 "id": "ebaf4cad.7f7ac",
\r
1115 "type": "returnFailure",
\r
1116 "name": "return failure",
\r
1117 "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.connection-attachement.access-node-id`\" />\n\n",
\r
1121 "z": "ed7c1675.7a56b",
\r
1125 "id": "95133e26.a5c4",
\r
1128 "xml": "<block>\n",
\r
1129 "atomic": "false",
\r
1132 "x": 5241.38232421875,
\r
1133 "y": 1739.6556701660156,
\r
1134 "z": "ed7c1675.7a56b",
\r
1142 "id": "74fa69d9.12322",
\r
1144 "name": "set controller domainB data",
\r
1145 "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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",
\r
1149 "z": "ed7c1675.7a56b",
\r
1153 "id": "f548cd5f.cf97e8",
\r
1154 "type": "success",
\r
1155 "name": "success",
\r
1156 "xml": "<outcome value='success'>\n",
\r
1161 "z": "ed7c1675.7a56b",
\r
1169 "id": "7bf2c309.936484",
\r
1170 "type": "not-found",
\r
1171 "name": "not-found",
\r
1172 "xml": "<outcome value='not-found'>\n",
\r
1177 "z": "ed7c1675.7a56b",
\r
1185 "id": "37200156.6e45ae",
\r
1188 "xml": "<outcome value='Other'>\n",
\r
1193 "z": "ed7c1675.7a56b",
\r
1201 "id": "4573661e.19551",
\r
1202 "type": "switchNode",
\r
1203 "name": "switch vpn-binding has dst-access-ltp",
\r
1204 "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>\n",
\r
1209 "z": "ed7c1675.7a56b",
\r
1212 "e3a931ba.d41978",
\r
1218 "id": "e3a931ba.d41978",
\r
1219 "type": "outcome",
\r
1221 "xml": "<outcome value=''>\n",
\r
1226 "z": "ed7c1675.7a56b",
\r
1234 "id": "cce98769.66d2f",
\r
1237 "xml": "<outcome value='Other'>\n",
\r
1242 "z": "ed7c1675.7a56b",
\r
1250 "id": "83f7a2a0.47e4a",
\r
1251 "type": "switchNode",
\r
1252 "name": "switch vpn-binding has src-access-ltp",
\r
1253 "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",
\r
1258 "z": "ed7c1675.7a56b",
\r
1267 "id": "b17cf12.c5b4e9",
\r
1268 "type": "outcome",
\r
1270 "xml": "<outcome value=''>\n",
\r
1275 "z": "ed7c1675.7a56b",
\r
1283 "id": "375f750c.523c3a",
\r
1286 "xml": "<outcome value='Other'>\n",
\r
1291 "z": "ed7c1675.7a56b",
\r
1299 "id": "b574ded7.ea26d",
\r
1300 "type": "returnFailure",
\r
1301 "name": "return failure",
\r
1302 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
1306 "z": "ed7c1675.7a56b",
\r
1310 "id": "27c7cf1.51adcb",
\r
1312 "name": "set vpn-bindingA and connectivityA",
\r
1313 "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingA.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityA.' value=\"`$tmp.aai.connectivity.`\" />\n",
\r
1317 "z": "ed7c1675.7a56b",
\r
1321 "id": "e24e0a9e.a7db8",
\r
1323 "name": "set vpn-bindingB and connectivityB",
\r
1324 "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingB.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityB.' value=\"`$tmp.aai.connectivity.`\" />\n\n",
\r
1328 "z": "ed7c1675.7a56b",
\r
1332 "id": "6b14e6ca.05c05",
\r
1334 "name": "block : atomic",
\r
1335 "xml": "<block atomic=\"true\">",
\r
1341 "z": "ed7c1675.7a56b",
\r
1347 "7074e291.428a74",
\r
1348 "71f8cbde.7b70ec",
\r
1349 "41c50446.37f104",
\r
1350 "e5881b35.2a2bf8",
\r
1356 "id": "3eeb971b.8e101",
\r
1358 "name": "block : atomic",
\r
1359 "xml": "<block atomic=\"true\">",
\r
1364 "z": "ed7c1675.7a56b",
\r
1369 "c6f7c9bc.a78ea8",
\r
1370 "8f243ad6.97dd38",
\r
1371 "f942fe34.857118",
\r
1372 "51d22e16.357968",
\r
1379 "id": "f87bcfd0.50c8c",
\r
1381 "name": "set sotn_value",
\r
1382 "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityB.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityB.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityB.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityB.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityB.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityB.cvlan`' />\n\n",
\r
1386 "z": "ed7c1675.7a56b",
\r
1390 "id": "ab6e58b.3c55528",
\r
1391 "type": "execute",
\r
1392 "name": "execute RestApiCallNode Create ethernet Service without token",
\r
1393 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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",
\r
1398 "z": "ed7c1675.7a56b",
\r
1407 "id": "eff9a19.776a7e",
\r
1408 "type": "failure",
\r
1409 "name": "failure",
\r
1410 "xml": "<outcome value='failure'>\n",
\r
1415 "z": "ed7c1675.7a56b",
\r
1423 "id": "ddb717fb.d9a6d8",
\r
1424 "type": "success",
\r
1425 "name": "success",
\r
1426 "xml": "<outcome value='success'>\n",
\r
1431 "z": "ed7c1675.7a56b",
\r
1439 "id": "59a2ea1f.0d3f14",
\r
1440 "type": "returnFailure",
\r
1441 "name": "return failure",
\r
1442 "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 ethernet service rest api\" />\n",
\r
1446 "z": "ed7c1675.7a56b",
\r
1450 "id": "81b55fda.fb8e98",
\r
1452 "name": "block : atomic",
\r
1453 "xml": "<block atomic=\"true\">",
\r
1459 "z": "ed7c1675.7a56b",
\r
1462 "1bcc30a0.546397",
\r
1468 "id": "1bcc30a0.546397",
\r
1470 "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",
\r
1471 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingB.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingB.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",
\r
1476 "z": "ed7c1675.7a56b",
\r
1482 "id": "68a7db89.5a89fc",
\r
1483 "type": "comment",
\r
1484 "name": "TODO: FIXME",
\r
1485 "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
\r
1489 "z": "ed7c1675.7a56b",
\r
1493 "id": "1eaaa262.028326",
\r
1495 "name": "update connectivity resource in AAI",
\r
1496 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.connectivityB.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",
\r
1501 "z": "ed7c1675.7a56b",
\r
1507 "id": "71f36947.989c9",
\r
1509 "name": "set attachment_param (gfp-n) for OTN",
\r
1510 "xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",
\r
1514 "z": "ed7c1675.7a56b",
\r
1518 "id": "24508e5.8723172",
\r
1519 "type": "comment",
\r
1520 "name": "only dst ttp exists. No src",
\r
1525 "z": "ed7c1675.7a56b",
\r
1529 "id": "f3eaab4d.9a827",
\r
1530 "type": "comment",
\r
1531 "name": "only src ttp exists. No dst",
\r
1536 "z": "ed7c1675.7a56b",
\r
1540 "id": "a3a1c771.fa4dc8",
\r
1541 "type": "switchNode",
\r
1542 "name": "switch vpn-binding has src-access-ltp",
\r
1543 "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",
\r
1548 "z": "ed7c1675.7a56b",
\r
1557 "id": "5859006e.3869c8",
\r
1560 "xml": "<outcome value='Other'>\n",
\r
1565 "z": "ed7c1675.7a56b",
\r
1573 "id": "6921df6d.0bad7",
\r
1574 "type": "outcome",
\r
1576 "xml": "<outcome value=''>\n",
\r
1581 "z": "ed7c1675.7a56b",
\r
1589 "id": "6a1db5bd.d7e224",
\r
1591 "name": "block : atomic",
\r
1592 "xml": "<block atomic=\"true\">",
\r
1597 "z": "ed7c1675.7a56b",
\r
1602 "d36a1b80.8692c8",
\r
1603 "73f78d36.ab931c",
\r
1604 "8ec0e69e.0bdfb8",
\r
1610 "id": "de077050.d3ab3",
\r
1612 "name": "set attachment_param for OTN G",
\r
1613 "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingG.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingG.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingG.src-access-ltp-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingG.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-domainG' value='`$tmp.aai.vpn-bindingG.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingG.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingG.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingG.access-topology-id`' />\n",
\r
1617 "z": "ed7c1675.7a56b",
\r
1621 "id": "8ec0e69e.0bdfb8",
\r
1622 "type": "execute",
\r
1623 "name": "execute RestApiCallNode Create OTN tunnel with token",
\r
1624 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-otn-domainG-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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`\" />",
\r
1629 "z": "ed7c1675.7a56b",
\r
1632 "a8d20b89.8deb88",
\r
1638 "id": "a8d20b89.8deb88",
\r
1639 "type": "failure",
\r
1640 "name": "failure",
\r
1641 "xml": "<outcome value='failure'>\n",
\r
1646 "z": "ed7c1675.7a56b",
\r
1654 "id": "ebe8f709.819288",
\r
1655 "type": "success",
\r
1656 "name": "success",
\r
1657 "xml": "<outcome value='success'>\n",
\r
1662 "z": "ed7c1675.7a56b",
\r
1670 "id": "f56a0e73.901ac",
\r
1671 "type": "returnFailure",
\r
1672 "name": "return failure",
\r
1673 "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 OTN tunnel rest api\" />\n",
\r
1677 "z": "ed7c1675.7a56b",
\r
1681 "id": "8bcbb353.d66038",
\r
1683 "name": "block : atomic",
\r
1684 "xml": "<block atomic=\"true\">",
\r
1690 "z": "ed7c1675.7a56b",
\r
1696 "id": "d36a1b80.8692c8",
\r
1698 "name": "set pnf-name",
\r
1699 "xml": "<set>\n<parameter name='tmp.domainG.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-bindingG.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-bindingG.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-bindingG.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-bindingG.src-access-node-id`\" />\n",
\r
1703 "z": "ed7c1675.7a56b",
\r
1707 "id": "73f78d36.ab931c",
\r
1708 "type": "get-resource",
\r
1709 "name": "get-resource src pnf",
\r
1710 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domainG.pnf-name\"\n pfx='tmp.aai.domainG-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
\r
1715 "z": "ed7c1675.7a56b",
\r
1725 "id": "e0243648.484bc",
\r
1726 "type": "success",
\r
1727 "name": "success",
\r
1728 "xml": "<outcome value='success'>\n",
\r
1731 "x": 4273.5001220703125,
\r
1733 "z": "ed7c1675.7a56b",
\r
1741 "id": "e14aa09.d5d416",
\r
1742 "type": "not-found",
\r
1743 "name": "not-found",
\r
1744 "xml": "<outcome value='not-found'>\n",
\r
1747 "x": 4265.5001220703125,
\r
1749 "z": "ed7c1675.7a56b",
\r
1757 "id": "94135ed.07ea02",
\r
1760 "xml": "<block>\n",
\r
1761 "atomic": "false",
\r
1764 "x": 4417.8824462890625,
\r
1765 "y": 1075.6556701660156,
\r
1766 "z": "ed7c1675.7a56b",
\r
1774 "id": "fdedf72e.2dd36",
\r
1776 "name": "for each relationship",
\r
1777 "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",
\r
1782 "z": "ed7c1675.7a56b",
\r
1790 "id": "f99d2e19.85b668",
\r
1791 "type": "switchNode",
\r
1792 "name": "switch related-to",
\r
1793 "xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
\r
1798 "z": "ed7c1675.7a56b",
\r
1806 "id": "5447b1d0.03a8b",
\r
1809 "xml": "<outcome value='Other'>\n",
\r
1812 "x": 4270.5001220703125,
\r
1814 "z": "ed7c1675.7a56b",
\r
1822 "id": "74603a77.be9d34",
\r
1823 "type": "returnFailure",
\r
1824 "name": "return failure",
\r
1825 "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.connection-attachement.access-node-id`\" />\n\n",
\r
1827 "x": 4422.5001220703125,
\r
1829 "z": "ed7c1675.7a56b",
\r
1833 "id": "1628394b.83cd8f",
\r
1834 "type": "returnFailure",
\r
1835 "name": "return failure",
\r
1836 "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.connection-attachement.access-node-id`\" />\n\n",
\r
1838 "x": 4433.5001220703125,
\r
1840 "z": "ed7c1675.7a56b",
\r
1844 "id": "e8ac2c73.115cc",
\r
1846 "name": "set vpn-bindingG and connectivityG",
\r
1847 "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingG.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityG.' value=\"`$tmp.aai.connectivity.`\" />\n",
\r
1851 "z": "ed7c1675.7a56b",
\r
1855 "id": "ff4cc7a8.15eb18",
\r
1856 "type": "outcome",
\r
1857 "name": "esr-thirdparty-sdnc",
\r
1858 "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
\r
1863 "z": "ed7c1675.7a56b",
\r
1871 "id": "cf8a4c78.37fe58",
\r
1872 "type": "execute",
\r
1873 "name": "get esr-thirdparty-sdnc",
\r
1874 "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 = $tmp.domainG.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",
\r
1879 "z": "ed7c1675.7a56b",
\r
1883 "9337c3a8.6f7408",
\r
1889 "id": "8469558b.e4d748",
\r
1891 "name": "block : atomic",
\r
1892 "xml": "<block atomic=\"true\">",
\r
1897 "z": "ed7c1675.7a56b",
\r
1900 "82428162.54c128",
\r
1906 "id": "82428162.54c128",
\r
1908 "name": "set esr-thirdparty-sdnc domainG id",
\r
1909 "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
\r
1913 "z": "ed7c1675.7a56b",
\r
1917 "id": "44cef850.3e64a",
\r
1918 "type": "success",
\r
1919 "name": "success",
\r
1920 "xml": "<outcome value='success'>\n",
\r
1925 "z": "ed7c1675.7a56b",
\r
1933 "id": "9337c3a8.6f7408",
\r
1934 "type": "not-found",
\r
1935 "name": "not-found",
\r
1936 "xml": "<outcome value='not-found'>\n",
\r
1941 "z": "ed7c1675.7a56b",
\r
1949 "id": "6a44b1b.7cb45d",
\r
1952 "xml": "<outcome value='Other'>\n",
\r
1957 "z": "ed7c1675.7a56b",
\r
1965 "id": "a95b4d04.8ebfb",
\r
1966 "type": "returnFailure",
\r
1967 "name": "return failure",
\r
1968 "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.connection-attachement.access-node-id`\" />\n\n",
\r
1972 "z": "ed7c1675.7a56b",
\r
1976 "id": "28235dd8.9620aa",
\r
1977 "type": "returnFailure",
\r
1978 "name": "return failure",
\r
1979 "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.connection-attachement.access-node-id`\" />\n\n",
\r
1983 "z": "ed7c1675.7a56b",
\r
1987 "id": "ffb7eeb1.dda348",
\r
1990 "xml": "<block>\n",
\r
1991 "atomic": "false",
\r
1994 "x": 5739.38232421875,
\r
1995 "y": 1079.6556701660156,
\r
1996 "z": "ed7c1675.7a56b",
\r
2004 "id": "eb1ea22e.dc12c",
\r
2006 "name": "set controller domainG data",
\r
2007 "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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",
\r
2011 "z": "ed7c1675.7a56b",
\r
2015 "id": "47e1e7c7.6cadf",
\r
2016 "type": "comment",
\r
2017 "name": "both src and dst exist",
\r
2022 "z": "ed7c1675.7a56b",
\r
2026 "id": "b3842f71.731b38",
\r
2027 "type": "switchNode",
\r
2028 "name": "switch vpn-binding is not already Activated (i.e. is either Created or Modified)",
\r
2029 "xml": "<switch test=\"`$tmp.aai.vpn-binding.operational-status != 'Activated' `\">\n",
\r
2034 "z": "ed7c1675.7a56b",
\r
2043 "id": "8d3265c3.ddab38",
\r
2044 "type": "outcomeFalse",
\r
2046 "xml": "<outcome value='false'>\n",
\r
2051 "z": "ed7c1675.7a56b",
\r
2059 "id": "fe4cd4cf.21da1",
\r
2060 "type": "outcomeTrue",
\r
2062 "xml": "<outcome value='true'>\n",
\r
2067 "z": "ed7c1675.7a56b",
\r
2075 "id": "8b0dea0b.e78e98",
\r
2077 "name": "block : atomic",
\r
2078 "xml": "<block atomic=\"true\">",
\r
2083 "z": "ed7c1675.7a56b",
\r
2092 "id": "418df61.fe2be08",
\r
2096 "atomic": "false",
\r
2101 "z": "ed7c1675.7a56b",
\r
2107 "id": "5c62cbf5.952894",
\r
2109 "name": "unset tmp.aai.all-vpn-bindings",
\r
2110 "xml": "<set>\n<parameter name='tmp.aai.all-vpn-bindings.' value=\"\" />\n",
\r
2114 "z": "ed7c1675.7a56b",
\r
2118 "id": "a7fd19a0.011a5",
\r
2119 "type": "comment",
\r
2120 "name": "CLL new",
\r
2121 "info": "construct two array structures like these:\n\n${otn-tunnels-name-list[${1}].otn-tunnel-name}\n\n----------------\n${ethernet-srv-end-points-list[${1}].ethernet-end-point-name}\n${ethernet-srv-end-points-list[${1}].index-number},\n${ethernet-srv-end-points-list[${1}].eth-node-id},\n${ethernet-srv-end-points-list[${1}].eth-node-tp-id},\n${ethernet-srv-end-points-list[${1}].leafOrRootAccess}\n${ethernet-srv-end-points-list[${1}].cvlan}\n${ethernet-srv-end-points-list[${1}].CIR}\n${ethernet-srv-end-points-list[${1}].EIR}",
\r
2125 "z": "ed7c1675.7a56b",
\r
2129 "id": "41c50446.37f104",
\r
2131 "name": "set leaf-otn-tunnels-list array",
\r
2132 "xml": "<set>\n<parameter name='`leaf-tunnels-list[$leaftunsidx].tunnel-name`' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='`leaf-tunnels-list[$leaftunsidx].vpn-id`' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='`leaf-tunnels-list_length`' value='`$leaftunsidx + 1`' />\n",
\r
2136 "z": "ed7c1675.7a56b",
\r
2140 "id": "4957906b.cb3908",
\r
2142 "name": "unset leaf-otn-tunnels-list array",
\r
2143 "xml": "<set>\n<parameter name='`leaf-tunnels-list.`' value='' />\n<parameter name='`leaf-tunnels-list_length`' value='0' />\n<parameter name='`leaftunsidx`' value='0' />\n",
\r
2147 "z": "ed7c1675.7a56b",
\r
2151 "id": "5277b309.13aef4",
\r
2152 "type": "comment",
\r
2153 "name": "CLL new",
\r
2154 "info": "construct two array structures like these:\n\n${otn-tunnels-name-list[${1}].otn-tunnel-name}\n\n----------------\n${ethernet-srv-end-points-list[${1}].ethernet-end-point-name}\n${ethernet-srv-end-points-list[${1}].index-number},\n${ethernet-srv-end-points-list[${1}].eth-node-id},\n${ethernet-srv-end-points-list[${1}].eth-node-tp-id},\n${ethernet-srv-end-points-list[${1}].leafOrRootAccess}\n${ethernet-srv-end-points-list[${1}].cvlan}\n${ethernet-srv-end-points-list[${1}].CIR}\n${ethernet-srv-end-points-list[${1}].EIR}",
\r
2158 "z": "ed7c1675.7a56b",
\r
2162 "id": "51d22e16.357968",
\r
2164 "name": "set root-otn-tunnels-list array",
\r
2165 "xml": "<set>\n<parameter name='`root-tunnels-list[$roottunsidx].tunnel-name`' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='`root-tunnels-list[$roottunsidx].vpn-id`' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='`root-tunnels-list_length`' value='`$roottunsidx + 1`' />\n",
\r
2169 "z": "ed7c1675.7a56b",
\r
2173 "id": "8191f581.e3e888",
\r
2175 "name": "unset root-otn-tunnels-list array",
\r
2176 "xml": "<set>\n<parameter name='`root-tunnels-list.`' value='' />\n<parameter name='`root-tunnels-list_length`' value='0' />\n<parameter name='`roottunsidx`' value='0' />\n",
\r
2180 "z": "ed7c1675.7a56b",
\r
2184 "id": "25a3d5e5.55ea62",
\r
2185 "type": "execute",
\r
2186 "name": "execute properties",
\r
2187 "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' />",
\r
2192 "z": "ed7c1675.7a56b",
\r
2198 "id": "624a734b.81957c",
\r
2200 "name": "get service-instance from aai",
\r
2201 "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--$vnf-topology-operation-input.service-information.service-instance-id-->",
\r
2206 "z": "ed7c1675.7a56b",
\r
2209 "2ff4bd45.763852",
\r
2210 "237ce68a.9b5a2a",
\r
2216 "id": "2ff4bd45.763852",
\r
2217 "type": "success",
\r
2218 "name": "success",
\r
2219 "xml": "<outcome value='success'>\n",
\r
2224 "z": "ed7c1675.7a56b",
\r
2232 "id": "237ce68a.9b5a2a",
\r
2233 "type": "not-found",
\r
2234 "name": "not-found",
\r
2235 "xml": "<outcome value='not-found'>\n",
\r
2238 "x": 469.490966796875,
\r
2239 "y": 682.5740356445312,
\r
2240 "z": "ed7c1675.7a56b",
\r
2248 "id": "86bae4d8.c51f3",
\r
2249 "type": "failure",
\r
2250 "name": "failure",
\r
2251 "xml": "<outcome value='failure'>\n",
\r
2256 "z": "ed7c1675.7a56b",
\r
2264 "id": "2f347c57.a92144",
\r
2266 "name": "for each relationship",
\r
2267 "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",
\r
2272 "z": "ed7c1675.7a56b",
\r
2280 "id": "196b18f9.87f4a7",
\r
2281 "type": "returnFailure",
\r
2282 "name": "return failure",
\r
2283 "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",
\r
2285 "x": 623.0623779296875,
\r
2286 "y": 685.8597717285156,
\r
2287 "z": "ed7c1675.7a56b",
\r
2291 "id": "d6f02bd7.9f988",
\r
2292 "type": "returnFailure",
\r
2293 "name": "return failure",
\r
2294 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
2298 "z": "ed7c1675.7a56b",
\r
2302 "id": "408bfafb.b2f244",
\r
2303 "type": "switchNode",
\r
2304 "name": "switch related-to",
\r
2305 "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",
\r
2308 "x": 880.33349609375,
\r
2309 "y": 635.9999389648438,
\r
2310 "z": "ed7c1675.7a56b",
\r
2318 "id": "7d8f8b2e.4aa30c",
\r
2319 "type": "outcome",
\r
2320 "name": "connectivity",
\r
2321 "xml": "<outcome value='connectivity'>\n",
\r
2324 "x": 1081.0001335144043,
\r
2325 "y": 637.000020980835,
\r
2326 "z": "ed7c1675.7a56b",
\r
2334 "id": "bd2be559.7e491",
\r
2336 "name": "get connectivity from aai",
\r
2337 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",
\r
2342 "z": "ed7c1675.7a56b",
\r
2346 "afdba634.5389a8",
\r
2352 "id": "97323d62.80248",
\r
2353 "type": "success",
\r
2354 "name": "success",
\r
2355 "xml": "<outcome value='success'>\n",
\r
2360 "z": "ed7c1675.7a56b",
\r
2368 "id": "afdba634.5389a8",
\r
2369 "type": "not-found",
\r
2370 "name": "not-found",
\r
2371 "xml": "<outcome value='not-found'>\n",
\r
2374 "x": 419.490966796875,
\r
2375 "y": 908.5740356445312,
\r
2376 "z": "ed7c1675.7a56b",
\r
2384 "id": "c784d901.2500c8",
\r
2385 "type": "failure",
\r
2386 "name": "failure",
\r
2387 "xml": "<outcome value='failure'>\n",
\r
2392 "z": "ed7c1675.7a56b",
\r
2400 "id": "f09199a5.a037f",
\r
2401 "type": "returnFailure",
\r
2402 "name": "return failure",
\r
2403 "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",
\r
2405 "x": 582.0623779296875,
\r
2406 "y": 908.8597717285156,
\r
2407 "z": "ed7c1675.7a56b",
\r
2411 "id": "a903bba8.c7f45",
\r
2412 "type": "returnFailure",
\r
2413 "name": "return failure",
\r
2414 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
2418 "z": "ed7c1675.7a56b",
\r
2422 "id": "c4e5acdc.5eea4",
\r
2424 "name": "for each relationship",
\r
2425 "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
\r
2430 "z": "ed7c1675.7a56b",
\r
2438 "id": "f2e2cc22.a529f",
\r
2439 "type": "switchNode",
\r
2440 "name": "switch related-to",
\r
2441 "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
\r
2446 "z": "ed7c1675.7a56b",
\r
2454 "id": "c09b72f6.aeae98",
\r
2455 "type": "outcome",
\r
2457 "xml": "<outcome value='uni'>\n",
\r
2462 "z": "ed7c1675.7a56b",
\r
2470 "id": "bfe2cfaf.5416a",
\r
2472 "name": "block : atomic",
\r
2473 "xml": "<block atomic=\"true\">",
\r
2478 "z": "ed7c1675.7a56b",
\r
2481 "ed44bd0b.bb6278",
\r
2483 "785dd3f1.f249ac",
\r
2490 "id": "85af841c.633c5",
\r
2492 "name": "unset tmp.aai.uni",
\r
2493 "xml": "<set>\n<parameter name='tmp.aai.uni.' value='' />\n",
\r
2497 "z": "ed7c1675.7a56b",
\r
2501 "id": "ed44bd0b.bb6278",
\r
2503 "name": "get uni from aai",
\r
2504 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"uni\"\n\t key=\"uni.id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.uni\" >\n",
\r
2509 "z": "ed7c1675.7a56b",
\r
2513 "7343128c.f923b4",
\r
2519 "id": "7343128c.f923b4",
\r
2520 "type": "not-found",
\r
2521 "name": "not-found",
\r
2522 "xml": "<outcome value='not-found'>\n",
\r
2525 "x": 1484.490966796875,
\r
2526 "y": 1429.573974609375,
\r
2527 "z": "ed7c1675.7a56b",
\r
2535 "id": "b9b05d3.e5ae12",
\r
2536 "type": "failure",
\r
2537 "name": "failure",
\r
2538 "xml": "<outcome value='failure'>\n",
\r
2542 "y": 1473.9999389648438,
\r
2543 "z": "ed7c1675.7a56b",
\r
2551 "id": "5dcee0f6.9162a8",
\r
2552 "type": "returnFailure",
\r
2553 "name": "return failure",
\r
2554 "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",
\r
2557 "y": 1428.8596801757812,
\r
2558 "z": "ed7c1675.7a56b",
\r
2562 "id": "b7ed6a74.25237",
\r
2563 "type": "returnFailure",
\r
2564 "name": "return failure",
\r
2565 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
2568 "y": 1473.9999389648438,
\r
2569 "z": "ed7c1675.7a56b",
\r
2573 "id": "dfdfa822.c47e1",
\r
2575 "name": "block : atomic",
\r
2576 "xml": "<block atomic=\"true\">",
\r
2580 "y": 1520.9999389648438,
\r
2581 "z": "ed7c1675.7a56b",
\r
2587 "id": "6b32d7eb.72211",
\r
2588 "type": "success",
\r
2589 "name": "success",
\r
2590 "xml": "<outcome value='success'>\n",
\r
2594 "y": 1520.9999389648438,
\r
2595 "z": "ed7c1675.7a56b",
\r
2603 "id": "9ed7a6be.5472c",
\r
2604 "type": "switchNode",
\r
2605 "name": "switch conn type",
\r
2606 "xml": "<switch test=\"`$tmp.aai.connectivity.vpn-type`\">\n\n",
\r
2611 "z": "ed7c1675.7a56b",
\r
2614 "3e9a846b.aac024",
\r
2615 "fd2eac9f.aa3be8",
\r
2621 "id": "3d4d11fc.e19976",
\r
2625 "atomic": "false",
\r
2630 "z": "ed7c1675.7a56b",
\r
2636 "id": "3e9a846b.aac024",
\r
2637 "type": "outcome",
\r
2639 "xml": "<outcome value='leaf'>\n",
\r
2644 "z": "ed7c1675.7a56b",
\r
2652 "id": "fd2eac9f.aa3be8",
\r
2653 "type": "outcome",
\r
2655 "xml": "<outcome value='root'>\n",
\r
2660 "z": "ed7c1675.7a56b",
\r
2668 "id": "81d85b97.ec18c",
\r
2671 "xml": "<outcome value='Other'>\n",
\r
2676 "z": "ed7c1675.7a56b",
\r
2684 "id": "17f45567.72d3f3",
\r
2685 "type": "comment",
\r
2686 "name": "CLL new",
\r
2687 "info": "construct two array structures like these:\n\n${otn-tunnels-name-list[${1}].otn-tunnel-name}\n\n----------------\n${ethernet-srv-end-points-list[${1}].ethernet-end-point-name}\n${ethernet-srv-end-points-list[${1}].index-number},\n${ethernet-srv-end-points-list[${1}].eth-node-id},\n${ethernet-srv-end-points-list[${1}].eth-node-tp-id},\n${ethernet-srv-end-points-list[${1}].leafOrRootAccess}\n${ethernet-srv-end-points-list[${1}].cvlan}\n${ethernet-srv-end-points-list[${1}].CIR}\n${ethernet-srv-end-points-list[${1}].EIR}",
\r
2691 "z": "ed7c1675.7a56b",
\r
2695 "id": "785dd3f1.f249ac",
\r
2697 "name": "set ethernet-srv-end-points-list array",
\r
2698 "xml": "<set>\n<!--<parameter name='`ethernet-srv-end-points-list[$epidx].ethernet-end-point-name`' value='`$tmp.aai.connectivity.connectivity-id`' />-->\n<parameter name='`ethernet-srv-end-points-list[$epidx].ethernet-end-point-name`' value='`$tmp.aai.uni.id`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].index-number`' value='0' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].eth-node-id`' value='`$tmp.uni-node-id-short`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].eth-node-tp-id`' value='`$tmp.aai.uni.tp-id`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].leafOrRootAccess`' value='`$leafOrRootAccess`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].cvlan`' value='`$tmp.aai.connectivity.cvlan`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].CIR`' value='`$tmp.aai.uni.data-source * 1000000`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].EIR`' value='`$tmp.aai.uni.data-source * 1000000`' />\n\n<parameter name='`ethernet-srv-end-points-list_length`' value='`$epidx + 1`' />\n",
\r
2702 "z": "ed7c1675.7a56b",
\r
2706 "id": "a8f57470.dafb1",
\r
2710 "atomic": "false",
\r
2715 "z": "ed7c1675.7a56b",
\r
2718 "6d0b5941.55c8f8",
\r
2720 "3e47dbd3.f7afc4",
\r
2723 "d142c0f2.700e98",
\r
2725 "3026fc23.0fd5f4",
\r
2726 "f24a5646.1c02c8",
\r
2727 "db09832f.86c758",
\r
2728 "3c14b8ea.b96268",
\r
2734 "id": "186f4361.0093b5",
\r
2738 "atomic": "false",
\r
2743 "z": "ed7c1675.7a56b",
\r
2747 "b5d90017.45ce98",
\r
2751 "d142c0f2.700e98",
\r
2753 "3026fc23.0fd5f4",
\r
2754 "f24a5646.1c02c8",
\r
2755 "db09832f.86c758",
\r
2756 "3c14b8ea.b96268",
\r
2762 "id": "b5d90017.45ce98",
\r
2764 "name": "unset ethernet-srv-end-points-list",
\r
2765 "xml": "<set>\n<parameter name='`ethernet-srv-end-points-list.`' value='' />\n<parameter name='`ethernet-srv-end-points-list_length`' value='0' />\n<parameter name='`epidx`' value='0' />",
\r
2769 "z": "ed7c1675.7a56b",
\r
2773 "id": "6d0b5941.55c8f8",
\r
2775 "name": "unset ethernet-srv-end-points-list",
\r
2776 "xml": "<set>\n<parameter name='`ethernet-srv-end-points-list.`' value='' />\n<parameter name='`ethernet-srv-end-points-list_length`' value='0' />\n<parameter name='`epidx`' value='0' />",
\r
2780 "z": "ed7c1675.7a56b",
\r
2784 "id": "c378a6a3.2e4c8",
\r
2786 "name": "for each relationship",
\r
2787 "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
\r
2792 "z": "ed7c1675.7a56b",
\r
2800 "id": "3613e1a4.3cd206",
\r
2801 "type": "switchNode",
\r
2802 "name": "switch related-to",
\r
2803 "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
\r
2808 "z": "ed7c1675.7a56b",
\r
2816 "id": "c46d21fc.7c5088",
\r
2817 "type": "outcome",
\r
2818 "name": "vpn-binding",
\r
2819 "xml": "<outcome value='vpn-binding'>\n",
\r
2824 "z": "ed7c1675.7a56b",
\r
2832 "id": "41d3d62e.c810a8",
\r
2834 "name": "block : atomic",
\r
2835 "xml": "<block atomic=\"true\">",
\r
2840 "z": "ed7c1675.7a56b",
\r
2843 "24bb38a6.cf0a88",
\r
2849 "id": "80203aa0.6c8a6",
\r
2851 "name": "unset tmp.aai.vpn-binding",
\r
2852 "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",
\r
2856 "z": "ed7c1675.7a56b",
\r
2860 "id": "24bb38a6.cf0a88",
\r
2862 "name": "get vpn-binding from aai",
\r
2863 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",
\r
2868 "z": "ed7c1675.7a56b",
\r
2871 "e7df9a86.a02dd8",
\r
2878 "id": "d754cb82.42f37",
\r
2879 "type": "not-found",
\r
2880 "name": "not-found",
\r
2881 "xml": "<outcome value='not-found'>\n",
\r
2884 "x": 659.490966796875,
\r
2885 "y": 1891.5740356445312,
\r
2886 "z": "ed7c1675.7a56b",
\r
2894 "id": "80509f91.59bce8",
\r
2895 "type": "failure",
\r
2896 "name": "failure",
\r
2897 "xml": "<outcome value='failure'>\n",
\r
2902 "z": "ed7c1675.7a56b",
\r
2910 "id": "e7df9a86.a02dd8",
\r
2911 "type": "success",
\r
2912 "name": "success",
\r
2913 "xml": "<outcome value='success'>\n",
\r
2918 "z": "ed7c1675.7a56b",
\r
2926 "id": "31b91fbf.39fff8",
\r
2927 "type": "returnFailure",
\r
2928 "name": "return failure",
\r
2929 "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",
\r
2932 "y": 1890.8597412109375,
\r
2933 "z": "ed7c1675.7a56b",
\r
2937 "id": "312541a.87b29be",
\r
2938 "type": "returnFailure",
\r
2939 "name": "return failure",
\r
2940 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
2944 "z": "ed7c1675.7a56b",
\r
2948 "id": "f19203b2.563a88",
\r
2950 "name": "block : atomic",
\r
2951 "xml": "<block atomic=\"true\">",
\r
2956 "z": "ed7c1675.7a56b",
\r
2959 "70164d90.2f08c4",
\r
2965 "id": "b2e88ff.3380b7",
\r
2967 "name": "set sotn_value",
\r
2968 "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivity.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivity.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivity.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivity.access-topology-id`' />\n<!--<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />-->\n<!--<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<!--<parameter name='index-number' value='0' />-->\n<!--<parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />-->\n<!--<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />-->\n<!--<parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />-->\n<!--<parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />-->\n",
\r
2972 "z": "ed7c1675.7a56b",
\r
2976 "id": "3026fc23.0fd5f4",
\r
2977 "type": "execute",
\r
2978 "name": "execute RestApiCallNode Create ethernet Service without token",
\r
2979 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-ethernet-service-loop.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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",
\r
2984 "z": "ed7c1675.7a56b",
\r
2987 "a9d1707f.7a88c8",
\r
2993 "id": "a9d1707f.7a88c8",
\r
2994 "type": "failure",
\r
2995 "name": "failure",
\r
2996 "xml": "<outcome value='failure'>\n",
\r
3001 "z": "ed7c1675.7a56b",
\r
3007 "id": "8ab460b7.633638",
\r
3008 "type": "success",
\r
3009 "name": "success",
\r
3010 "xml": "<outcome value='success'>\n",
\r
3015 "z": "ed7c1675.7a56b",
\r
3023 "id": "a1d8045c.1b61e8",
\r
3024 "type": "returnFailure",
\r
3025 "name": "return failure",
\r
3026 "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 ethernet service rest api\" />\n",
\r
3030 "z": "ed7c1675.7a56b",
\r
3034 "id": "7ddc0654.bb96f8",
\r
3036 "name": "block : atomic",
\r
3037 "xml": "<block atomic=\"true\">",
\r
3043 "z": "ed7c1675.7a56b",
\r
3051 "id": "cee3e55d.189dc",
\r
3053 "name": "update vpn-binding resource (aka. OTN ) in AAI",
\r
3054 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",
\r
3059 "z": "ed7c1675.7a56b",
\r
3065 "id": "bb915427.f0582",
\r
3066 "type": "comment",
\r
3067 "name": "TODO: FIXME",
\r
3068 "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
\r
3072 "z": "ed7c1675.7a56b",
\r
3076 "id": "1eddd66c.da478a",
\r
3078 "name": "update connectivity resource in AAI",
\r
3079 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",
\r
3084 "z": "ed7c1675.7a56b",
\r
3090 "id": "913d2a70.ccfd3",
\r
3092 "name": "set leafOrRootAccess",
\r
3093 "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:leaf-access' />\n",
\r
3097 "z": "ed7c1675.7a56b",
\r
3101 "id": "3e47dbd3.f7afc4",
\r
3103 "name": "set leafOrRootAccess",
\r
3104 "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:root-primary' />\n",
\r
3108 "z": "ed7c1675.7a56b",
\r
3112 "id": "e5881b35.2a2bf8",
\r
3114 "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",
\r
3115 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingA.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingA.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",
\r
3120 "z": "ed7c1675.7a56b",
\r
3126 "id": "4004366.ff0b5c8",
\r
3128 "name": "update vpn-binding G resource (aka. OTN domainA) in AAI",
\r
3129 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingG.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingG.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingG.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",
\r
3134 "z": "ed7c1675.7a56b",
\r
3140 "id": "8caebf31.dc028",
\r
3142 "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",
\r
3143 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingB.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingB.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",
\r
3148 "z": "ed7c1675.7a56b",
\r
3154 "id": "dc950dad.bba8c8",
\r
3155 "type": "switchNode",
\r
3156 "name": "switch connectivity is not already Activated (i.e. is either Created or Modified)",
\r
3157 "xml": "<switch test=\"`$tmp.aai.connectivity.operational-status != 'Activated' `\">\n",
\r
3162 "z": "ed7c1675.7a56b",
\r
3171 "id": "28d7875f.122df",
\r
3172 "type": "outcomeTrue",
\r
3174 "xml": "<outcome value='true'>\n",
\r
3179 "z": "ed7c1675.7a56b",
\r
3187 "id": "47ffeb93.7b808c",
\r
3188 "type": "outcomeFalse",
\r
3190 "xml": "<outcome value='false'>\n",
\r
3195 "z": "ed7c1675.7a56b",
\r
3203 "id": "f3fb6a94.133bb",
\r
3205 "name": "block : atomic",
\r
3206 "xml": "<block atomic=\"true\">",
\r
3211 "z": "ed7c1675.7a56b",
\r
3219 "id": "3da0dc2.736e6a4",
\r
3223 "atomic": "false",
\r
3228 "z": "ed7c1675.7a56b",
\r
3234 "id": "ca01ca51.23bb98",
\r
3236 "name": "unset tmp.aai.vpn-binding",
\r
3237 "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"\" />\n",
\r
3241 "z": "ed7c1675.7a56b",
\r
3245 "id": "6ccc1a6d.d89cd4",
\r
3247 "name": "set root-otn-tunnels-list array",
\r
3248 "xml": "<set>\n<parameter name='`roottunsidx`' value='`$roottunsidx + 1`' />\n",
\r
3252 "z": "ed7c1675.7a56b",
\r
3256 "id": "ceaa1f2c.697ad",
\r
3258 "name": "set leaf-otn-tunnels-list array",
\r
3259 "xml": "<set>\n<parameter name='`leaftunsidx`' value='`$leaftunsidx + 1`' />\n",
\r
3263 "z": "ed7c1675.7a56b",
\r
3267 "id": "b8d52cff.f0dcb",
\r
3269 "name": "set ethernet-srv-end-points-list array",
\r
3270 "xml": "<set>\n<parameter name='`epidx`' value='`$epidx + 1`' />\n",
\r
3274 "z": "ed7c1675.7a56b",
\r
3278 "id": "901c32b.8d67fd",
\r
3280 "name": "set filename",
\r
3281 "xml": "<set>\n<parameter name='filenameclleths' value=\"`$leafOrRootAccess + $tmp.aai.connectivity.access-node-id`\" />",
\r
3285 "z": "ed7c1675.7a56b",
\r
3289 "id": "d142c0f2.700e98",
\r
3290 "type": "execute",
\r
3291 "name": "execute printContext",
\r
3292 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n <parameter name=\"filename\" value=\"`$filenameclleths`\" />\n",
\r
3297 "z": "ed7c1675.7a56b",
\r
3303 "id": "70164d90.2f08c4",
\r
3305 "name": "set otn-tunnels-name-list array",
\r
3306 "xml": "<set>\n<parameter name='`otn-tunnels-name-list[$otntunsidx].otn-tunnel-name`' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='`otn-tunnels-name-list[$otntunsidx].vpn-id`' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='`otn-tunnels-name-list_length`' value='`$otntunsidx + 1`' />\n",
\r
3310 "z": "ed7c1675.7a56b",
\r
3314 "id": "27824a25.86f05e",
\r
3316 "name": "set otn-tunnels-name-list array",
\r
3317 "xml": "<set>\n<parameter name='`otntunsidx`' value='`$otntunsidx + 1`' />\n",
\r
3321 "z": "ed7c1675.7a56b",
\r
3325 "id": "f24a5646.1c02c8",
\r
3327 "name": "unset otn-tunnels-name-list array",
\r
3328 "xml": "<set>\n<parameter name='`otn-tunnels-name-list.`' value='' />\n<parameter name='`otn-tunnels-name-list_length`' value='0' />\n<parameter name='`otntunsidx`' value='0' />\n",
\r
3332 "z": "ed7c1675.7a56b",
\r
3336 "id": "db09832f.86c758",
\r
3338 "name": "set filename",
\r
3339 "xml": "<set>\n<parameter name='filenamecllotns' value=\"`leafrootOTNtunnelnames`\" />",
\r
3343 "z": "ed7c1675.7a56b",
\r
3347 "id": "3c14b8ea.b96268",
\r
3348 "type": "execute",
\r
3349 "name": "execute printContext",
\r
3350 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n <parameter name=\"filename\" value=\"`$filenamecllotns`\" />\n",
\r
3355 "z": "ed7c1675.7a56b",
\r
3361 "id": "4915b2e4.5fd2dc",
\r
3362 "type": "execute",
\r
3363 "name": "execute split tp-id to get pnf-name",
\r
3364 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.uni.id`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-uni\"/>\n\n",
\r
3369 "z": "ed7c1675.7a56b",
\r
3378 "id": "9b18409e.c203c8",
\r
3379 "type": "failure",
\r
3380 "name": "success",
\r
3381 "xml": "<outcome value='success'>\n",
\r
3386 "z": "ed7c1675.7a56b",
\r
3394 "id": "bfcf3bba.b5daa",
\r
3395 "type": "failure",
\r
3396 "name": "failure",
\r
3397 "xml": "<outcome value='failure'>\n",
\r
3402 "z": "ed7c1675.7a56b",
\r
3410 "id": "5afaf397.e20c3c",
\r
3412 "name": "block : atomic",
\r
3413 "xml": "<block atomic=\"true\">",
\r
3418 "z": "ed7c1675.7a56b",
\r
3426 "id": "f7de9867.a0fd38",
\r
3427 "type": "returnFailure",
\r
3428 "name": "return failure",
\r
3429 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
\r
3433 "z": "ed7c1675.7a56b",
\r
3437 "id": "cdcfe3c8.962368",
\r
3439 "name": "set tmp.uni-node-id-short",
\r
3440 "xml": "<set>\n<parameter name='tmp.uni-node-id-short' value='`$param-prefix-uni[$param-prefix-uni_length -3]`' />\n",
\r
3444 "z": "ed7c1675.7a56b",
\r
3448 "id": "6d07bcb7.ffff34",
\r
3449 "type": "outcome",
\r
3450 "name": "esr-thirdparty-sdnc",
\r
3451 "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
\r
3456 "z": "ed7c1675.7a56b",
\r
3464 "id": "261f721d.19cda6",
\r
3465 "type": "execute",
\r
3466 "name": "get esr-thirdparty-sdnc",
\r
3467 "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 = $tmp.domainConn.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainConn.esr-thirdparty-sdnc' local-only='false' >",
\r
3472 "z": "ed7c1675.7a56b",
\r
3476 "d7202a06.97a2a8",
\r
3482 "id": "9547fb43.8165f",
\r
3484 "name": "block : atomic",
\r
3485 "xml": "<block atomic=\"true\">",
\r
3490 "z": "ed7c1675.7a56b",
\r
3493 "9b0cdae9.5834e8",
\r
3499 "id": "9b0cdae9.5834e8",
\r
3501 "name": "set esr-thirdparty-sdnc domainConn id",
\r
3502 "xml": "<set>\n<parameter name='tmp.domainConn.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
\r
3506 "z": "ed7c1675.7a56b",
\r
3510 "id": "a4fad359.d63e7",
\r
3511 "type": "success",
\r
3512 "name": "success",
\r
3513 "xml": "<outcome value='success'>\n",
\r
3518 "z": "ed7c1675.7a56b",
\r
3526 "id": "d7202a06.97a2a8",
\r
3527 "type": "not-found",
\r
3528 "name": "not-found",
\r
3529 "xml": "<outcome value='not-found'>\n",
\r
3534 "z": "ed7c1675.7a56b",
\r
3542 "id": "d2a1d22e.b2ed6",
\r
3545 "xml": "<outcome value='Other'>\n",
\r
3550 "z": "ed7c1675.7a56b",
\r
3558 "id": "fe7bb44f.f58b7",
\r
3559 "type": "returnFailure",
\r
3560 "name": "return failure",
\r
3561 "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.connection-attachement.access-node-id`\" />\n\n",
\r
3565 "z": "ed7c1675.7a56b",
\r
3569 "id": "15f2754c.6e5b2b",
\r
3570 "type": "returnFailure",
\r
3571 "name": "return failure",
\r
3572 "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.connection-attachement.access-node-id`\" />\n\n",
\r
3576 "z": "ed7c1675.7a56b",
\r
3580 "id": "ce2ed097.248ac",
\r
3583 "xml": "<block>\n",
\r
3584 "atomic": "false",
\r
3587 "x": 2223.38232421875,
\r
3588 "y": 2321.6556701660156,
\r
3589 "z": "ed7c1675.7a56b",
\r
3597 "id": "1c2a2a5a.6d8256",
\r
3599 "name": "set controller domainConn data",
\r
3600 "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainConn.url' value=\"`$tmp.aai.domainConn.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainConn.user' value=\"`$tmp.aai.domainConn.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainConn.password' value=\"`$tmp.aai.domainConn.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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",
\r
3604 "z": "ed7c1675.7a56b",
\r
3608 "id": "9710382e.112c58",
\r
3609 "type": "get-resource",
\r
3610 "name": "get-resource src pnf",
\r
3611 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.pnf-name-forUrl\"\n pfx='tmp.aai.source-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
\r
3616 "z": "ed7c1675.7a56b",
\r
3619 "afc311a9.64a498",
\r
3620 "1b364ee.7270531",
\r
3626 "id": "afc311a9.64a498",
\r
3627 "type": "success",
\r
3628 "name": "success",
\r
3629 "xml": "<outcome value='success'>\n",
\r
3632 "x": 757.5001220703125,
\r
3634 "z": "ed7c1675.7a56b",
\r
3642 "id": "1b364ee.7270531",
\r
3643 "type": "not-found",
\r
3644 "name": "not-found",
\r
3645 "xml": "<outcome value='not-found'>\n",
\r
3648 "x": 749.5001220703125,
\r
3650 "z": "ed7c1675.7a56b",
\r
3658 "id": "7cd619d5.a4e8c",
\r
3661 "xml": "<block>\n",
\r
3662 "atomic": "false",
\r
3665 "x": 901.8824462890625,
\r
3666 "y": 2317.6556701660156,
\r
3667 "z": "ed7c1675.7a56b",
\r
3675 "id": "fd5a5a0.ad9b128",
\r
3677 "name": "for each relationship",
\r
3678 "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",
\r
3683 "z": "ed7c1675.7a56b",
\r
3691 "id": "8c513405.b809e8",
\r
3692 "type": "switchNode",
\r
3693 "name": "switch related-to",
\r
3694 "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
\r
3699 "z": "ed7c1675.7a56b",
\r
3707 "id": "aa64b78b.7ab17",
\r
3710 "xml": "<outcome value='Other'>\n",
\r
3713 "x": 754.5001220703125,
\r
3715 "z": "ed7c1675.7a56b",
\r
3723 "id": "22a641d1.a7babe",
\r
3724 "type": "returnFailure",
\r
3725 "name": "return failure",
\r
3726 "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.connection-attachement.access-node-id`\" />\n\n",
\r
3728 "x": 906.5001220703125,
\r
3730 "z": "ed7c1675.7a56b",
\r
3734 "id": "7127ee10.2a0b4",
\r
3735 "type": "returnFailure",
\r
3736 "name": "return failure",
\r
3737 "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.connection-attachement.access-node-id`\" />\n\n",
\r
3739 "x": 917.5001220703125,
\r
3741 "z": "ed7c1675.7a56b",
\r
3745 "id": "41c682cf.a83f2c",
\r
3747 "name": "set tmp.pnf-name-forUrl",
\r
3748 "xml": "<set>\n\n<parameter name='tmp.pnf-name-forUrl' value=\"`'networkId-providerId-' +\n $tmp.aai.connectivity.access-provider-id + '-clientId-' +\n $tmp.aai.connectivity.access-client-id + '-topologyId-' +\n $tmp.aai.connectivity.access-topology-id + '-nodeId-' +\n $tmp.aai.connectivity.access-node-id`\" />\n",
\r
3752 "z": "ed7c1675.7a56b",
\r
3756 "id": "c7cb304b.f39168",
\r
3758 "name": "block : atomic",
\r
3759 "xml": "<block atomic=\"true\">",
\r
3765 "z": "ed7c1675.7a56b",
\r
3768 "41c682cf.a83f2c",
\r
3774 "id": "d390d070.3dc4c",
\r
3775 "type": "comment",
\r
3776 "name": "Temporary skipping this check - to support multiple instances in one slice",
\r
3779 "x": 1511.9666748046875,
\r
3780 "y": 226.88333129882812,
\r
3781 "z": "ed7c1675.7a56b",
\r