3 "id": "c170e1ed.7b781",
\r
9 "z": "bc289cb4.31b288",
\r
17 "id": "9970ac63.cab4e",
\r
18 "type": "service-logic",
\r
19 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
20 "module": "GENERIC-RESOURCE-API",
\r
21 "version": "${project.version}",
\r
23 "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
\r
25 "x": 268.2856903076172,
\r
26 "y": 131.23810863494873,
\r
27 "z": "bc289cb4.31b288",
\r
35 "id": "d984e08f.709ec8",
\r
37 "name": "method tsli-vnf-topology-operation-trans-slice-activate",
\r
38 "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-activate' mode='sync'>\n",
\r
41 "x": 271.4286193847656,
\r
42 "y": 216.00003242492676,
\r
43 "z": "bc289cb4.31b288",
\r
51 "id": "8e4db78f.c5ff38",
\r
53 "name": "block : atomic",
\r
54 "xml": "<block atomic=\"true\">",
\r
57 "x": 421.238037109375,
\r
58 "y": 345.6666564941406,
\r
59 "z": "bc289cb4.31b288",
\r
69 "id": "6bde1442.84f93c",
\r
70 "type": "returnSuccess",
\r
71 "name": "return success",
\r
72 "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
\r
74 "x": 689.5716552734375,
\r
75 "y": 732.59716796875,
\r
76 "z": "bc289cb4.31b288",
\r
80 "id": "233d87e5.a24f7",
\r
82 "name": "new for TransportSlicing",
\r
87 "z": "bc289cb4.31b288",
\r
91 "id": "d81cbe5a.85cea",
\r
93 "name": "get service-instance from aai",
\r
94 "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
99 "z": "bc289cb4.31b288",
\r
109 "id": "b0036e6b.1878c8",
\r
112 "xml": "<outcome value='success'>\n",
\r
117 "z": "bc289cb4.31b288",
\r
125 "id": "7901c2f.e699b3c",
\r
126 "type": "not-found",
\r
127 "name": "not-found",
\r
128 "xml": "<outcome value='not-found'>\n",
\r
131 "x": 969.490966796875,
\r
132 "y": 483.57403564453125,
\r
133 "z": "bc289cb4.31b288",
\r
141 "id": "120c06e4.dff209",
\r
144 "xml": "<outcome value='failure'>\n",
\r
149 "z": "bc289cb4.31b288",
\r
157 "id": "fe34f5d.3d31308",
\r
158 "type": "returnFailure",
\r
159 "name": "return failure",
\r
160 "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
162 "x": 1123.0623779296875,
\r
163 "y": 486.8597717285156,
\r
164 "z": "bc289cb4.31b288",
\r
168 "id": "6d39868f.7f25c8",
\r
169 "type": "returnFailure",
\r
170 "name": "return failure",
\r
171 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
175 "z": "bc289cb4.31b288",
\r
179 "id": "9167ffc3.5d91a",
\r
181 "name": "for each relationship",
\r
182 "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",
\r
187 "z": "bc289cb4.31b288",
\r
195 "id": "5c1ddd56.ddffa4",
\r
196 "type": "switchNode",
\r
197 "name": "switch related-to",
\r
198 "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",
\r
201 "x": 1380.33349609375,
\r
202 "y": 436.99993896484375,
\r
203 "z": "bc289cb4.31b288",
\r
211 "id": "aeacbf90.6ab9e",
\r
213 "name": "connectivity",
\r
214 "xml": "<outcome value='connectivity'>\n",
\r
217 "x": 1581.0001335144043,
\r
218 "y": 438.00002098083496,
\r
219 "z": "bc289cb4.31b288",
\r
227 "id": "fd4d27b6.bd205",
\r
229 "name": "set attachment_param for OTN A",
\r
230 "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
234 "z": "bc289cb4.31b288",
\r
238 "id": "7648091a.a03898",
\r
240 "name": "execute RestApiCallNode Create OTN tunnel with token",
\r
241 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-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
246 "z": "bc289cb4.31b288",
\r
255 "id": "9edc273d.67b87",
\r
258 "xml": "<outcome value='failure'>\n",
\r
263 "z": "bc289cb4.31b288",
\r
271 "id": "9c60eb24.47f378",
\r
274 "xml": "<outcome value='success'>\n",
\r
279 "z": "bc289cb4.31b288",
\r
287 "id": "9905c30a.05be",
\r
288 "type": "returnFailure",
\r
289 "name": "return failure",
\r
290 "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
294 "z": "bc289cb4.31b288",
\r
298 "id": "8e92f9d2.75f4a8",
\r
300 "name": "block : atomic",
\r
301 "xml": "<block atomic=\"true\">",
\r
307 "z": "bc289cb4.31b288",
\r
313 "id": "7974f996.7603f8",
\r
315 "name": "set sotn_value",
\r
316 "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
320 "z": "bc289cb4.31b288",
\r
324 "id": "1460b865.7cff48",
\r
326 "name": "execute RestApiCallNode Create ethernet Service without token",
\r
327 "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
332 "z": "bc289cb4.31b288",
\r
341 "id": "d6a6995b.244f78",
\r
344 "xml": "<outcome value='failure'>\n",
\r
349 "z": "bc289cb4.31b288",
\r
357 "id": "3058a60d.1382f2",
\r
360 "xml": "<outcome value='success'>\n",
\r
365 "z": "bc289cb4.31b288",
\r
373 "id": "9008a0fb.361338",
\r
374 "type": "returnFailure",
\r
375 "name": "return failure",
\r
376 "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
380 "z": "bc289cb4.31b288",
\r
384 "id": "5c04d202.902b9c",
\r
386 "name": "block : atomic",
\r
387 "xml": "<block atomic=\"true\">",
\r
393 "z": "bc289cb4.31b288",
\r
402 "id": "471d2a77.3a42ac",
\r
404 "name": "TODO: FIXME:",
\r
405 "info": "put proper values based on connectivity resource retrieved from AAI",
\r
409 "z": "bc289cb4.31b288",
\r
413 "id": "ec17d55b.a0804",
\r
415 "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",
\r
416 "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
421 "z": "bc289cb4.31b288",
\r
427 "id": "4e9eb117.9357d",
\r
429 "name": "TODO: FIXME",
\r
430 "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
\r
434 "z": "bc289cb4.31b288",
\r
438 "id": "144849a3.b4133e",
\r
440 "name": "update connectivity resource in AAI",
\r
441 "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
446 "z": "bc289cb4.31b288",
\r
452 "id": "4f40e2d1.4262ec",
\r
454 "name": "set pnf-name",
\r
455 "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
459 "z": "bc289cb4.31b288",
\r
463 "id": "8abcb98.e721cc8",
\r
464 "type": "get-resource",
\r
465 "name": "get-resource src pnf",
\r
466 "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
471 "z": "bc289cb4.31b288",
\r
481 "id": "3115ae28.00936a",
\r
484 "xml": "<outcome value='success'>\n",
\r
487 "x": 4559.5001220703125,
\r
489 "z": "bc289cb4.31b288",
\r
497 "id": "34440f82.2778b8",
\r
498 "type": "not-found",
\r
499 "name": "not-found",
\r
500 "xml": "<outcome value='not-found'>\n",
\r
503 "x": 4551.5001220703125,
\r
505 "z": "bc289cb4.31b288",
\r
513 "id": "5640c3a4.e53454",
\r
516 "xml": "<block>\n",
\r
520 "x": 4703.8824462890625,
\r
521 "y": 270.6556701660156,
\r
522 "z": "bc289cb4.31b288",
\r
530 "id": "e2a3abe6.94632",
\r
532 "name": "esr-thirdparty-sdnc",
\r
533 "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
\r
538 "z": "bc289cb4.31b288",
\r
546 "id": "4125afdc.dc7c38",
\r
548 "name": "for each relationship",
\r
549 "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",
\r
554 "z": "bc289cb4.31b288",
\r
562 "id": "7289fd85.50ab7c",
\r
563 "type": "switchNode",
\r
564 "name": "switch related-to",
\r
565 "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
\r
570 "z": "bc289cb4.31b288",
\r
578 "id": "5e322ae1.288484",
\r
581 "xml": "<outcome value='Other'>\n",
\r
584 "x": 4556.5001220703125,
\r
586 "z": "bc289cb4.31b288",
\r
594 "id": "a5591b6a.a340a8",
\r
595 "type": "returnFailure",
\r
596 "name": "return failure",
\r
597 "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
599 "x": 4708.5001220703125,
\r
601 "z": "bc289cb4.31b288",
\r
605 "id": "b5a71ca6.0ed8a",
\r
606 "type": "returnFailure",
\r
607 "name": "return failure",
\r
608 "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
610 "x": 4719.5001220703125,
\r
612 "z": "bc289cb4.31b288",
\r
616 "id": "ca9f1df7.d822c",
\r
618 "name": "get esr-thirdparty-sdnc",
\r
619 "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
624 "z": "bc289cb4.31b288",
\r
634 "id": "e7a85e47.2ddf5",
\r
636 "name": "block : atomic",
\r
637 "xml": "<block atomic=\"true\">",
\r
642 "z": "bc289cb4.31b288",
\r
651 "id": "211b93a9.ce5f0c",
\r
653 "name": "set esr-thirdparty-sdnc domainA id",
\r
654 "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
658 "z": "bc289cb4.31b288",
\r
662 "id": "d6fa81cb.78d2d",
\r
665 "xml": "<outcome value='success'>\n",
\r
670 "z": "bc289cb4.31b288",
\r
678 "id": "bcf1b063.c95248",
\r
679 "type": "not-found",
\r
680 "name": "not-found",
\r
681 "xml": "<outcome value='not-found'>\n",
\r
686 "z": "bc289cb4.31b288",
\r
694 "id": "109a3661.2bbbd2",
\r
697 "xml": "<outcome value='Other'>\n",
\r
702 "z": "bc289cb4.31b288",
\r
710 "id": "76f805.e622cffc",
\r
711 "type": "returnFailure",
\r
712 "name": "return failure",
\r
713 "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
717 "z": "bc289cb4.31b288",
\r
721 "id": "bfa4b512.849248",
\r
722 "type": "returnFailure",
\r
723 "name": "return failure",
\r
724 "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
728 "z": "bc289cb4.31b288",
\r
732 "id": "bf2e4f3b.81ed8",
\r
735 "xml": "<block>\n",
\r
739 "x": 6025.38232421875,
\r
740 "y": 274.6556701660156,
\r
741 "z": "bc289cb4.31b288",
\r
749 "id": "76b40334.8bd094",
\r
751 "name": "set controller domainA data",
\r
752 "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
756 "z": "bc289cb4.31b288",
\r
760 "id": "2a368168.cab60e",
\r
762 "name": "execute properties",
\r
763 "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
768 "z": "bc289cb4.31b288",
\r
774 "id": "3bea0429.f0ebac",
\r
776 "name": "set attachment_param for OTN B",
\r
777 "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
781 "z": "bc289cb4.31b288",
\r
785 "id": "d501f859.eecd18",
\r
787 "name": "execute RestApiCallNode Create OTN tunnel with token",
\r
788 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-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
793 "z": "bc289cb4.31b288",
\r
802 "id": "8a516999.f983f8",
\r
805 "xml": "<outcome value='failure'>\n",
\r
810 "z": "bc289cb4.31b288",
\r
818 "id": "e1e3477c.cb45b",
\r
821 "xml": "<outcome value='success'>\n",
\r
826 "z": "bc289cb4.31b288",
\r
834 "id": "1f32cbd.2007fb4",
\r
835 "type": "returnFailure",
\r
836 "name": "return failure",
\r
837 "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
841 "z": "bc289cb4.31b288",
\r
845 "id": "5be15aea.63aa2c",
\r
847 "name": "block : atomic",
\r
848 "xml": "<block atomic=\"true\">",
\r
854 "z": "bc289cb4.31b288",
\r
860 "id": "32f45e6c.4d0bea",
\r
862 "name": "set pnf-name",
\r
863 "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
867 "z": "bc289cb4.31b288",
\r
871 "id": "e8ca7925.e0f8c",
\r
872 "type": "get-resource",
\r
873 "name": "get-resource dst pnf",
\r
874 "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
879 "z": "bc289cb4.31b288",
\r
889 "id": "9bb092a5.d05b48",
\r
892 "xml": "<outcome value='success'>\n",
\r
895 "x": 3968.5001220703125,
\r
897 "z": "bc289cb4.31b288",
\r
905 "id": "221dd2f3.9ac236",
\r
906 "type": "not-found",
\r
907 "name": "not-found",
\r
908 "xml": "<outcome value='not-found'>\n",
\r
911 "x": 3960.5001220703125,
\r
913 "z": "bc289cb4.31b288",
\r
921 "id": "b690bac2.55724",
\r
924 "xml": "<block>\n",
\r
928 "x": 4112.8824462890625,
\r
929 "y": 1715.6556701660156,
\r
930 "z": "bc289cb4.31b288",
\r
938 "id": "bc889fde.13a798",
\r
940 "name": "for each relationship",
\r
941 "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",
\r
946 "z": "bc289cb4.31b288",
\r
954 "id": "26d51b0f.5d004c",
\r
957 "xml": "<outcome value='Other'>\n",
\r
960 "x": 3965.5001220703125,
\r
962 "z": "bc289cb4.31b288",
\r
970 "id": "5f4cb2c4.11fb94",
\r
971 "type": "returnFailure",
\r
972 "name": "return failure",
\r
973 "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
975 "x": 4117.5001220703125,
\r
977 "z": "bc289cb4.31b288",
\r
981 "id": "b19648bb.51984",
\r
982 "type": "returnFailure",
\r
983 "name": "return failure",
\r
984 "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
986 "x": 4128.5001220703125,
\r
988 "z": "bc289cb4.31b288",
\r
992 "id": "73a1b393.2e09c4",
\r
994 "name": "esr-thirdparty-sdnc",
\r
995 "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
\r
1000 "z": "bc289cb4.31b288",
\r
1008 "id": "6cdbe20d.6924d4",
\r
1009 "type": "switchNode",
\r
1010 "name": "switch related-to",
\r
1011 "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",
\r
1016 "z": "bc289cb4.31b288",
\r
1024 "id": "1f5d9d19.39869b",
\r
1025 "type": "execute",
\r
1026 "name": "get esr-thirdparty-sdnc",
\r
1027 "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
1032 "z": "bc289cb4.31b288",
\r
1036 "66c76394.d1fea4",
\r
1042 "id": "ab9ee354.2292b",
\r
1044 "name": "block : atomic",
\r
1045 "xml": "<block atomic=\"true\">",
\r
1050 "z": "bc289cb4.31b288",
\r
1053 "28e5278d.3f4238",
\r
1059 "id": "28e5278d.3f4238",
\r
1061 "name": "set esr-thirdparty-sdnc domainB id",
\r
1062 "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
1066 "z": "bc289cb4.31b288",
\r
1070 "id": "8616ea00.2e5968",
\r
1071 "type": "returnFailure",
\r
1072 "name": "return failure",
\r
1073 "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
1077 "z": "bc289cb4.31b288",
\r
1081 "id": "8ef11dae.da91",
\r
1082 "type": "returnFailure",
\r
1083 "name": "return failure",
\r
1084 "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
1088 "z": "bc289cb4.31b288",
\r
1092 "id": "d4ab39c.829a8c8",
\r
1095 "xml": "<block>\n",
\r
1096 "atomic": "false",
\r
1099 "x": 5434.38232421875,
\r
1100 "y": 1721.6556701660156,
\r
1101 "z": "bc289cb4.31b288",
\r
1109 "id": "4d0c934c.0c9114",
\r
1111 "name": "set controller domainB data",
\r
1112 "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
1116 "z": "bc289cb4.31b288",
\r
1120 "id": "9355225.5c1536",
\r
1121 "type": "success",
\r
1122 "name": "success",
\r
1123 "xml": "<outcome value='success'>\n",
\r
1128 "z": "bc289cb4.31b288",
\r
1136 "id": "66c76394.d1fea4",
\r
1137 "type": "not-found",
\r
1138 "name": "not-found",
\r
1139 "xml": "<outcome value='not-found'>\n",
\r
1144 "z": "bc289cb4.31b288",
\r
1152 "id": "2e8b8501.9ee95a",
\r
1155 "xml": "<outcome value='Other'>\n",
\r
1160 "z": "bc289cb4.31b288",
\r
1168 "id": "7ea091c4.73eb6",
\r
1170 "name": "get connectivity from aai",
\r
1171 "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
1176 "z": "bc289cb4.31b288",
\r
1179 "cf96a339.12fc08",
\r
1180 "ebf1abf2.c0a2b8",
\r
1186 "id": "cf96a339.12fc08",
\r
1187 "type": "success",
\r
1188 "name": "success",
\r
1189 "xml": "<outcome value='success'>\n",
\r
1194 "z": "bc289cb4.31b288",
\r
1202 "id": "ebf1abf2.c0a2b8",
\r
1203 "type": "not-found",
\r
1204 "name": "not-found",
\r
1205 "xml": "<outcome value='not-found'>\n",
\r
1208 "x": 2027.490966796875,
\r
1209 "y": 449.57403564453125,
\r
1210 "z": "bc289cb4.31b288",
\r
1218 "id": "a6813928.711c6",
\r
1219 "type": "failure",
\r
1220 "name": "failure",
\r
1221 "xml": "<outcome value='failure'>\n",
\r
1226 "z": "bc289cb4.31b288",
\r
1234 "id": "b2e1099a.08fc3",
\r
1235 "type": "returnFailure",
\r
1236 "name": "return failure",
\r
1237 "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
1239 "x": 2190.0623779296875,
\r
1240 "y": 449.8597717285156,
\r
1241 "z": "bc289cb4.31b288",
\r
1245 "id": "8f5ccf37.c152",
\r
1246 "type": "returnFailure",
\r
1247 "name": "return failure",
\r
1248 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
1252 "z": "bc289cb4.31b288",
\r
1256 "id": "2f04c146.0a3af6",
\r
1258 "name": "get vpn-binding from aai",
\r
1259 "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
1264 "z": "bc289cb4.31b288",
\r
1267 "675654a6.d7ff34",
\r
1268 "15ae8ffb.52d9c8",
\r
1274 "id": "c4252359.e0b548",
\r
1276 "name": "block : atomic",
\r
1277 "xml": "<block atomic=\"true\">",
\r
1282 "z": "bc289cb4.31b288",
\r
1285 "cf117e36.f49698",
\r
1291 "id": "675654a6.d7ff34",
\r
1292 "type": "success",
\r
1293 "name": "success",
\r
1294 "xml": "<outcome value='success'>\n",
\r
1299 "z": "bc289cb4.31b288",
\r
1307 "id": "15ae8ffb.52d9c8",
\r
1308 "type": "not-found",
\r
1309 "name": "not-found",
\r
1310 "xml": "<outcome value='not-found'>\n",
\r
1313 "x": 2711.490966796875,
\r
1314 "y": 540.5740356445312,
\r
1315 "z": "bc289cb4.31b288",
\r
1323 "id": "5de62fdc.3f5a78",
\r
1324 "type": "failure",
\r
1325 "name": "failure",
\r
1326 "xml": "<outcome value='failure'>\n",
\r
1331 "z": "bc289cb4.31b288",
\r
1339 "id": "96b5913.ff6507",
\r
1340 "type": "returnFailure",
\r
1341 "name": "return failure",
\r
1342 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
1346 "z": "bc289cb4.31b288",
\r
1350 "id": "1c0c1f66.646011",
\r
1351 "type": "returnFailure",
\r
1352 "name": "return failure",
\r
1353 "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
1355 "x": 2874.0623779296875,
\r
1356 "y": 540.8597717285156,
\r
1357 "z": "bc289cb4.31b288",
\r
1361 "id": "7e9b774d.9e8c28",
\r
1363 "name": "for each relationship",
\r
1364 "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
\r
1369 "z": "bc289cb4.31b288",
\r
1377 "id": "a33b5641.550dd8",
\r
1378 "type": "switchNode",
\r
1379 "name": "switch related-to",
\r
1380 "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
\r
1385 "z": "bc289cb4.31b288",
\r
1393 "id": "dcc9c2f.bdc72c",
\r
1394 "type": "outcome",
\r
1395 "name": "vpn-binding",
\r
1396 "xml": "<outcome value='vpn-binding'>\n",
\r
1401 "z": "bc289cb4.31b288",
\r
1409 "id": "b86471e.744979",
\r
1411 "name": "block : atomic",
\r
1412 "xml": "<block atomic=\"true\">",
\r
1417 "z": "bc289cb4.31b288",
\r
1420 "2f04c146.0a3af6",
\r
1426 "id": "cf117e36.f49698",
\r
1427 "type": "switchNode",
\r
1428 "name": "switch vpn-binding has dst-access-ltp",
\r
1429 "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>\n",
\r
1434 "z": "bc289cb4.31b288",
\r
1437 "965ac3c2.a1d608",
\r
1443 "id": "965ac3c2.a1d608",
\r
1444 "type": "outcome",
\r
1446 "xml": "<outcome value=''>\n",
\r
1451 "z": "bc289cb4.31b288",
\r
1459 "id": "6bf420f8.6129c8",
\r
1462 "xml": "<outcome value='Other'>\n",
\r
1467 "z": "bc289cb4.31b288",
\r
1475 "id": "f82e8947.2d7ce8",
\r
1476 "type": "switchNode",
\r
1477 "name": "switch vpn-binding has src-access-ltp",
\r
1478 "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",
\r
1483 "z": "bc289cb4.31b288",
\r
1486 "10da65e0.f509ca",
\r
1492 "id": "10da65e0.f509ca",
\r
1493 "type": "outcome",
\r
1495 "xml": "<outcome value=''>\n",
\r
1500 "z": "bc289cb4.31b288",
\r
1508 "id": "73ba091f.6ce2a",
\r
1511 "xml": "<outcome value='Other'>\n",
\r
1516 "z": "bc289cb4.31b288",
\r
1524 "id": "d3f311e2.47dc9",
\r
1525 "type": "returnFailure",
\r
1526 "name": "return failure",
\r
1527 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
1531 "z": "bc289cb4.31b288",
\r
1535 "id": "fb92b32f.578d9",
\r
1537 "name": "set vpn-bindingA and connectivityA",
\r
1538 "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
1542 "z": "bc289cb4.31b288",
\r
1546 "id": "16b6eb5a.c037cd",
\r
1548 "name": "set vpn-bindingB and connectivityB",
\r
1549 "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
1553 "z": "bc289cb4.31b288",
\r
1557 "id": "b5fbea6d.693118",
\r
1559 "name": "block : atomic",
\r
1560 "xml": "<block atomic=\"true\">",
\r
1566 "z": "bc289cb4.31b288",
\r
1571 "4f40e2d1.4262ec",
\r
1572 "8abcb98.e721cc8",
\r
1573 "7974f996.7603f8",
\r
1574 "1460b865.7cff48",
\r
1580 "id": "4a6141b6.6b0c98",
\r
1582 "name": "block : atomic",
\r
1583 "xml": "<block atomic=\"true\">",
\r
1588 "z": "bc289cb4.31b288",
\r
1591 "16b6eb5a.c037cd",
\r
1592 "3bea0429.f0ebac",
\r
1593 "32f45e6c.4d0bea",
\r
1595 "d501f859.eecd18",
\r
1596 "dfc89384.6f3b98",
\r
1602 "id": "dfc89384.6f3b98",
\r
1604 "name": "set sotn_value",
\r
1605 "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
1609 "z": "bc289cb4.31b288",
\r
1613 "id": "7e08fa79.0c018c",
\r
1614 "type": "execute",
\r
1615 "name": "execute RestApiCallNode Create ethernet Service without token",
\r
1616 "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
1621 "z": "bc289cb4.31b288",
\r
1630 "id": "dd71fa1b.6e05f",
\r
1631 "type": "failure",
\r
1632 "name": "failure",
\r
1633 "xml": "<outcome value='failure'>\n",
\r
1638 "z": "bc289cb4.31b288",
\r
1646 "id": "23079c35.06b53c",
\r
1647 "type": "success",
\r
1648 "name": "success",
\r
1649 "xml": "<outcome value='success'>\n",
\r
1654 "z": "bc289cb4.31b288",
\r
1662 "id": "531e9904.6c0cf",
\r
1663 "type": "returnFailure",
\r
1664 "name": "return failure",
\r
1665 "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
1669 "z": "bc289cb4.31b288",
\r
1673 "id": "ca751a91.a1fc5",
\r
1675 "name": "block : atomic",
\r
1676 "xml": "<block atomic=\"true\">",
\r
1682 "z": "bc289cb4.31b288",
\r
1691 "id": "ed3d8ab7.5da83",
\r
1692 "type": "comment",
\r
1693 "name": "TODO: FIXME:",
\r
1694 "info": "put proper values based on connectivity resource retrieved from AAI",
\r
1698 "z": "bc289cb4.31b288",
\r
1702 "id": "acce8a06.32f9",
\r
1704 "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",
\r
1705 "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
1710 "z": "bc289cb4.31b288",
\r
1716 "id": "dd0732a8.6dcd38",
\r
1717 "type": "comment",
\r
1718 "name": "TODO: FIXME",
\r
1719 "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
\r
1723 "z": "bc289cb4.31b288",
\r
1727 "id": "300cb80e.add27",
\r
1729 "name": "update connectivity resource in AAI",
\r
1730 "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
1735 "z": "bc289cb4.31b288",
\r
1741 "id": "9e15ad66.cb5638",
\r
1743 "name": "set attachment_param (gfp-n) for OTN",
\r
1744 "xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",
\r
1748 "z": "bc289cb4.31b288",
\r
1752 "id": "65e4f8bf.6cf8f",
\r
1754 "name": "unset tmp.aai.vpn-binding",
\r
1755 "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",
\r
1759 "z": "bc289cb4.31b288",
\r
1763 "id": "198fcdf8.1e22c2",
\r
1764 "type": "comment",
\r
1765 "name": "only dst ttp exists. No src",
\r
1770 "z": "bc289cb4.31b288",
\r
1774 "id": "ca0cd7a2.5ca728",
\r
1775 "type": "comment",
\r
1776 "name": "only src ttp exists. No dst",
\r
1781 "z": "bc289cb4.31b288",
\r
1785 "id": "aacf39c3.b541a",
\r
1786 "type": "switchNode",
\r
1787 "name": "switch vpn-binding has src-access-ltp",
\r
1788 "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",
\r
1793 "z": "bc289cb4.31b288",
\r
1796 "df2281b1.f49f38",
\r
1802 "id": "aea11bc2.879238",
\r
1805 "xml": "<outcome value='Other'>\n",
\r
1810 "z": "bc289cb4.31b288",
\r
1818 "id": "df2281b1.f49f38",
\r
1819 "type": "outcome",
\r
1821 "xml": "<outcome value=''>\n",
\r
1826 "z": "bc289cb4.31b288",
\r
1834 "id": "f4291584.31d5f8",
\r
1836 "name": "block : atomic",
\r
1837 "xml": "<block atomic=\"true\">",
\r
1842 "z": "bc289cb4.31b288",
\r
1845 "507acb8a.026844",
\r
1846 "328f5ebe.d2c3f2",
\r
1847 "282b55f0.c4b452",
\r
1848 "f1d5dfc2.902f38",
\r
1854 "id": "328f5ebe.d2c3f2",
\r
1856 "name": "set attachment_param for OTN G",
\r
1857 "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
1861 "z": "bc289cb4.31b288",
\r
1865 "id": "e32fad74.744d",
\r
1866 "type": "execute",
\r
1867 "name": "execute RestApiCallNode Create OTN tunnel with token",
\r
1868 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-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
1873 "z": "bc289cb4.31b288",
\r
1882 "id": "4fa7d7bd.5a2ab",
\r
1883 "type": "failure",
\r
1884 "name": "failure",
\r
1885 "xml": "<outcome value='failure'>\n",
\r
1890 "z": "bc289cb4.31b288",
\r
1898 "id": "f472be3.5d0074",
\r
1899 "type": "success",
\r
1900 "name": "success",
\r
1901 "xml": "<outcome value='success'>\n",
\r
1906 "z": "bc289cb4.31b288",
\r
1914 "id": "1f127e35.6d237a",
\r
1915 "type": "returnFailure",
\r
1916 "name": "return failure",
\r
1917 "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
1921 "z": "bc289cb4.31b288",
\r
1925 "id": "5d6567d4.56edf",
\r
1927 "name": "block : atomic",
\r
1928 "xml": "<block atomic=\"true\">",
\r
1934 "z": "bc289cb4.31b288",
\r
1940 "id": "282b55f0.c4b452",
\r
1942 "name": "set pnf-name",
\r
1943 "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
1947 "z": "bc289cb4.31b288",
\r
1951 "id": "f1d5dfc2.902f38",
\r
1952 "type": "get-resource",
\r
1953 "name": "get-resource src pnf",
\r
1954 "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
1959 "z": "bc289cb4.31b288",
\r
1963 "5f6c0c85.ca44ac",
\r
1969 "id": "b1abc6d5.732f1",
\r
1970 "type": "success",
\r
1971 "name": "success",
\r
1972 "xml": "<outcome value='success'>\n",
\r
1975 "x": 4466.5001220703125,
\r
1977 "z": "bc289cb4.31b288",
\r
1985 "id": "5f6c0c85.ca44ac",
\r
1986 "type": "not-found",
\r
1987 "name": "not-found",
\r
1988 "xml": "<outcome value='not-found'>\n",
\r
1991 "x": 4458.5001220703125,
\r
1993 "z": "bc289cb4.31b288",
\r
2001 "id": "7b990f0b.20c288",
\r
2004 "xml": "<block>\n",
\r
2005 "atomic": "false",
\r
2008 "x": 4610.8824462890625,
\r
2009 "y": 1057.6556701660156,
\r
2010 "z": "bc289cb4.31b288",
\r
2018 "id": "c8fb728b.2dc648",
\r
2020 "name": "for each relationship",
\r
2021 "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",
\r
2026 "z": "bc289cb4.31b288",
\r
2034 "id": "d59f0b39.d31cc8",
\r
2035 "type": "switchNode",
\r
2036 "name": "switch related-to",
\r
2037 "xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
\r
2042 "z": "bc289cb4.31b288",
\r
2050 "id": "386d37a9.f48098",
\r
2053 "xml": "<outcome value='Other'>\n",
\r
2056 "x": 4463.5001220703125,
\r
2058 "z": "bc289cb4.31b288",
\r
2066 "id": "46492ab4.cb6c04",
\r
2067 "type": "returnFailure",
\r
2068 "name": "return failure",
\r
2069 "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
2071 "x": 4615.5001220703125,
\r
2073 "z": "bc289cb4.31b288",
\r
2077 "id": "315f8841.f40a1",
\r
2078 "type": "returnFailure",
\r
2079 "name": "return failure",
\r
2080 "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
2082 "x": 4626.5001220703125,
\r
2084 "z": "bc289cb4.31b288",
\r
2088 "id": "507acb8a.026844",
\r
2090 "name": "set vpn-bindingG and connectivityG",
\r
2091 "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
2095 "z": "bc289cb4.31b288",
\r
2099 "id": "7e05c38e.6d5cbc",
\r
2100 "type": "outcome",
\r
2101 "name": "esr-thirdparty-sdnc",
\r
2102 "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
\r
2107 "z": "bc289cb4.31b288",
\r
2115 "id": "6a766cec.04fc1c",
\r
2116 "type": "execute",
\r
2117 "name": "get esr-thirdparty-sdnc",
\r
2118 "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
2123 "z": "bc289cb4.31b288",
\r
2127 "a10da0b1.afaa18",
\r
2133 "id": "436389a3.57fb78",
\r
2135 "name": "block : atomic",
\r
2136 "xml": "<block atomic=\"true\">",
\r
2141 "z": "bc289cb4.31b288",
\r
2144 "507f9c6b.ef2c2c",
\r
2150 "id": "507f9c6b.ef2c2c",
\r
2152 "name": "set esr-thirdparty-sdnc domainG id",
\r
2153 "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
2157 "z": "bc289cb4.31b288",
\r
2161 "id": "985e5e77.801e6",
\r
2162 "type": "success",
\r
2163 "name": "success",
\r
2164 "xml": "<outcome value='success'>\n",
\r
2169 "z": "bc289cb4.31b288",
\r
2177 "id": "a10da0b1.afaa18",
\r
2178 "type": "not-found",
\r
2179 "name": "not-found",
\r
2180 "xml": "<outcome value='not-found'>\n",
\r
2185 "z": "bc289cb4.31b288",
\r
2193 "id": "4e466bf1.fc05c4",
\r
2196 "xml": "<outcome value='Other'>\n",
\r
2201 "z": "bc289cb4.31b288",
\r
2209 "id": "c4f4a10b.e46a6",
\r
2210 "type": "returnFailure",
\r
2211 "name": "return failure",
\r
2212 "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
2216 "z": "bc289cb4.31b288",
\r
2220 "id": "81ccddb5.3e1b1",
\r
2221 "type": "returnFailure",
\r
2222 "name": "return failure",
\r
2223 "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
2227 "z": "bc289cb4.31b288",
\r
2231 "id": "37e160ea.8f86d8",
\r
2234 "xml": "<block>\n",
\r
2235 "atomic": "false",
\r
2238 "x": 5932.38232421875,
\r
2239 "y": 1061.6556701660156,
\r
2240 "z": "bc289cb4.31b288",
\r
2248 "id": "4cbb09e8.a29488",
\r
2250 "name": "set controller domainG data",
\r
2251 "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
2255 "z": "bc289cb4.31b288",
\r
2259 "id": "28d376a3.473102",
\r
2260 "type": "comment",
\r
2261 "name": "both src and dst exist",
\r
2266 "z": "bc289cb4.31b288",
\r