3 "id": "d35e2da9.70a7e",
\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": "5a4cb919.dfff38",
\r
21 "id": "88d19ab1.10b18",
\r
24 "xml": "<outcome value='success'>\n",
\r
29 "z": "5a4cb919.dfff38",
\r
37 "id": "8fd12759.af6e18",
\r
38 "type": "not-found",
\r
39 "name": "not-found",
\r
40 "xml": "<outcome value='not-found'>\n",
\r
43 "x": 567.4909362792969,
\r
44 "y": 361.57403564453125,
\r
45 "z": "5a4cb919.dfff38",
\r
51 "id": "50405d21.7eae84",
\r
54 "xml": "<outcome value='failure'>\n",
\r
59 "z": "5a4cb919.dfff38",
\r
67 "id": "d472199a.beff9",
\r
69 "name": "block : atomic",
\r
70 "xml": "<block atomic=\"true\">",
\r
75 "z": "5a4cb919.dfff38",
\r
83 "id": "f306805a.38d6f8",
\r
85 "name": "for vpnidx in all-vpn-bindings",
\r
86 "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",
\r
91 "z": "5a4cb919.dfff38",
\r
99 "id": "4a920666.d84d68",
\r
101 "name": "block : atomic",
\r
102 "xml": "<block atomic='true'>",
\r
108 "z": "5a4cb919.dfff38",
\r
116 "id": "841ae1dd.49d178",
\r
117 "type": "switchNode",
\r
118 "name": "switch vpnuuid is for this slice",
\r
119 "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
124 "z": "5a4cb919.dfff38",
\r
133 "id": "98ef6cc.4725e9",
\r
134 "type": "outcomeTrue",
\r
136 "xml": "<outcome value='true'>\n",
\r
141 "z": "5a4cb919.dfff38",
\r
149 "id": "ab42fe03.c49e3",
\r
150 "type": "outcomeFalse",
\r
152 "xml": "<outcome value='false'>\n",
\r
157 "z": "5a4cb919.dfff38",
\r
163 "id": "fc848cba.fc33d8",
\r
165 "name": "block : atomic",
\r
166 "xml": "<block atomic='true'>",
\r
172 "z": "5a4cb919.dfff38",
\r
182 "id": "524dbe59.8ef8f",
\r
188 "z": "5a4cb919.dfff38",
\r
196 "id": "320667fa.12a2c",
\r
197 "type": "service-logic",
\r
198 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
199 "module": "GENERIC-RESOURCE-API",
\r
200 "version": "${project.version}",
\r
202 "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
204 "x": 475.2856903076172,
\r
205 "y": 108.23810863494873,
\r
206 "z": "5a4cb919.dfff38",
\r
214 "id": "aa006c98.f12b58",
\r
216 "name": "method cll-vnf-topology-operation-cll-F1-Activate",
\r
217 "xml": "<method rpc='cll-vnf-topology-operation-cll-F1-Activate' mode='sync'>\n",
\r
220 "x": 481.42860412597656,
\r
221 "y": 193.00003051757812,
\r
222 "z": "5a4cb919.dfff38",
\r
230 "id": "72fe4a66.39584c",
\r
232 "name": "block : atomic",
\r
233 "xml": "<block atomic=\"true\">",
\r
236 "x": 791.238037109375,
\r
237 "y": 184.66668701171875,
\r
238 "z": "5a4cb919.dfff38",
\r
250 "id": "53692e4a.48cde",
\r
252 "name": "set tmp.aai.vpn-binding",
\r
253 "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`\" />\n",
\r
257 "z": "5a4cb919.dfff38",
\r
261 "id": "123fcc82.b79ae3",
\r
263 "name": "set attachment_param for OTN A",
\r
264 "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
268 "z": "5a4cb919.dfff38",
\r
272 "id": "e308a3a2.af826",
\r
274 "name": "execute RestApiCallNode Create OTN tunnel with token",
\r
275 "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
280 "z": "5a4cb919.dfff38",
\r
289 "id": "fedd6b9.d7f3318",
\r
292 "xml": "<outcome value='failure'>\n",
\r
297 "z": "5a4cb919.dfff38",
\r
305 "id": "39581c20.edb614",
\r
308 "xml": "<outcome value='success'>\n",
\r
313 "z": "5a4cb919.dfff38",
\r
321 "id": "c49081cf.377c78",
\r
322 "type": "returnFailure",
\r
323 "name": "return failure",
\r
324 "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
328 "z": "5a4cb919.dfff38",
\r
332 "id": "9c0572a4.3a997",
\r
334 "name": "block : atomic",
\r
335 "xml": "<block atomic=\"true\">",
\r
341 "z": "5a4cb919.dfff38",
\r
347 "id": "2d297001.689a7",
\r
349 "name": "set sotn_value",
\r
350 "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
354 "z": "5a4cb919.dfff38",
\r
358 "id": "54d9bbcc.0d0bac",
\r
360 "name": "execute RestApiCallNode Create ethernet Service without token",
\r
361 "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
366 "z": "5a4cb919.dfff38",
\r
375 "id": "2ade786d.c09b28",
\r
378 "xml": "<outcome value='failure'>\n",
\r
383 "z": "5a4cb919.dfff38",
\r
391 "id": "f17ad5b3.0ef818",
\r
394 "xml": "<outcome value='success'>\n",
\r
399 "z": "5a4cb919.dfff38",
\r
407 "id": "72718fb4.e15e78",
\r
408 "type": "returnFailure",
\r
409 "name": "return failure",
\r
410 "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
414 "z": "5a4cb919.dfff38",
\r
418 "id": "98b1fdb0.a42648",
\r
420 "name": "block : atomic",
\r
421 "xml": "<block atomic=\"true\">",
\r
427 "z": "5a4cb919.dfff38",
\r
436 "id": "fe12ce9.6a53ab",
\r
438 "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",
\r
439 "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
444 "z": "5a4cb919.dfff38",
\r
450 "id": "9e233ee4.5c90e",
\r
452 "name": "TODO: FIXME",
\r
453 "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
\r
457 "z": "5a4cb919.dfff38",
\r
461 "id": "4eba4c2.fda54b4",
\r
463 "name": "update connectivity resource in AAI",
\r
464 "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
469 "z": "5a4cb919.dfff38",
\r
475 "id": "fbd17573.b91cd8",
\r
477 "name": "set pnf-name",
\r
478 "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
482 "z": "5a4cb919.dfff38",
\r
486 "id": "985dbb20.1c3b78",
\r
487 "type": "get-resource",
\r
488 "name": "get-resource src pnf",
\r
489 "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
494 "z": "5a4cb919.dfff38",
\r
504 "id": "544c4f89.eba52",
\r
507 "xml": "<outcome value='success'>\n",
\r
510 "x": 4377.5001220703125,
\r
512 "z": "5a4cb919.dfff38",
\r
520 "id": "eb873b5e.d10b8",
\r
521 "type": "not-found",
\r
522 "name": "not-found",
\r
523 "xml": "<outcome value='not-found'>\n",
\r
526 "x": 4369.5001220703125,
\r
528 "z": "5a4cb919.dfff38",
\r
536 "id": "cd232c91.ed7d5",
\r
539 "xml": "<block>\n",
\r
543 "x": 4521.8824462890625,
\r
544 "y": 246.65567016601562,
\r
545 "z": "5a4cb919.dfff38",
\r
553 "id": "4c85ec99.26bac4",
\r
555 "name": "esr-thirdparty-sdnc",
\r
556 "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
\r
561 "z": "5a4cb919.dfff38",
\r
569 "id": "d5d46c3b.524dc8",
\r
571 "name": "for each relationship",
\r
572 "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",
\r
577 "z": "5a4cb919.dfff38",
\r
585 "id": "cc43f2ea.19847",
\r
586 "type": "switchNode",
\r
587 "name": "switch related-to",
\r
588 "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
\r
593 "z": "5a4cb919.dfff38",
\r
601 "id": "d8377d86.76164",
\r
604 "xml": "<outcome value='Other'>\n",
\r
607 "x": 4374.5001220703125,
\r
609 "z": "5a4cb919.dfff38",
\r
617 "id": "9cf617d3.aee3a8",
\r
618 "type": "returnFailure",
\r
619 "name": "return failure",
\r
620 "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
622 "x": 4526.5001220703125,
\r
624 "z": "5a4cb919.dfff38",
\r
628 "id": "7e7e18a4.ea2a98",
\r
629 "type": "returnFailure",
\r
630 "name": "return failure",
\r
631 "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
633 "x": 4537.5001220703125,
\r
635 "z": "5a4cb919.dfff38",
\r
639 "id": "f42e9c90.ae58f",
\r
641 "name": "get esr-thirdparty-sdnc",
\r
642 "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
647 "z": "5a4cb919.dfff38",
\r
657 "id": "490c8cc0.c71134",
\r
659 "name": "block : atomic",
\r
660 "xml": "<block atomic=\"true\">",
\r
665 "z": "5a4cb919.dfff38",
\r
674 "id": "9ce5b4b0.4bb188",
\r
676 "name": "set esr-thirdparty-sdnc domainA id",
\r
677 "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
681 "z": "5a4cb919.dfff38",
\r
685 "id": "f404a9ca.fbce2",
\r
688 "xml": "<outcome value='success'>\n",
\r
693 "z": "5a4cb919.dfff38",
\r
701 "id": "3fd1ebaf.c62a54",
\r
702 "type": "not-found",
\r
703 "name": "not-found",
\r
704 "xml": "<outcome value='not-found'>\n",
\r
709 "z": "5a4cb919.dfff38",
\r
717 "id": "66a3972e.71bfa8",
\r
720 "xml": "<outcome value='Other'>\n",
\r
725 "z": "5a4cb919.dfff38",
\r
733 "id": "ff823793.36814",
\r
734 "type": "returnFailure",
\r
735 "name": "return failure",
\r
736 "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
740 "z": "5a4cb919.dfff38",
\r
744 "id": "ff90e84e.43d4b8",
\r
745 "type": "returnFailure",
\r
746 "name": "return failure",
\r
747 "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
751 "z": "5a4cb919.dfff38",
\r
755 "id": "3597c274.50637e",
\r
758 "xml": "<block>\n",
\r
762 "x": 5843.38232421875,
\r
763 "y": 250.65567016601562,
\r
764 "z": "5a4cb919.dfff38",
\r
772 "id": "d39e28b5.1aec5",
\r
774 "name": "set controller domainA data",
\r
775 "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
779 "z": "5a4cb919.dfff38",
\r
783 "id": "139f2f1e.8fa159",
\r
785 "name": "set attachment_param for OTN B",
\r
786 "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
790 "z": "5a4cb919.dfff38",
\r
794 "id": "18d2c2bc.05fd85",
\r
796 "name": "execute RestApiCallNode Create OTN tunnel with token",
\r
797 "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
802 "z": "5a4cb919.dfff38",
\r
811 "id": "8895fa29.bf8e3",
\r
814 "xml": "<outcome value='failure'>\n",
\r
819 "z": "5a4cb919.dfff38",
\r
827 "id": "23c7c635.fd4722",
\r
830 "xml": "<outcome value='success'>\n",
\r
835 "z": "5a4cb919.dfff38",
\r
843 "id": "500b5538.e88684",
\r
844 "type": "returnFailure",
\r
845 "name": "return failure",
\r
846 "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
850 "z": "5a4cb919.dfff38",
\r
854 "id": "909dfd67.2300d8",
\r
856 "name": "block : atomic",
\r
857 "xml": "<block atomic=\"true\">",
\r
863 "z": "5a4cb919.dfff38",
\r
869 "id": "a49aeabe.b5ff8",
\r
871 "name": "set pnf-name",
\r
872 "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
876 "z": "5a4cb919.dfff38",
\r
880 "id": "642d00da.b53c68",
\r
881 "type": "get-resource",
\r
882 "name": "get-resource dst pnf",
\r
883 "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
888 "z": "5a4cb919.dfff38",
\r
898 "id": "1e5d6803.78b7d8",
\r
901 "xml": "<outcome value='success'>\n",
\r
904 "x": 3786.5001220703125,
\r
906 "z": "5a4cb919.dfff38",
\r
914 "id": "84307ec5.09a8d",
\r
915 "type": "not-found",
\r
916 "name": "not-found",
\r
917 "xml": "<outcome value='not-found'>\n",
\r
920 "x": 3778.5001220703125,
\r
922 "z": "5a4cb919.dfff38",
\r
930 "id": "683b34d0.c1df64",
\r
933 "xml": "<block>\n",
\r
937 "x": 3930.8824462890625,
\r
938 "y": 1691.6556701660156,
\r
939 "z": "5a4cb919.dfff38",
\r
947 "id": "8511cae6.cbf588",
\r
949 "name": "for each relationship",
\r
950 "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",
\r
955 "z": "5a4cb919.dfff38",
\r
963 "id": "b468d4fc.bc9c8",
\r
966 "xml": "<outcome value='Other'>\n",
\r
969 "x": 3783.5001220703125,
\r
971 "z": "5a4cb919.dfff38",
\r
979 "id": "a6137ce1.b3b5c",
\r
980 "type": "returnFailure",
\r
981 "name": "return failure",
\r
982 "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
984 "x": 3935.5001220703125,
\r
986 "z": "5a4cb919.dfff38",
\r
990 "id": "72cad52e.cb1d74",
\r
991 "type": "returnFailure",
\r
992 "name": "return failure",
\r
993 "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
995 "x": 3946.5001220703125,
\r
997 "z": "5a4cb919.dfff38",
\r
1001 "id": "7b4a137a.364fcc",
\r
1002 "type": "outcome",
\r
1003 "name": "esr-thirdparty-sdnc",
\r
1004 "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
\r
1009 "z": "5a4cb919.dfff38",
\r
1017 "id": "82496ff9.234ee",
\r
1018 "type": "switchNode",
\r
1019 "name": "switch related-to",
\r
1020 "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",
\r
1025 "z": "5a4cb919.dfff38",
\r
1033 "id": "4bdd9e57.a5e13",
\r
1034 "type": "execute",
\r
1035 "name": "get esr-thirdparty-sdnc",
\r
1036 "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
1041 "z": "5a4cb919.dfff38",
\r
1044 "8afff046.26af98",
\r
1051 "id": "37fe69a9.07064e",
\r
1053 "name": "block : atomic",
\r
1054 "xml": "<block atomic=\"true\">",
\r
1059 "z": "5a4cb919.dfff38",
\r
1062 "d299743b.8f6b68",
\r
1068 "id": "d299743b.8f6b68",
\r
1070 "name": "set esr-thirdparty-sdnc domainB id",
\r
1071 "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
1075 "z": "5a4cb919.dfff38",
\r
1079 "id": "2523ddf0.8e1c8a",
\r
1080 "type": "returnFailure",
\r
1081 "name": "return failure",
\r
1082 "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
1086 "z": "5a4cb919.dfff38",
\r
1090 "id": "6f850c0f.e212ac",
\r
1091 "type": "returnFailure",
\r
1092 "name": "return failure",
\r
1093 "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
1097 "z": "5a4cb919.dfff38",
\r
1101 "id": "546ca846.269108",
\r
1104 "xml": "<block>\n",
\r
1105 "atomic": "false",
\r
1108 "x": 5252.38232421875,
\r
1109 "y": 1697.6556701660156,
\r
1110 "z": "5a4cb919.dfff38",
\r
1118 "id": "fac7ab27.77dda8",
\r
1120 "name": "set controller domainB data",
\r
1121 "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
1125 "z": "5a4cb919.dfff38",
\r
1129 "id": "8afff046.26af98",
\r
1130 "type": "success",
\r
1131 "name": "success",
\r
1132 "xml": "<outcome value='success'>\n",
\r
1137 "z": "5a4cb919.dfff38",
\r
1145 "id": "5118b1e.53f805",
\r
1146 "type": "not-found",
\r
1147 "name": "not-found",
\r
1148 "xml": "<outcome value='not-found'>\n",
\r
1153 "z": "5a4cb919.dfff38",
\r
1161 "id": "5a800db8.063d6c",
\r
1164 "xml": "<outcome value='Other'>\n",
\r
1169 "z": "5a4cb919.dfff38",
\r
1177 "id": "a1edca3.1a62bb8",
\r
1178 "type": "switchNode",
\r
1179 "name": "switch vpn-binding has dst-access-ltp",
\r
1180 "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>\n",
\r
1185 "z": "5a4cb919.dfff38",
\r
1188 "d4bdeded.3ef248",
\r
1194 "id": "d4bdeded.3ef248",
\r
1195 "type": "outcome",
\r
1197 "xml": "<outcome value=''>\n",
\r
1202 "z": "5a4cb919.dfff38",
\r
1210 "id": "eead64c.0115918",
\r
1213 "xml": "<outcome value='Other'>\n",
\r
1218 "z": "5a4cb919.dfff38",
\r
1226 "id": "614a0644.b0e3e",
\r
1227 "type": "switchNode",
\r
1228 "name": "switch vpn-binding has src-access-ltp",
\r
1229 "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",
\r
1234 "z": "5a4cb919.dfff38",
\r
1237 "75bfd38b.356f64",
\r
1243 "id": "75bfd38b.356f64",
\r
1244 "type": "outcome",
\r
1246 "xml": "<outcome value=''>\n",
\r
1251 "z": "5a4cb919.dfff38",
\r
1259 "id": "f4c4b096.a3ce2",
\r
1262 "xml": "<outcome value='Other'>\n",
\r
1267 "z": "5a4cb919.dfff38",
\r
1275 "id": "b0597a28.514d3",
\r
1276 "type": "returnFailure",
\r
1277 "name": "return failure",
\r
1278 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
1282 "z": "5a4cb919.dfff38",
\r
1286 "id": "cf5b963d.2b5a08",
\r
1288 "name": "set vpn-bindingA and connectivityA",
\r
1289 "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
1293 "z": "5a4cb919.dfff38",
\r
1297 "id": "4badfb31.b82c1c",
\r
1299 "name": "set vpn-bindingB and connectivityB",
\r
1300 "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
1304 "z": "5a4cb919.dfff38",
\r
1308 "id": "552020c2.f01db",
\r
1310 "name": "block : atomic",
\r
1311 "xml": "<block atomic=\"true\">",
\r
1317 "z": "5a4cb919.dfff38",
\r
1320 "cf5b963d.2b5a08",
\r
1321 "123fcc82.b79ae3",
\r
1322 "fbd17573.b91cd8",
\r
1323 "985dbb20.1c3b78",
\r
1326 "881b2d7a.c4e888",
\r
1332 "id": "64045150.224658",
\r
1334 "name": "block : atomic",
\r
1335 "xml": "<block atomic=\"true\">",
\r
1340 "z": "5a4cb919.dfff38",
\r
1343 "4badfb31.b82c1c",
\r
1344 "139f2f1e.8fa159",
\r
1346 "642d00da.b53c68",
\r
1347 "18d2c2bc.05fd85",
\r
1348 "724930a5.f44628",
\r
1355 "id": "ed40d4d6.135678",
\r
1357 "name": "set sotn_value",
\r
1358 "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
1362 "z": "5a4cb919.dfff38",
\r
1366 "id": "b71c97.3dad8368",
\r
1367 "type": "execute",
\r
1368 "name": "execute RestApiCallNode Create ethernet Service without token",
\r
1369 "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
1374 "z": "5a4cb919.dfff38",
\r
1383 "id": "aa1d9a65.d56ee",
\r
1384 "type": "failure",
\r
1385 "name": "failure",
\r
1386 "xml": "<outcome value='failure'>\n",
\r
1391 "z": "5a4cb919.dfff38",
\r
1399 "id": "ce785491.f82258",
\r
1400 "type": "success",
\r
1401 "name": "success",
\r
1402 "xml": "<outcome value='success'>\n",
\r
1407 "z": "5a4cb919.dfff38",
\r
1415 "id": "d8df230a.b47018",
\r
1416 "type": "returnFailure",
\r
1417 "name": "return failure",
\r
1418 "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
1422 "z": "5a4cb919.dfff38",
\r
1426 "id": "d2d57048.de12f",
\r
1428 "name": "block : atomic",
\r
1429 "xml": "<block atomic=\"true\">",
\r
1435 "z": "5a4cb919.dfff38",
\r
1438 "703675c3.1d187c",
\r
1444 "id": "703675c3.1d187c",
\r
1446 "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",
\r
1447 "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
1452 "z": "5a4cb919.dfff38",
\r
1458 "id": "b9adfc7b.f1d908",
\r
1459 "type": "comment",
\r
1460 "name": "TODO: FIXME",
\r
1461 "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
\r
1465 "z": "5a4cb919.dfff38",
\r
1469 "id": "6a8e2764.0748e8",
\r
1471 "name": "update connectivity resource in AAI",
\r
1472 "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
1477 "z": "5a4cb919.dfff38",
\r
1483 "id": "641093d5.a73774",
\r
1485 "name": "set attachment_param (gfp-n) for OTN",
\r
1486 "xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",
\r
1490 "z": "5a4cb919.dfff38",
\r
1494 "id": "29b91b19.d2edf4",
\r
1495 "type": "comment",
\r
1496 "name": "only dst ttp exists. No src",
\r
1501 "z": "5a4cb919.dfff38",
\r
1505 "id": "df88a98e.3b797",
\r
1506 "type": "comment",
\r
1507 "name": "only src ttp exists. No dst",
\r
1512 "z": "5a4cb919.dfff38",
\r
1516 "id": "295e16ce.878c6a",
\r
1517 "type": "switchNode",
\r
1518 "name": "switch vpn-binding has src-access-ltp",
\r
1519 "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",
\r
1524 "z": "5a4cb919.dfff38",
\r
1533 "id": "8f7ef737.3d4208",
\r
1536 "xml": "<outcome value='Other'>\n",
\r
1541 "z": "5a4cb919.dfff38",
\r
1549 "id": "fdfbdf68.ace01",
\r
1550 "type": "outcome",
\r
1552 "xml": "<outcome value=''>\n",
\r
1557 "z": "5a4cb919.dfff38",
\r
1565 "id": "d545d977.39f008",
\r
1567 "name": "block : atomic",
\r
1568 "xml": "<block atomic=\"true\">",
\r
1573 "z": "5a4cb919.dfff38",
\r
1576 "127c7c35.f5600c",
\r
1579 "b6e4b7cd.3aab58",
\r
1580 "9befe6d.bfbfb18",
\r
1586 "id": "aa22b9fb.8c00d",
\r
1588 "name": "set attachment_param for OTN G",
\r
1589 "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
1593 "z": "5a4cb919.dfff38",
\r
1597 "id": "9befe6d.bfbfb18",
\r
1598 "type": "execute",
\r
1599 "name": "execute RestApiCallNode Create OTN tunnel with token",
\r
1600 "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
1605 "z": "5a4cb919.dfff38",
\r
1608 "602f32f4.cac7b4",
\r
1614 "id": "602f32f4.cac7b4",
\r
1615 "type": "failure",
\r
1616 "name": "failure",
\r
1617 "xml": "<outcome value='failure'>\n",
\r
1622 "z": "5a4cb919.dfff38",
\r
1630 "id": "1d093526.32224b",
\r
1631 "type": "success",
\r
1632 "name": "success",
\r
1633 "xml": "<outcome value='success'>\n",
\r
1638 "z": "5a4cb919.dfff38",
\r
1646 "id": "4513cd6b.369634",
\r
1647 "type": "returnFailure",
\r
1648 "name": "return failure",
\r
1649 "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
1653 "z": "5a4cb919.dfff38",
\r
1657 "id": "7640c8ac.188fc8",
\r
1659 "name": "block : atomic",
\r
1660 "xml": "<block atomic=\"true\">",
\r
1666 "z": "5a4cb919.dfff38",
\r
1672 "id": "7a8bb8ff.a3807",
\r
1674 "name": "set pnf-name",
\r
1675 "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
1679 "z": "5a4cb919.dfff38",
\r
1683 "id": "b6e4b7cd.3aab58",
\r
1684 "type": "get-resource",
\r
1685 "name": "get-resource src pnf",
\r
1686 "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
1691 "z": "5a4cb919.dfff38",
\r
1695 "6b2ab2eb.e94cac",
\r
1701 "id": "bc604696.f19bf",
\r
1702 "type": "success",
\r
1703 "name": "success",
\r
1704 "xml": "<outcome value='success'>\n",
\r
1707 "x": 4284.5001220703125,
\r
1709 "z": "5a4cb919.dfff38",
\r
1717 "id": "6b2ab2eb.e94cac",
\r
1718 "type": "not-found",
\r
1719 "name": "not-found",
\r
1720 "xml": "<outcome value='not-found'>\n",
\r
1723 "x": 4276.5001220703125,
\r
1725 "z": "5a4cb919.dfff38",
\r
1733 "id": "fbbae41a.6bb8",
\r
1736 "xml": "<block>\n",
\r
1737 "atomic": "false",
\r
1740 "x": 4428.8824462890625,
\r
1741 "y": 1033.6556701660156,
\r
1742 "z": "5a4cb919.dfff38",
\r
1750 "id": "4ab90ec7.0f8a1",
\r
1752 "name": "for each relationship",
\r
1753 "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",
\r
1758 "z": "5a4cb919.dfff38",
\r
1766 "id": "3bb025b6.92298a",
\r
1767 "type": "switchNode",
\r
1768 "name": "switch related-to",
\r
1769 "xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
\r
1774 "z": "5a4cb919.dfff38",
\r
1782 "id": "158e3d74.81687b",
\r
1785 "xml": "<outcome value='Other'>\n",
\r
1788 "x": 4281.5001220703125,
\r
1790 "z": "5a4cb919.dfff38",
\r
1798 "id": "cfe04507.17faa",
\r
1799 "type": "returnFailure",
\r
1800 "name": "return failure",
\r
1801 "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
1803 "x": 4433.5001220703125,
\r
1805 "z": "5a4cb919.dfff38",
\r
1809 "id": "5e10560f.7f2a6",
\r
1810 "type": "returnFailure",
\r
1811 "name": "return failure",
\r
1812 "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
1814 "x": 4444.5001220703125,
\r
1816 "z": "5a4cb919.dfff38",
\r
1820 "id": "127c7c35.f5600c",
\r
1822 "name": "set vpn-bindingG and connectivityG",
\r
1823 "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
1827 "z": "5a4cb919.dfff38",
\r
1831 "id": "ce204654.d589e8",
\r
1832 "type": "outcome",
\r
1833 "name": "esr-thirdparty-sdnc",
\r
1834 "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
\r
1839 "z": "5a4cb919.dfff38",
\r
1847 "id": "17936311.45c0f5",
\r
1848 "type": "execute",
\r
1849 "name": "get esr-thirdparty-sdnc",
\r
1850 "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
1855 "z": "5a4cb919.dfff38",
\r
1858 "bda3b861.07af08",
\r
1859 "8ce8739f.28fc08",
\r
1865 "id": "fea8f5c8.b664d8",
\r
1867 "name": "block : atomic",
\r
1868 "xml": "<block atomic=\"true\">",
\r
1873 "z": "5a4cb919.dfff38",
\r
1882 "id": "619520a0.18d9e",
\r
1884 "name": "set esr-thirdparty-sdnc domainG id",
\r
1885 "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
1889 "z": "5a4cb919.dfff38",
\r
1893 "id": "bda3b861.07af08",
\r
1894 "type": "success",
\r
1895 "name": "success",
\r
1896 "xml": "<outcome value='success'>\n",
\r
1901 "z": "5a4cb919.dfff38",
\r
1909 "id": "8ce8739f.28fc08",
\r
1910 "type": "not-found",
\r
1911 "name": "not-found",
\r
1912 "xml": "<outcome value='not-found'>\n",
\r
1917 "z": "5a4cb919.dfff38",
\r
1925 "id": "8098fa71.4cbf3",
\r
1928 "xml": "<outcome value='Other'>\n",
\r
1933 "z": "5a4cb919.dfff38",
\r
1941 "id": "244270ad.8dfe1",
\r
1942 "type": "returnFailure",
\r
1943 "name": "return failure",
\r
1944 "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
1948 "z": "5a4cb919.dfff38",
\r
1952 "id": "ec86cd9f.a15968",
\r
1953 "type": "returnFailure",
\r
1954 "name": "return failure",
\r
1955 "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
1959 "z": "5a4cb919.dfff38",
\r
1963 "id": "3c9ad3f5.e5e4a4",
\r
1966 "xml": "<block>\n",
\r
1967 "atomic": "false",
\r
1970 "x": 5750.38232421875,
\r
1971 "y": 1037.6556701660156,
\r
1972 "z": "5a4cb919.dfff38",
\r
1980 "id": "2068f2a1.5ec866",
\r
1982 "name": "set controller domainG data",
\r
1983 "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
1987 "z": "5a4cb919.dfff38",
\r
1991 "id": "e69cbe2a.82be58",
\r
1992 "type": "comment",
\r
1993 "name": "both src and dst exist",
\r
1998 "z": "5a4cb919.dfff38",
\r
2002 "id": "957d0d12.f7d338",
\r
2003 "type": "switchNode",
\r
2004 "name": "switch vpn-binding is not already Activated (i.e. is either Created or Modified)",
\r
2005 "xml": "<switch test=\"`$tmp.aai.vpn-binding.operational-status != 'Activated' `\">\n",
\r
2010 "z": "5a4cb919.dfff38",
\r
2019 "id": "9a6050c4.300548",
\r
2020 "type": "outcomeFalse",
\r
2022 "xml": "<outcome value='false'>\n",
\r
2027 "z": "5a4cb919.dfff38",
\r
2035 "id": "7969493f.6a54d",
\r
2036 "type": "outcomeTrue",
\r
2038 "xml": "<outcome value='true'>\n",
\r
2043 "z": "5a4cb919.dfff38",
\r
2051 "id": "7c5fc999.6b62c",
\r
2053 "name": "block : atomic",
\r
2054 "xml": "<block atomic=\"true\">",
\r
2059 "z": "5a4cb919.dfff38",
\r
2062 "641093d5.a73774",
\r
2068 "id": "66cd0943.de62f",
\r
2072 "atomic": "false",
\r
2077 "z": "5a4cb919.dfff38",
\r
2083 "id": "cce8745e.b515b8",
\r
2085 "name": "unset tmp.aai.all-vpn-bindings",
\r
2086 "xml": "<set>\n<parameter name='tmp.aai.all-vpn-bindings.' value=\"\" />\n",
\r
2090 "z": "5a4cb919.dfff38",
\r
2094 "id": "48ad099a.c16688",
\r
2095 "type": "comment",
\r
2096 "name": "CLL new",
\r
2097 "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
2101 "z": "5a4cb919.dfff38",
\r
2105 "id": "ec3b4a19.7f5ee",
\r
2107 "name": "set leaf-otn-tunnels-list array",
\r
2108 "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
2112 "z": "5a4cb919.dfff38",
\r
2116 "id": "706cb78c.da92b",
\r
2118 "name": "unset leaf-otn-tunnels-list array",
\r
2119 "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
2123 "z": "5a4cb919.dfff38",
\r
2127 "id": "9a38eb9e.71f4d8",
\r
2128 "type": "comment",
\r
2129 "name": "CLL new",
\r
2130 "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
2134 "z": "5a4cb919.dfff38",
\r
2138 "id": "724930a5.f44628",
\r
2140 "name": "set root-otn-tunnels-list array",
\r
2141 "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
2145 "z": "5a4cb919.dfff38",
\r
2149 "id": "2a414bdc.2311dc",
\r
2151 "name": "unset root-otn-tunnels-list array",
\r
2152 "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
2156 "z": "5a4cb919.dfff38",
\r
2160 "id": "88772a4.9b58658",
\r
2161 "type": "execute",
\r
2162 "name": "execute properties",
\r
2163 "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
2168 "z": "5a4cb919.dfff38",
\r
2174 "id": "4ace150.4554dec",
\r
2176 "name": "get service-instance from aai",
\r
2177 "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
2182 "z": "5a4cb919.dfff38",
\r
2192 "id": "ce4ab0d3.b836a",
\r
2193 "type": "success",
\r
2194 "name": "success",
\r
2195 "xml": "<outcome value='success'>\n",
\r
2200 "z": "5a4cb919.dfff38",
\r
2208 "id": "9dbee6c6.1a60a",
\r
2209 "type": "not-found",
\r
2210 "name": "not-found",
\r
2211 "xml": "<outcome value='not-found'>\n",
\r
2214 "x": 480.490966796875,
\r
2215 "y": 640.5740356445312,
\r
2216 "z": "5a4cb919.dfff38",
\r
2222 "id": "290803ec.65c94c",
\r
2223 "type": "failure",
\r
2224 "name": "failure",
\r
2225 "xml": "<outcome value='failure'>\n",
\r
2230 "z": "5a4cb919.dfff38",
\r
2238 "id": "280015e3.c315e2",
\r
2240 "name": "for each relationship",
\r
2241 "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",
\r
2246 "z": "5a4cb919.dfff38",
\r
2254 "id": "f842cdf9.29a79",
\r
2255 "type": "returnFailure",
\r
2256 "name": "return failure",
\r
2257 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
2261 "z": "5a4cb919.dfff38",
\r
2265 "id": "cd508bdd.302a88",
\r
2266 "type": "switchNode",
\r
2267 "name": "switch related-to",
\r
2268 "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",
\r
2271 "x": 891.33349609375,
\r
2272 "y": 593.9999389648438,
\r
2273 "z": "5a4cb919.dfff38",
\r
2281 "id": "d4df8e14.56fc08",
\r
2282 "type": "outcome",
\r
2283 "name": "connectivity",
\r
2284 "xml": "<outcome value='connectivity'>\n",
\r
2287 "x": 1092.0001335144043,
\r
2288 "y": 595.000020980835,
\r
2289 "z": "5a4cb919.dfff38",
\r
2297 "id": "b67eb6e5.58b31",
\r
2299 "name": "get connectivity from aai",
\r
2300 "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
2305 "z": "5a4cb919.dfff38",
\r
2308 "eb910f68.8a5408",
\r
2309 "a6536ba8.c4e148",
\r
2315 "id": "eb910f68.8a5408",
\r
2316 "type": "success",
\r
2317 "name": "success",
\r
2318 "xml": "<outcome value='success'>\n",
\r
2323 "z": "5a4cb919.dfff38",
\r
2331 "id": "a6536ba8.c4e148",
\r
2332 "type": "not-found",
\r
2333 "name": "not-found",
\r
2334 "xml": "<outcome value='not-found'>\n",
\r
2337 "x": 430.490966796875,
\r
2338 "y": 866.5740356445312,
\r
2339 "z": "5a4cb919.dfff38",
\r
2345 "id": "6d1288a7.3722b8",
\r
2346 "type": "failure",
\r
2347 "name": "failure",
\r
2348 "xml": "<outcome value='failure'>\n",
\r
2353 "z": "5a4cb919.dfff38",
\r
2361 "id": "a3e6b31.4b2495",
\r
2362 "type": "returnFailure",
\r
2363 "name": "return failure",
\r
2364 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
2368 "z": "5a4cb919.dfff38",
\r
2372 "id": "64de189c.ea0ca",
\r
2374 "name": "for each relationship",
\r
2375 "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
\r
2380 "z": "5a4cb919.dfff38",
\r
2388 "id": "f09d5f3a.90b09",
\r
2389 "type": "switchNode",
\r
2390 "name": "switch related-to",
\r
2391 "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
\r
2396 "z": "5a4cb919.dfff38",
\r
2404 "id": "be069a3d.2f258",
\r
2405 "type": "outcome",
\r
2407 "xml": "<outcome value='uni'>\n",
\r
2412 "z": "5a4cb919.dfff38",
\r
2420 "id": "b33327bf.cf44b8",
\r
2422 "name": "block : atomic",
\r
2423 "xml": "<block atomic=\"true\">",
\r
2428 "z": "5a4cb919.dfff38",
\r
2431 "9b6250ff.75cf18",
\r
2432 "6e8e9c3e.00f634",
\r
2434 "611e4d54.277574",
\r
2435 "c0f4e533.035be8",
\r
2441 "id": "6e8e9c3e.00f634",
\r
2443 "name": "unset tmp.aai.uni",
\r
2444 "xml": "<set>\n<parameter name='tmp.aai.uni.' value='' />\n",
\r
2447 "y": 1010.9999389648438,
\r
2448 "z": "5a4cb919.dfff38",
\r
2452 "id": "9b6250ff.75cf18",
\r
2454 "name": "get uni from aai",
\r
2455 "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
2459 "y": 1055.9999389648438,
\r
2460 "z": "5a4cb919.dfff38",
\r
2463 "1b290eb5.e974c9",
\r
2470 "id": "b84573d.a8be19",
\r
2471 "type": "not-found",
\r
2472 "name": "not-found",
\r
2473 "xml": "<outcome value='not-found'>\n",
\r
2476 "x": 1497.490966796875,
\r
2477 "y": 1029.5739135742188,
\r
2478 "z": "5a4cb919.dfff38",
\r
2486 "id": "ef2334eb.3c1b68",
\r
2487 "type": "failure",
\r
2488 "name": "failure",
\r
2489 "xml": "<outcome value='failure'>\n",
\r
2493 "y": 1073.9998779296875,
\r
2494 "z": "5a4cb919.dfff38",
\r
2502 "id": "45bb14a8.1a7924",
\r
2503 "type": "returnFailure",
\r
2504 "name": "return failure",
\r
2505 "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
2508 "y": 1028.859619140625,
\r
2509 "z": "5a4cb919.dfff38",
\r
2513 "id": "cd1f6950.fef1f",
\r
2514 "type": "returnFailure",
\r
2515 "name": "return failure",
\r
2516 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
2519 "y": 1073.9998779296875,
\r
2520 "z": "5a4cb919.dfff38",
\r
2524 "id": "cd4af41f.be1a78",
\r
2526 "name": "block : atomic",
\r
2527 "xml": "<block atomic=\"true\">",
\r
2531 "y": 1120.9998779296875,
\r
2532 "z": "5a4cb919.dfff38",
\r
2538 "id": "1b290eb5.e974c9",
\r
2539 "type": "success",
\r
2540 "name": "success",
\r
2541 "xml": "<outcome value='success'>\n",
\r
2545 "y": 1120.9998779296875,
\r
2546 "z": "5a4cb919.dfff38",
\r
2554 "id": "60f7024f.a382fc",
\r
2555 "type": "comment",
\r
2556 "name": "CLL new",
\r
2557 "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
2561 "z": "5a4cb919.dfff38",
\r
2565 "id": "db16830a.f6a5",
\r
2567 "name": "set ethernet-srv-end-points-list array",
\r
2568 "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
2572 "z": "5a4cb919.dfff38",
\r
2576 "id": "1989ebd9.8b76bc",
\r
2578 "name": "unset ethernet-srv-end-points-list",
\r
2579 "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
2583 "z": "5a4cb919.dfff38",
\r
2587 "id": "9da50ff.0241af",
\r
2589 "name": "unset ethernet-srv-end-points-list",
\r
2590 "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
2594 "z": "5a4cb919.dfff38",
\r
2598 "id": "eda2f0f7.d8fb38",
\r
2600 "name": "for each relationship",
\r
2601 "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
\r
2606 "z": "5a4cb919.dfff38",
\r
2614 "id": "62852429.1f30ac",
\r
2615 "type": "switchNode",
\r
2616 "name": "switch related-to",
\r
2617 "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
\r
2622 "z": "5a4cb919.dfff38",
\r
2630 "id": "ede4a749.9f1af8",
\r
2631 "type": "outcome",
\r
2632 "name": "vpn-binding",
\r
2633 "xml": "<outcome value='vpn-binding'>\n",
\r
2638 "z": "5a4cb919.dfff38",
\r
2646 "id": "b699a292.eb6f88",
\r
2648 "name": "block : atomic",
\r
2649 "xml": "<block atomic=\"true\">",
\r
2654 "z": "5a4cb919.dfff38",
\r
2657 "13d7e483.3188fb",
\r
2663 "id": "74bc3a8f.9628d4",
\r
2665 "name": "unset tmp.aai.vpn-binding",
\r
2666 "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",
\r
2670 "z": "5a4cb919.dfff38",
\r
2674 "id": "13d7e483.3188fb",
\r
2676 "name": "get vpn-binding from aai",
\r
2677 "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
2682 "z": "5a4cb919.dfff38",
\r
2685 "bcef8cd9.e20998",
\r
2692 "id": "764e27eb.b5496",
\r
2693 "type": "not-found",
\r
2694 "name": "not-found",
\r
2695 "xml": "<outcome value='not-found'>\n",
\r
2698 "x": 670.490966796875,
\r
2699 "y": 1849.5740356445312,
\r
2700 "z": "5a4cb919.dfff38",
\r
2708 "id": "21958602.3fa0ea",
\r
2709 "type": "failure",
\r
2710 "name": "failure",
\r
2711 "xml": "<outcome value='failure'>\n",
\r
2716 "z": "5a4cb919.dfff38",
\r
2724 "id": "bcef8cd9.e20998",
\r
2725 "type": "success",
\r
2726 "name": "success",
\r
2727 "xml": "<outcome value='success'>\n",
\r
2732 "z": "5a4cb919.dfff38",
\r
2740 "id": "9c812de2.87639",
\r
2741 "type": "returnFailure",
\r
2742 "name": "return failure",
\r
2743 "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
2746 "y": 1848.8597412109375,
\r
2747 "z": "5a4cb919.dfff38",
\r
2751 "id": "2915d3a6.63730c",
\r
2752 "type": "returnFailure",
\r
2753 "name": "return failure",
\r
2754 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
2758 "z": "5a4cb919.dfff38",
\r
2762 "id": "bb26f0d0.bc6288",
\r
2764 "name": "block : atomic",
\r
2765 "xml": "<block atomic=\"true\">",
\r
2770 "z": "5a4cb919.dfff38",
\r
2773 "e8fb0469.22a408",
\r
2779 "id": "445d8bb1.6c470c",
\r
2781 "name": "set sotn_value",
\r
2782 "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
2786 "z": "5a4cb919.dfff38",
\r
2790 "id": "925823e9.1c4a4",
\r
2791 "type": "execute",
\r
2792 "name": "execute RestApiCallNode Create ethernet Service without token",
\r
2793 "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
2798 "z": "5a4cb919.dfff38",
\r
2801 "345842a4.88ef2e",
\r
2807 "id": "345842a4.88ef2e",
\r
2808 "type": "failure",
\r
2809 "name": "failure",
\r
2810 "xml": "<outcome value='failure'>\n",
\r
2815 "z": "5a4cb919.dfff38",
\r
2821 "id": "a4dc32a8.6620d8",
\r
2822 "type": "success",
\r
2823 "name": "success",
\r
2824 "xml": "<outcome value='success'>\n",
\r
2829 "z": "5a4cb919.dfff38",
\r
2837 "id": "cde1b667.7c4d6",
\r
2838 "type": "returnFailure",
\r
2839 "name": "return failure",
\r
2840 "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
2844 "z": "5a4cb919.dfff38",
\r
2848 "id": "d1fda3bb.92b0e",
\r
2850 "name": "block : atomic",
\r
2851 "xml": "<block atomic=\"true\">",
\r
2857 "z": "5a4cb919.dfff38",
\r
2865 "id": "459839ba.ae33c",
\r
2867 "name": "update vpn-binding resource (aka. OTN ) in AAI",
\r
2868 "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
2873 "z": "5a4cb919.dfff38",
\r
2879 "id": "120147ed.79206",
\r
2880 "type": "comment",
\r
2881 "name": "TODO: FIXME",
\r
2882 "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
\r
2886 "z": "5a4cb919.dfff38",
\r
2890 "id": "a9ee92c3.93f6e8",
\r
2892 "name": "update connectivity resource in AAI",
\r
2893 "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
2898 "z": "5a4cb919.dfff38",
\r
2904 "id": "9d25e547.75567",
\r
2906 "name": "set leafOrRootAccess",
\r
2907 "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:leaf-access' />\n",
\r
2911 "z": "5a4cb919.dfff38",
\r
2915 "id": "52a255e0.e77dec",
\r
2917 "name": "set leafOrRootAccess",
\r
2918 "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:root-primary' />\n",
\r
2922 "z": "5a4cb919.dfff38",
\r
2926 "id": "881b2d7a.c4e888",
\r
2928 "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",
\r
2929 "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
2934 "z": "5a4cb919.dfff38",
\r
2940 "id": "61ff745d.2cf8b4",
\r
2942 "name": "update vpn-binding G resource (aka. OTN domainA) in AAI",
\r
2943 "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
2948 "z": "5a4cb919.dfff38",
\r
2954 "id": "98331ea2.d141f",
\r
2956 "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",
\r
2957 "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
2962 "z": "5a4cb919.dfff38",
\r
2968 "id": "6687da8.fb06ca4",
\r
2969 "type": "switchNode",
\r
2970 "name": "switch connectivity is not already Activated (i.e. is either Created or Modified)",
\r
2971 "xml": "<switch test=\"`$tmp.aai.connectivity.operational-status != 'Activated' `\">\n",
\r
2976 "z": "5a4cb919.dfff38",
\r
2979 "11a4a5f5.385f32",
\r
2985 "id": "11a4a5f5.385f32",
\r
2986 "type": "outcomeTrue",
\r
2988 "xml": "<outcome value='true'>\n",
\r
2993 "z": "5a4cb919.dfff38",
\r
3001 "id": "192499d2.667f1e",
\r
3002 "type": "outcomeFalse",
\r
3004 "xml": "<outcome value='false'>\n",
\r
3009 "z": "5a4cb919.dfff38",
\r
3017 "id": "1fc9c5be.8fac2a",
\r
3019 "name": "block : atomic",
\r
3020 "xml": "<block atomic=\"true\">",
\r
3025 "z": "5a4cb919.dfff38",
\r
3033 "id": "5fe8520c.50e664",
\r
3037 "atomic": "false",
\r
3042 "z": "5a4cb919.dfff38",
\r
3048 "id": "1f9b767f.d670b2",
\r
3050 "name": "unset tmp.aai.vpn-binding",
\r
3051 "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"\" />\n",
\r
3055 "z": "5a4cb919.dfff38",
\r
3059 "id": "f84de17e.e8ea08",
\r
3061 "name": "set root-otn-tunnels-list array",
\r
3062 "xml": "<set>\n<parameter name='`roottunsidx`' value='`$roottunsidx + 1`' />\n",
\r
3066 "z": "5a4cb919.dfff38",
\r
3070 "id": "1a392cd7.238923",
\r
3072 "name": "set leaf-otn-tunnels-list array",
\r
3073 "xml": "<set>\n<parameter name='`leaftunsidx`' value='`$leaftunsidx + 1`' />\n",
\r
3077 "z": "5a4cb919.dfff38",
\r
3081 "id": "611e4d54.277574",
\r
3083 "name": "set ethernet-srv-end-points-list array",
\r
3084 "xml": "<set>\n<parameter name='`epidx`' value='`$epidx + 1`' />\n",
\r
3088 "z": "5a4cb919.dfff38",
\r
3092 "id": "dc7d7df9.afb81",
\r
3094 "name": "set filename",
\r
3095 "xml": "<set>\n<parameter name='filenameclleths' value=\"`$leafOrRootAccess + $tmp.aai.connectivity.access-node-id`\" />",
\r
3099 "z": "5a4cb919.dfff38",
\r
3103 "id": "c70f6326.e297a",
\r
3104 "type": "execute",
\r
3105 "name": "execute printContext",
\r
3106 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n <parameter name=\"filename\" value=\"`$filenameclleths`\" />\n",
\r
3111 "z": "5a4cb919.dfff38",
\r
3117 "id": "e8fb0469.22a408",
\r
3119 "name": "set otn-tunnels-name-list array",
\r
3120 "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
3124 "z": "5a4cb919.dfff38",
\r
3128 "id": "b503b0ba.b1ff6",
\r
3130 "name": "set otn-tunnels-name-list array",
\r
3131 "xml": "<set>\n<parameter name='`otntunsidx`' value='`$otntunsidx + 1`' />\n",
\r
3135 "z": "5a4cb919.dfff38",
\r
3139 "id": "f7d70d92.8a17d",
\r
3141 "name": "unset otn-tunnels-name-list array",
\r
3142 "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
3146 "z": "5a4cb919.dfff38",
\r
3150 "id": "93ecab9f.5bb27",
\r
3152 "name": "set filename",
\r
3153 "xml": "<set>\n<parameter name='filenamecllotns' value=\"`leafrootOTNtunnelnames`\" />",
\r
3157 "z": "5a4cb919.dfff38",
\r
3161 "id": "e1bf516d.80132",
\r
3162 "type": "execute",
\r
3163 "name": "execute printContext",
\r
3164 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n <parameter name=\"filename\" value=\"`$filenamecllotns`\" />\n",
\r
3169 "z": "5a4cb919.dfff38",
\r
3175 "id": "c0f4e533.035be8",
\r
3176 "type": "execute",
\r
3177 "name": "execute split tp-id to get pnf-name",
\r
3178 "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
3183 "z": "5a4cb919.dfff38",
\r
3192 "id": "a44c9ce4.5d2008",
\r
3193 "type": "failure",
\r
3194 "name": "success",
\r
3195 "xml": "<outcome value='success'>\n",
\r
3200 "z": "5a4cb919.dfff38",
\r
3208 "id": "ff9a5641.69fda",
\r
3209 "type": "failure",
\r
3210 "name": "failure",
\r
3211 "xml": "<outcome value='failure'>\n",
\r
3216 "z": "5a4cb919.dfff38",
\r
3224 "id": "eaca171f.944a48",
\r
3226 "name": "block : atomic",
\r
3227 "xml": "<block atomic=\"true\">",
\r
3232 "z": "5a4cb919.dfff38",
\r
3240 "id": "93d69fa.52d496",
\r
3241 "type": "returnFailure",
\r
3242 "name": "return failure",
\r
3243 "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
3247 "z": "5a4cb919.dfff38",
\r
3251 "id": "b0447236.92d3b",
\r
3253 "name": "set tmp.uni-node-id-short",
\r
3254 "xml": "<set>\n<parameter name='tmp.uni-node-id-short' value='`$param-prefix-uni[$param-prefix-uni_length -4]`' />\n",
\r
3258 "z": "5a4cb919.dfff38",
\r
3262 "id": "ab15b7a9.bc6bc8",
\r
3263 "type": "outcome",
\r
3264 "name": "esr-thirdparty-sdnc",
\r
3265 "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
\r
3270 "z": "5a4cb919.dfff38",
\r
3278 "id": "1405448e.40f263",
\r
3279 "type": "execute",
\r
3280 "name": "get esr-thirdparty-sdnc",
\r
3281 "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
3286 "z": "5a4cb919.dfff38",
\r
3289 "facba133.b01618",
\r
3290 "36457cd.f85a104",
\r
3296 "id": "be2440af.c20c98",
\r
3298 "name": "block : atomic",
\r
3299 "xml": "<block atomic=\"true\">",
\r
3304 "z": "5a4cb919.dfff38",
\r
3313 "id": "eec40e11.9fdab",
\r
3315 "name": "set esr-thirdparty-sdnc domainConn id",
\r
3316 "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
3320 "z": "5a4cb919.dfff38",
\r
3324 "id": "facba133.b01618",
\r
3325 "type": "success",
\r
3326 "name": "success",
\r
3327 "xml": "<outcome value='success'>\n",
\r
3332 "z": "5a4cb919.dfff38",
\r
3340 "id": "36457cd.f85a104",
\r
3341 "type": "not-found",
\r
3342 "name": "not-found",
\r
3343 "xml": "<outcome value='not-found'>\n",
\r
3348 "z": "5a4cb919.dfff38",
\r
3356 "id": "a0c24437.cf174",
\r
3359 "xml": "<outcome value='Other'>\n",
\r
3364 "z": "5a4cb919.dfff38",
\r
3372 "id": "f91dd017.676d7",
\r
3373 "type": "returnFailure",
\r
3374 "name": "return failure",
\r
3375 "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
3379 "z": "5a4cb919.dfff38",
\r
3383 "id": "6ca22053.c9fba8",
\r
3384 "type": "returnFailure",
\r
3385 "name": "return failure",
\r
3386 "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
3390 "z": "5a4cb919.dfff38",
\r
3394 "id": "926a046d.eed228",
\r
3397 "xml": "<block>\n",
\r
3398 "atomic": "false",
\r
3401 "x": 2234.38232421875,
\r
3402 "y": 2279.6556701660156,
\r
3403 "z": "5a4cb919.dfff38",
\r
3411 "id": "1e25e04f.ee7df",
\r
3413 "name": "set controller domainConn data",
\r
3414 "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
3418 "z": "5a4cb919.dfff38",
\r
3422 "id": "46842cb8.91c5bc",
\r
3423 "type": "get-resource",
\r
3424 "name": "get-resource src pnf",
\r
3425 "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
3430 "z": "5a4cb919.dfff38",
\r
3434 "e1101309.b00428",
\r
3440 "id": "80e94eed.70f82",
\r
3441 "type": "success",
\r
3442 "name": "success",
\r
3443 "xml": "<outcome value='success'>\n",
\r
3446 "x": 768.5001220703125,
\r
3448 "z": "5a4cb919.dfff38",
\r
3456 "id": "e1101309.b00428",
\r
3457 "type": "not-found",
\r
3458 "name": "not-found",
\r
3459 "xml": "<outcome value='not-found'>\n",
\r
3462 "x": 760.5001220703125,
\r
3464 "z": "5a4cb919.dfff38",
\r
3472 "id": "a961cabf.5d77d8",
\r
3475 "xml": "<block>\n",
\r
3476 "atomic": "false",
\r
3479 "x": 912.8824462890625,
\r
3480 "y": 2275.6556701660156,
\r
3481 "z": "5a4cb919.dfff38",
\r
3489 "id": "41f5578e.096c08",
\r
3491 "name": "for each relationship",
\r
3492 "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",
\r
3497 "z": "5a4cb919.dfff38",
\r
3505 "id": "78702bad.3695f4",
\r
3506 "type": "switchNode",
\r
3507 "name": "switch related-to",
\r
3508 "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
\r
3513 "z": "5a4cb919.dfff38",
\r
3521 "id": "6cefa506.12a2dc",
\r
3524 "xml": "<outcome value='Other'>\n",
\r
3527 "x": 765.5001220703125,
\r
3529 "z": "5a4cb919.dfff38",
\r
3537 "id": "bbb236e9.1d475",
\r
3538 "type": "returnFailure",
\r
3539 "name": "return failure",
\r
3540 "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
3542 "x": 917.5001220703125,
\r
3544 "z": "5a4cb919.dfff38",
\r
3548 "id": "cfce6a08.8d1818",
\r
3549 "type": "returnFailure",
\r
3550 "name": "return failure",
\r
3551 "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
3553 "x": 928.5001220703125,
\r
3555 "z": "5a4cb919.dfff38",
\r
3559 "id": "fd11a034.71ffe8",
\r
3561 "name": "set tmp.pnf-name-forUrl",
\r
3562 "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
3566 "z": "5a4cb919.dfff38",
\r
3570 "id": "2ab715a0.ab46a2",
\r
3572 "name": "block : atomic",
\r
3573 "xml": "<block atomic=\"true\">",
\r
3579 "z": "5a4cb919.dfff38",
\r
3582 "fd11a034.71ffe8",
\r
3588 "id": "c68339b5.636678",
\r
3589 "type": "comment",
\r
3590 "name": "Temporary skipping this check - to support multiple instances in one slice",
\r
3593 "x": 1522.9666748046875,
\r
3594 "y": 184.88333129882812,
\r
3595 "z": "5a4cb919.dfff38",
\r
3599 "id": "6b1a691d.f6617",
\r
3600 "type": "returnFailure",
\r
3601 "name": "return failure",
\r
3602 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
3606 "z": "5a4cb919.dfff38",
\r
3610 "id": "a46faf22.6dbda8",
\r
3614 "atomic": "false",
\r
3619 "z": "5a4cb919.dfff38",
\r
3623 "eda2f0f7.d8fb38",
\r
3626 "445d8bb1.6c470c",
\r
3636 "id": "ee82569c.a25768",
\r
3637 "type": "switchNode",
\r
3638 "name": "switch uni type",
\r
3639 "xml": "<switch test=\"`$tmp.aai.uni.type`\">\n\n",
\r
3644 "z": "5a4cb919.dfff38",
\r
3647 "ef11d348.e67b18",
\r
3655 "id": "ef11d348.e67b18",
\r
3656 "type": "outcome",
\r
3658 "xml": "<outcome value='leaf'>\n",
\r
3663 "z": "5a4cb919.dfff38",
\r
3666 "1989ebd9.8b76bc",
\r
3672 "id": "db4eac49.9ee78",
\r
3673 "type": "outcome",
\r
3675 "xml": "<outcome value='root'>\n",
\r
3680 "z": "5a4cb919.dfff38",
\r
3689 "id": "8a1e26c1.925918",
\r
3692 "xml": "<outcome value='Other'>\n",
\r
3697 "z": "5a4cb919.dfff38",
\r
3705 "id": "ccd7386e.438c4",
\r
3706 "type": "outcome",
\r
3707 "name": "root-secondary",
\r
3708 "xml": "<outcome value='root-secondary'>\n",
\r
3713 "z": "5a4cb919.dfff38",
\r
3716 "8dd3ee03.704618",
\r
3722 "id": "8dd3ee03.704618",
\r
3724 "name": "unset ethernet-srv-end-points-list",
\r
3725 "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
3729 "z": "5a4cb919.dfff38",
\r
3733 "id": "3acf3b0f.3b0184",
\r
3735 "name": "set leafOrRootAccess",
\r
3736 "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:root-secondary' />\n",
\r
3740 "z": "5a4cb919.dfff38",
\r
3744 "id": "af3eb285.34bda8",
\r
3748 "atomic": "false",
\r
3753 "z": "5a4cb919.dfff38",
\r