3 "id": "eb07fd3d.499fe",
\r
9 "z": "f351885d.7dcd3",
\r
17 "id": "39c5ac20.45e1d4",
\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": 273.2856903076172,
\r
26 "y": 141.23810863494873,
\r
27 "z": "f351885d.7dcd3",
\r
35 "id": "2ea16900.365168",
\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": 276.4286193847656,
\r
42 "y": 226.00003242492676,
\r
43 "z": "f351885d.7dcd3",
\r
51 "id": "65a4788.f116c88",
\r
53 "name": "block : atomic",
\r
54 "xml": "<block atomic=\"true\">",
\r
57 "x": 426.238037109375,
\r
58 "y": 355.6666564941406,
\r
59 "z": "f351885d.7dcd3",
\r
69 "id": "57f656d8.02c09",
\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": 694.5716552734375,
\r
75 "y": 742.59716796875,
\r
76 "z": "f351885d.7dcd3",
\r
80 "id": "d36cebd.8be9418",
\r
82 "name": "new for TransportSlicing",
\r
87 "z": "f351885d.7dcd3",
\r
91 "id": "6ee54bdc.2fdd5c",
\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": "f351885d.7dcd3",
\r
109 "id": "4321e029.b0b21",
\r
112 "xml": "<outcome value='success'>\n",
\r
117 "z": "f351885d.7dcd3",
\r
125 "id": "df857197.b37508",
\r
126 "type": "not-found",
\r
127 "name": "not-found",
\r
128 "xml": "<outcome value='not-found'>\n",
\r
131 "x": 974.490966796875,
\r
132 "y": 493.57403564453125,
\r
133 "z": "f351885d.7dcd3",
\r
141 "id": "caa9bf62.bc7768",
\r
144 "xml": "<outcome value='failure'>\n",
\r
149 "z": "f351885d.7dcd3",
\r
157 "id": "9c66f3b5.ba5a",
\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": 1128.0623779296875,
\r
163 "y": 496.8597717285156,
\r
164 "z": "f351885d.7dcd3",
\r
168 "id": "83f89a00.0c0e7",
\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": "f351885d.7dcd3",
\r
179 "id": "1399e348.49a41d",
\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": "f351885d.7dcd3",
\r
195 "id": "8c655e36.efa51",
\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": 1385.33349609375,
\r
202 "y": 446.99993896484375,
\r
203 "z": "f351885d.7dcd3",
\r
211 "id": "dae7ff66.9b9c6",
\r
213 "name": "connectivity",
\r
214 "xml": "<outcome value='connectivity'>\n",
\r
217 "x": 1586.0001335144043,
\r
218 "y": 448.00002098083496,
\r
219 "z": "f351885d.7dcd3",
\r
227 "id": "73d91f0d.979448",
\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": "f351885d.7dcd3",
\r
238 "id": "53d5aef.e4ebbd",
\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": "f351885d.7dcd3",
\r
255 "id": "ecc00da.2c7107",
\r
258 "xml": "<outcome value='failure'>\n",
\r
263 "z": "f351885d.7dcd3",
\r
271 "id": "8ec5d396.327df",
\r
274 "xml": "<outcome value='success'>\n",
\r
279 "z": "f351885d.7dcd3",
\r
287 "id": "30cb0de4.d526fa",
\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": "f351885d.7dcd3",
\r
298 "id": "d98d92f9.c81fa",
\r
300 "name": "block : atomic",
\r
301 "xml": "<block atomic=\"true\">",
\r
307 "z": "f351885d.7dcd3",
\r
313 "id": "b72def38.869578",
\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": "f351885d.7dcd3",
\r
324 "id": "61d206ce.c84cc",
\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": "f351885d.7dcd3",
\r
341 "id": "4c218232.9ff344",
\r
344 "xml": "<outcome value='failure'>\n",
\r
349 "z": "f351885d.7dcd3",
\r
357 "id": "70cfc429.d9d73c",
\r
360 "xml": "<outcome value='success'>\n",
\r
365 "z": "f351885d.7dcd3",
\r
373 "id": "508ab9bd.6f59b",
\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": "f351885d.7dcd3",
\r
384 "id": "4484b215.bd52a4",
\r
386 "name": "block : atomic",
\r
387 "xml": "<block atomic=\"true\">",
\r
393 "z": "f351885d.7dcd3",
\r
402 "id": "1158b528.feaadb",
\r
404 "name": "TODO: FIXME:",
\r
405 "info": "put proper values based on connectivity resource retrieved from AAI",
\r
409 "z": "f351885d.7dcd3",
\r
413 "id": "d5eb1314.bae0c8",
\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": "f351885d.7dcd3",
\r
427 "id": "4e452bee.48e2ac",
\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": "f351885d.7dcd3",
\r
438 "id": "10b6b358.4dd2d5",
\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": "f351885d.7dcd3",
\r
452 "id": "cdb19fe7.3fcc18",
\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": "f351885d.7dcd3",
\r
463 "id": "83225463.070fc",
\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": "f351885d.7dcd3",
\r
481 "id": "c77a135e.0cf11",
\r
484 "xml": "<outcome value='success'>\n",
\r
487 "x": 4564.5001220703125,
\r
489 "z": "f351885d.7dcd3",
\r
497 "id": "733c4b21.b0276c",
\r
498 "type": "not-found",
\r
499 "name": "not-found",
\r
500 "xml": "<outcome value='not-found'>\n",
\r
503 "x": 4556.5001220703125,
\r
505 "z": "f351885d.7dcd3",
\r
513 "id": "fc1575d4.07ce9",
\r
516 "xml": "<block>\n",
\r
520 "x": 4708.8824462890625,
\r
521 "y": 280.6556701660156,
\r
522 "z": "f351885d.7dcd3",
\r
530 "id": "fb614f2c.314568",
\r
532 "name": "esr-thirdparty-sdnc",
\r
533 "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
\r
538 "z": "f351885d.7dcd3",
\r
546 "id": "26c3005d.c41c58",
\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": "f351885d.7dcd3",
\r
562 "id": "d1afc9f2.3db068",
\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": "f351885d.7dcd3",
\r
578 "id": "dfbdc2b7.10d7d",
\r
581 "xml": "<outcome value='Other'>\n",
\r
584 "x": 4561.5001220703125,
\r
586 "z": "f351885d.7dcd3",
\r
594 "id": "1874b649.d37aaa",
\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": 4713.5001220703125,
\r
601 "z": "f351885d.7dcd3",
\r
605 "id": "2d634f91.a839c8",
\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": 4724.5001220703125,
\r
612 "z": "f351885d.7dcd3",
\r
616 "id": "37df0014.a385b",
\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": "f351885d.7dcd3",
\r
634 "id": "5511aade.71874c",
\r
636 "name": "block : atomic",
\r
637 "xml": "<block atomic=\"true\">",
\r
642 "z": "f351885d.7dcd3",
\r
651 "id": "29681795.e63f18",
\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": "f351885d.7dcd3",
\r
662 "id": "43de30da.db75e8",
\r
665 "xml": "<outcome value='success'>\n",
\r
670 "z": "f351885d.7dcd3",
\r
678 "id": "e5ad5cbe.572928",
\r
679 "type": "not-found",
\r
680 "name": "not-found",
\r
681 "xml": "<outcome value='not-found'>\n",
\r
686 "z": "f351885d.7dcd3",
\r
694 "id": "12e2c219.e2a25e",
\r
697 "xml": "<outcome value='Other'>\n",
\r
702 "z": "f351885d.7dcd3",
\r
710 "id": "cd568772.16e428",
\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": "f351885d.7dcd3",
\r
721 "id": "24f5f29e.218576",
\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": "f351885d.7dcd3",
\r
732 "id": "9fb5e37f.eaa9f",
\r
735 "xml": "<block>\n",
\r
739 "x": 6030.38232421875,
\r
740 "y": 284.6556701660156,
\r
741 "z": "f351885d.7dcd3",
\r
749 "id": "2b11e0ba.ac6cd8",
\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": "f351885d.7dcd3",
\r
760 "id": "4cf7ab90.c1f3ec",
\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": "f351885d.7dcd3",
\r
774 "id": "fec1365a.907b4",
\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": "f351885d.7dcd3",
\r
785 "id": "eb21cc8f.003df8",
\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": "f351885d.7dcd3",
\r
802 "id": "fc655ff.669232",
\r
805 "xml": "<outcome value='failure'>\n",
\r
810 "z": "f351885d.7dcd3",
\r
818 "id": "dfbdc395.b4aa",
\r
821 "xml": "<outcome value='success'>\n",
\r
826 "z": "f351885d.7dcd3",
\r
834 "id": "d2ad58a1.dbb57",
\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": "f351885d.7dcd3",
\r
845 "id": "43fba27a.3e8bd4",
\r
847 "name": "block : atomic",
\r
848 "xml": "<block atomic=\"true\">",
\r
854 "z": "f351885d.7dcd3",
\r
860 "id": "a7e92939.08a52",
\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": "f351885d.7dcd3",
\r
871 "id": "25024bed.781cdc",
\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": "f351885d.7dcd3",
\r
889 "id": "17a289eb.8378c6",
\r
892 "xml": "<outcome value='success'>\n",
\r
895 "x": 3973.5001220703125,
\r
897 "z": "f351885d.7dcd3",
\r
905 "id": "4e86abed.341d6c",
\r
906 "type": "not-found",
\r
907 "name": "not-found",
\r
908 "xml": "<outcome value='not-found'>\n",
\r
911 "x": 3965.5001220703125,
\r
913 "z": "f351885d.7dcd3",
\r
921 "id": "2250bf3f.3fcd88",
\r
924 "xml": "<block>\n",
\r
928 "x": 4117.8824462890625,
\r
929 "y": 1725.6556701660156,
\r
930 "z": "f351885d.7dcd3",
\r
938 "id": "19367b54.5d4395",
\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": "f351885d.7dcd3",
\r
954 "id": "9944c222.7ecb4",
\r
957 "xml": "<outcome value='Other'>\n",
\r
960 "x": 3970.5001220703125,
\r
962 "z": "f351885d.7dcd3",
\r
970 "id": "c7e8bb41.e69fc8",
\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": 4122.5001220703125,
\r
977 "z": "f351885d.7dcd3",
\r
981 "id": "7fe7998e.7db16",
\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": 4133.5001220703125,
\r
988 "z": "f351885d.7dcd3",
\r
992 "id": "18a3ba34.8443fe",
\r
994 "name": "esr-thirdparty-sdnc",
\r
995 "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
\r
1000 "z": "f351885d.7dcd3",
\r
1008 "id": "e137d17b.53afd",
\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": "f351885d.7dcd3",
\r
1024 "id": "ec259c93.12e46",
\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": "f351885d.7dcd3",
\r
1036 "1901d45c.9387cc",
\r
1042 "id": "cca686b1.a86b48",
\r
1044 "name": "block : atomic",
\r
1045 "xml": "<block atomic=\"true\">",
\r
1050 "z": "f351885d.7dcd3",
\r
1053 "2d219530.71913a",
\r
1059 "id": "2d219530.71913a",
\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": "f351885d.7dcd3",
\r
1070 "id": "bb17bcb1.afece8",
\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": "f351885d.7dcd3",
\r
1081 "id": "e71302c9.0e3fc8",
\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": "f351885d.7dcd3",
\r
1092 "id": "c367d2df.137348",
\r
1095 "xml": "<block>\n",
\r
1096 "atomic": "false",
\r
1099 "x": 5439.38232421875,
\r
1100 "y": 1731.6556701660156,
\r
1101 "z": "f351885d.7dcd3",
\r
1109 "id": "bfc16252.e05aa",
\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": "f351885d.7dcd3",
\r
1120 "id": "cf9d2f3.18e805",
\r
1121 "type": "success",
\r
1122 "name": "success",
\r
1123 "xml": "<outcome value='success'>\n",
\r
1128 "z": "f351885d.7dcd3",
\r
1136 "id": "1901d45c.9387cc",
\r
1137 "type": "not-found",
\r
1138 "name": "not-found",
\r
1139 "xml": "<outcome value='not-found'>\n",
\r
1144 "z": "f351885d.7dcd3",
\r
1152 "id": "86a361e1.5f9008",
\r
1155 "xml": "<outcome value='Other'>\n",
\r
1160 "z": "f351885d.7dcd3",
\r
1168 "id": "5afc15bc.b14b2c",
\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": "f351885d.7dcd3",
\r
1179 "c4ea2f12.0682f8",
\r
1180 "89ba984f.fbff08",
\r
1186 "id": "c4ea2f12.0682f8",
\r
1187 "type": "success",
\r
1188 "name": "success",
\r
1189 "xml": "<outcome value='success'>\n",
\r
1194 "z": "f351885d.7dcd3",
\r
1202 "id": "89ba984f.fbff08",
\r
1203 "type": "not-found",
\r
1204 "name": "not-found",
\r
1205 "xml": "<outcome value='not-found'>\n",
\r
1208 "x": 2032.490966796875,
\r
1209 "y": 459.57403564453125,
\r
1210 "z": "f351885d.7dcd3",
\r
1218 "id": "4c31ddac.b140a4",
\r
1219 "type": "failure",
\r
1220 "name": "failure",
\r
1221 "xml": "<outcome value='failure'>\n",
\r
1226 "z": "f351885d.7dcd3",
\r
1234 "id": "db0bb70b.5af75",
\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": 2195.0623779296875,
\r
1240 "y": 459.8597717285156,
\r
1241 "z": "f351885d.7dcd3",
\r
1245 "id": "34efc961.392a36",
\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": "f351885d.7dcd3",
\r
1256 "id": "da2f8124.076ab8",
\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": "f351885d.7dcd3",
\r
1267 "28f88824.b7c4b8",
\r
1268 "d6ad8583.7ca128",
\r
1274 "id": "f459c148.932bf8",
\r
1276 "name": "block : atomic",
\r
1277 "xml": "<block atomic=\"true\">",
\r
1282 "z": "f351885d.7dcd3",
\r
1290 "id": "28f88824.b7c4b8",
\r
1291 "type": "success",
\r
1292 "name": "success",
\r
1293 "xml": "<outcome value='success'>\n",
\r
1298 "z": "f351885d.7dcd3",
\r
1306 "id": "d6ad8583.7ca128",
\r
1307 "type": "not-found",
\r
1308 "name": "not-found",
\r
1309 "xml": "<outcome value='not-found'>\n",
\r
1312 "x": 2718.490966796875,
\r
1313 "y": 487.57403564453125,
\r
1314 "z": "f351885d.7dcd3",
\r
1322 "id": "c9e967f5.e899f8",
\r
1323 "type": "failure",
\r
1324 "name": "failure",
\r
1325 "xml": "<outcome value='failure'>\n",
\r
1330 "z": "f351885d.7dcd3",
\r
1338 "id": "bd9d5fad.2d262",
\r
1339 "type": "returnFailure",
\r
1340 "name": "return failure",
\r
1341 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
1345 "z": "f351885d.7dcd3",
\r
1349 "id": "ef5820a6.09d9d",
\r
1350 "type": "returnFailure",
\r
1351 "name": "return failure",
\r
1352 "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 "y": 486.8597412109375,
\r
1356 "z": "f351885d.7dcd3",
\r
1360 "id": "207f18a3.1780c8",
\r
1362 "name": "for each relationship",
\r
1363 "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
\r
1368 "z": "f351885d.7dcd3",
\r
1376 "id": "208bed02.1187fa",
\r
1377 "type": "switchNode",
\r
1378 "name": "switch related-to",
\r
1379 "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
\r
1384 "z": "f351885d.7dcd3",
\r
1392 "id": "f005e0a8.cc7dc8",
\r
1393 "type": "outcome",
\r
1394 "name": "vpn-binding",
\r
1395 "xml": "<outcome value='vpn-binding'>\n",
\r
1400 "z": "f351885d.7dcd3",
\r
1408 "id": "51d187ad.ad3078",
\r
1410 "name": "block : atomic",
\r
1411 "xml": "<block atomic=\"true\">",
\r
1416 "z": "f351885d.7dcd3",
\r
1419 "da2f8124.076ab8",
\r
1425 "id": "aecb0c53.70b3e8",
\r
1426 "type": "switchNode",
\r
1427 "name": "switch vpn-binding has dst-access-ltp",
\r
1428 "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>\n",
\r
1433 "z": "f351885d.7dcd3",
\r
1436 "45f40514.0a111c",
\r
1442 "id": "45f40514.0a111c",
\r
1443 "type": "outcome",
\r
1445 "xml": "<outcome value=''>\n",
\r
1450 "z": "f351885d.7dcd3",
\r
1458 "id": "e5457af4.842818",
\r
1461 "xml": "<outcome value='Other'>\n",
\r
1466 "z": "f351885d.7dcd3",
\r
1474 "id": "4c5d5e83.4b55d8",
\r
1475 "type": "switchNode",
\r
1476 "name": "switch vpn-binding has src-access-ltp",
\r
1477 "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",
\r
1482 "z": "f351885d.7dcd3",
\r
1491 "id": "e25a0aae.dc3b6",
\r
1492 "type": "outcome",
\r
1494 "xml": "<outcome value=''>\n",
\r
1499 "z": "f351885d.7dcd3",
\r
1507 "id": "5811aab2.c9cdb4",
\r
1510 "xml": "<outcome value='Other'>\n",
\r
1515 "z": "f351885d.7dcd3",
\r
1523 "id": "e2283676.c05cf8",
\r
1524 "type": "returnFailure",
\r
1525 "name": "return failure",
\r
1526 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
\r
1530 "z": "f351885d.7dcd3",
\r
1534 "id": "ef6002a3.a9265",
\r
1536 "name": "set vpn-bindingA and connectivityA",
\r
1537 "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
1541 "z": "f351885d.7dcd3",
\r
1545 "id": "d11d0786.01d8c8",
\r
1547 "name": "set vpn-bindingB and connectivityB",
\r
1548 "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
1552 "z": "f351885d.7dcd3",
\r
1556 "id": "4923e79.d3d2a98",
\r
1558 "name": "block : atomic",
\r
1559 "xml": "<block atomic=\"true\">",
\r
1565 "z": "f351885d.7dcd3",
\r
1569 "73d91f0d.979448",
\r
1570 "cdb19fe7.3fcc18",
\r
1572 "b72def38.869578",
\r
1579 "id": "5f1f11a6.4b622",
\r
1581 "name": "block : atomic",
\r
1582 "xml": "<block atomic=\"true\">",
\r
1587 "z": "f351885d.7dcd3",
\r
1590 "d11d0786.01d8c8",
\r
1593 "25024bed.781cdc",
\r
1594 "eb21cc8f.003df8",
\r
1595 "1be8ac25.0620fc",
\r
1601 "id": "1be8ac25.0620fc",
\r
1603 "name": "set sotn_value",
\r
1604 "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
1608 "z": "f351885d.7dcd3",
\r
1612 "id": "6fb79d87.420834",
\r
1613 "type": "execute",
\r
1614 "name": "execute RestApiCallNode Create ethernet Service without token",
\r
1615 "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
1620 "z": "f351885d.7dcd3",
\r
1629 "id": "6175c964.8889d",
\r
1630 "type": "failure",
\r
1631 "name": "failure",
\r
1632 "xml": "<outcome value='failure'>\n",
\r
1637 "z": "f351885d.7dcd3",
\r
1645 "id": "add709ae.0740f",
\r
1646 "type": "success",
\r
1647 "name": "success",
\r
1648 "xml": "<outcome value='success'>\n",
\r
1653 "z": "f351885d.7dcd3",
\r
1661 "id": "7caa2ba7.6bf4dc",
\r
1662 "type": "returnFailure",
\r
1663 "name": "return failure",
\r
1664 "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
1668 "z": "f351885d.7dcd3",
\r
1672 "id": "43eb2ee.41b33d",
\r
1674 "name": "block : atomic",
\r
1675 "xml": "<block atomic=\"true\">",
\r
1681 "z": "f351885d.7dcd3",
\r
1684 "30f33337.055d14",
\r
1690 "id": "bc6f9b2b.7321f",
\r
1691 "type": "comment",
\r
1692 "name": "TODO: FIXME:",
\r
1693 "info": "put proper values based on connectivity resource retrieved from AAI",
\r
1697 "z": "f351885d.7dcd3",
\r
1701 "id": "30f33337.055d14",
\r
1703 "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",
\r
1704 "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
1709 "z": "f351885d.7dcd3",
\r
1715 "id": "227afae6.b4c94e",
\r
1716 "type": "comment",
\r
1717 "name": "TODO: FIXME",
\r
1718 "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
\r
1722 "z": "f351885d.7dcd3",
\r
1726 "id": "948532eb.e6c7c",
\r
1728 "name": "update connectivity resource in AAI",
\r
1729 "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
1734 "z": "f351885d.7dcd3",
\r
1740 "id": "55624da8.df976c",
\r
1742 "name": "set attachment_param (gfp-n) for OTN",
\r
1743 "xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",
\r
1747 "z": "f351885d.7dcd3",
\r
1751 "id": "1e447cc1.915cb3",
\r
1753 "name": "unset tmp.aai.vpn-binding",
\r
1754 "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",
\r
1758 "z": "f351885d.7dcd3",
\r
1762 "id": "f396e52b.35559",
\r
1763 "type": "comment",
\r
1764 "name": "only dst ttp exists. No src",
\r
1769 "z": "f351885d.7dcd3",
\r
1773 "id": "72b06eec.578eb8",
\r
1774 "type": "comment",
\r
1775 "name": "only src ttp exists. No dst",
\r
1780 "z": "f351885d.7dcd3",
\r
1784 "id": "d204a9f5.cb1f",
\r
1785 "type": "switchNode",
\r
1786 "name": "switch vpn-binding has src-access-ltp",
\r
1787 "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",
\r
1792 "z": "f351885d.7dcd3",
\r
1795 "7da55af.10937a4",
\r
1801 "id": "d30ba4e8.997a68",
\r
1804 "xml": "<outcome value='Other'>\n",
\r
1809 "z": "f351885d.7dcd3",
\r
1817 "id": "7da55af.10937a4",
\r
1818 "type": "outcome",
\r
1820 "xml": "<outcome value=''>\n",
\r
1825 "z": "f351885d.7dcd3",
\r
1833 "id": "b0909b7a.d37638",
\r
1835 "name": "block : atomic",
\r
1836 "xml": "<block atomic=\"true\">",
\r
1841 "z": "f351885d.7dcd3",
\r
1846 "a006da1c.c23038",
\r
1853 "id": "8fb5b52a.4e2ae",
\r
1855 "name": "set attachment_param for OTN G",
\r
1856 "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
1860 "z": "f351885d.7dcd3",
\r
1864 "id": "23d1e7d8.976258",
\r
1865 "type": "execute",
\r
1866 "name": "execute RestApiCallNode Create OTN tunnel with token",
\r
1867 "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
1872 "z": "f351885d.7dcd3",
\r
1881 "id": "c8d598bd.cbc8e",
\r
1882 "type": "failure",
\r
1883 "name": "failure",
\r
1884 "xml": "<outcome value='failure'>\n",
\r
1889 "z": "f351885d.7dcd3",
\r
1897 "id": "c93ae11e.1c54c8",
\r
1898 "type": "success",
\r
1899 "name": "success",
\r
1900 "xml": "<outcome value='success'>\n",
\r
1905 "z": "f351885d.7dcd3",
\r
1913 "id": "a086276f.4222f8",
\r
1914 "type": "returnFailure",
\r
1915 "name": "return failure",
\r
1916 "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
1920 "z": "f351885d.7dcd3",
\r
1924 "id": "51323b7.caecec4",
\r
1926 "name": "block : atomic",
\r
1927 "xml": "<block atomic=\"true\">",
\r
1933 "z": "f351885d.7dcd3",
\r
1939 "id": "a006da1c.c23038",
\r
1941 "name": "set pnf-name",
\r
1942 "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
1946 "z": "f351885d.7dcd3",
\r
1950 "id": "7e67d000.77abb",
\r
1951 "type": "get-resource",
\r
1952 "name": "get-resource src pnf",
\r
1953 "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
1958 "z": "f351885d.7dcd3",
\r
1962 "6fe2c398.ccd7b4",
\r
1968 "id": "ec2bb2c1.50dad",
\r
1969 "type": "success",
\r
1970 "name": "success",
\r
1971 "xml": "<outcome value='success'>\n",
\r
1974 "x": 4471.5001220703125,
\r
1976 "z": "f351885d.7dcd3",
\r
1984 "id": "6fe2c398.ccd7b4",
\r
1985 "type": "not-found",
\r
1986 "name": "not-found",
\r
1987 "xml": "<outcome value='not-found'>\n",
\r
1990 "x": 4463.5001220703125,
\r
1992 "z": "f351885d.7dcd3",
\r
2000 "id": "e5c84b9e.98975",
\r
2003 "xml": "<block>\n",
\r
2004 "atomic": "false",
\r
2007 "x": 4615.8824462890625,
\r
2008 "y": 1067.6556701660156,
\r
2009 "z": "f351885d.7dcd3",
\r
2017 "id": "40635ccb.0881a4",
\r
2019 "name": "for each relationship",
\r
2020 "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",
\r
2025 "z": "f351885d.7dcd3",
\r
2033 "id": "ff02a9b.ff8ffd8",
\r
2034 "type": "switchNode",
\r
2035 "name": "switch related-to",
\r
2036 "xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
\r
2041 "z": "f351885d.7dcd3",
\r
2049 "id": "2cf209f9.a94e2e",
\r
2052 "xml": "<outcome value='Other'>\n",
\r
2055 "x": 4468.5001220703125,
\r
2057 "z": "f351885d.7dcd3",
\r
2065 "id": "2b5a1252.216fe6",
\r
2066 "type": "returnFailure",
\r
2067 "name": "return failure",
\r
2068 "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
2070 "x": 4620.5001220703125,
\r
2072 "z": "f351885d.7dcd3",
\r
2076 "id": "be59a3.0881066",
\r
2077 "type": "returnFailure",
\r
2078 "name": "return failure",
\r
2079 "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
2081 "x": 4631.5001220703125,
\r
2083 "z": "f351885d.7dcd3",
\r
2087 "id": "aadf2b5c.a1838",
\r
2089 "name": "set vpn-bindingG and connectivityG",
\r
2090 "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
2094 "z": "f351885d.7dcd3",
\r
2098 "id": "d3d180f4.36fa68",
\r
2099 "type": "outcome",
\r
2100 "name": "esr-thirdparty-sdnc",
\r
2101 "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
\r
2106 "z": "f351885d.7dcd3",
\r
2114 "id": "d998285a.8338c",
\r
2115 "type": "execute",
\r
2116 "name": "get esr-thirdparty-sdnc",
\r
2117 "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
2122 "z": "f351885d.7dcd3",
\r
2125 "38daac86.dbf464",
\r
2126 "21dc6947.7d9bae",
\r
2132 "id": "8355bb98.2142e8",
\r
2134 "name": "block : atomic",
\r
2135 "xml": "<block atomic=\"true\">",
\r
2140 "z": "f351885d.7dcd3",
\r
2143 "583e9682.750428",
\r
2149 "id": "583e9682.750428",
\r
2151 "name": "set esr-thirdparty-sdnc domainG id",
\r
2152 "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
2156 "z": "f351885d.7dcd3",
\r
2160 "id": "38daac86.dbf464",
\r
2161 "type": "success",
\r
2162 "name": "success",
\r
2163 "xml": "<outcome value='success'>\n",
\r
2168 "z": "f351885d.7dcd3",
\r
2176 "id": "21dc6947.7d9bae",
\r
2177 "type": "not-found",
\r
2178 "name": "not-found",
\r
2179 "xml": "<outcome value='not-found'>\n",
\r
2184 "z": "f351885d.7dcd3",
\r
2192 "id": "a47aca30.5160e",
\r
2195 "xml": "<outcome value='Other'>\n",
\r
2200 "z": "f351885d.7dcd3",
\r
2208 "id": "18239e9b.852729",
\r
2209 "type": "returnFailure",
\r
2210 "name": "return failure",
\r
2211 "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
2215 "z": "f351885d.7dcd3",
\r
2219 "id": "6ce9bc65.05009c",
\r
2220 "type": "returnFailure",
\r
2221 "name": "return failure",
\r
2222 "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
2226 "z": "f351885d.7dcd3",
\r
2230 "id": "10b34ad5.e58d9d",
\r
2233 "xml": "<block>\n",
\r
2234 "atomic": "false",
\r
2237 "x": 5937.38232421875,
\r
2238 "y": 1071.6556701660156,
\r
2239 "z": "f351885d.7dcd3",
\r
2247 "id": "d4058b68.bd8818",
\r
2249 "name": "set controller domainG data",
\r
2250 "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
2254 "z": "f351885d.7dcd3",
\r
2258 "id": "3a09f359.556f04",
\r
2259 "type": "comment",
\r
2260 "name": "both src and dst exist",
\r
2265 "z": "f351885d.7dcd3",
\r
2269 "id": "1c6e3351.8ccb0d",
\r
2270 "type": "switchNode",
\r
2271 "name": "switch vpn-binding is not already Activated (i.e. is either Created or Modified)",
\r
2272 "xml": "<switch test=\"`$tmp.aai.vpn-binding.operational-status != 'Activated' `\">\n",
\r
2277 "z": "f351885d.7dcd3",
\r
2286 "id": "5aa31f25.4b2718",
\r
2287 "type": "outcomeFalse",
\r
2289 "xml": "<outcome value='false'>\n",
\r
2294 "z": "f351885d.7dcd3",
\r
2302 "id": "91c41639.2357b",
\r
2303 "type": "outcomeTrue",
\r
2305 "xml": "<outcome value='true'>\n",
\r
2310 "z": "f351885d.7dcd3",
\r
2318 "id": "c7ffb45b.775578",
\r
2320 "name": "block : atomic",
\r
2321 "xml": "<block atomic=\"true\">",
\r
2326 "z": "f351885d.7dcd3",
\r
2329 "55624da8.df976c",
\r
2335 "id": "49ef7599.6e682c",
\r
2339 "atomic": "false",
\r
2344 "z": "f351885d.7dcd3",
\r