Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "52229931.6a80d8",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 179,
- "y": 116,
- "z": "6353f55b.ebee0c",
- "wires": [
- [
- "a294b1d7.5c42a8"
- ]
- ]
- },
- {
- "id": "a294b1d7.5c42a8",
- "type": "service-logic",
- "name": "NSO-operations 1.0",
- "module": "NSO-operations",
- "version": "1.0",
- "comments": "",
- "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='NSO-operations' version='1.0'>",
- "outputs": 1,
- "x": 384,
- "y": 116,
- "z": "6353f55b.ebee0c",
- "wires": [
- [
- "eb7df7cd.ac20f8"
- ]
- ]
- },
- {
- "id": "eb7df7cd.ac20f8",
- "type": "method",
- "name": "connectNSO",
- "xml": "<method rpc='connectNSO' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 604,
- "y": 116,
- "z": "6353f55b.ebee0c",
- "wires": [
- [
- "9023ce9f.1fd0b8"
- ]
- ]
- },
- {
- "id": "340998c1.d41aa",
- "type": "execute",
- "name": "put-NSO-node",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name=\"responsePrefix\" value=\"writeResponse\" />\n <parameter name=\"format\" value=\"json\" />\n <parameter name=\"accept\" value=\"application/json\" />\n <parameter name=\"contentType\" value=\"application/json\" />\n <parameter name=\"httpMethod\" value=\"put\" />\n <parameter name=\"restapiUser\" value=\"admin\" />\n <parameter name=\"restapiPassword\" value=\"Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U\" />\n <parameter name=\"restapiUrl\" value=\"`'http://127.0.0.1:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/' + $nodeId`\" />\n <parameter name=\"requestBody\" value=\"`$putRequestBody`\" />",
- "comments": "",
- "outputs": 1,
- "x": 418,
- "y": 312,
- "z": "6353f55b.ebee0c",
- "wires": [
- [
- "6e9a3193.f83698",
- "dd3ff5ef.6d79e8"
- ]
- ]
- },
- {
- "id": "6e9a3193.f83698",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 634,
- "y": 312,
- "z": "6353f55b.ebee0c",
- "wires": [
- [
- "61696747.332ff"
- ]
- ]
- },
- {
- "id": "dd3ff5ef.6d79e8",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 623,
- "y": 452,
- "z": "6353f55b.ebee0c",
- "wires": [
- [
- "35f73483.d2a33c"
- ]
- ]
- },
- {
- "id": "35f73483.d2a33c",
- "type": "returnFailure",
- "name": "return PUT failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Unable to put NSO node to config datastore! Response: ' + $writeResponse`\" />\n",
- "comments": "",
- "x": 806,
- "y": 451,
- "z": "6353f55b.ebee0c",
- "wires": []
- },
- {
- "id": "61696747.332ff",
- "type": "call",
- "name": "call getNSO",
- "xml": "<call module='NSO-operations' rpc='getNSO' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 813,
- "y": 332,
- "z": "6353f55b.ebee0c",
- "wires": [
- [
- "acbc4c98.08b078",
- "263d69c3.9a415e"
- ]
- ]
- },
- {
- "id": "ec90ccad.83b9d",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>",
- "comments": "",
- "x": 1248,
- "y": 312,
- "z": "6353f55b.ebee0c",
- "wires": []
- },
- {
- "id": "acbc4c98.08b078",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1040,
- "y": 312,
- "z": "6353f55b.ebee0c",
- "wires": [
- [
- "ec90ccad.83b9d"
- ]
- ]
- },
- {
- "id": "263d69c3.9a415e",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1038,
- "y": 414,
- "z": "6353f55b.ebee0c",
- "wires": [
- [
- "e3e84fe0.3bb6a8"
- ]
- ]
- },
- {
- "id": "e3e84fe0.3bb6a8",
- "type": "returnFailure",
- "name": "return read failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Unable to read NSO node!' />\n",
- "comments": "",
- "x": 1268,
- "y": 414,
- "z": "6353f55b.ebee0c",
- "wires": []
- },
- {
- "id": "a37eab0f.48ef8",
- "type": "set",
- "name": "createPutRequestBody",
- "xml": "<set>\n<parameter name='putRequestBody' value=\"`'{"netconf-topology:node": [{"node-id": "' + $nodeId + '","host": "' + $nodeAddress + '","port": ' + $nodePort + ',"username": "' + $nodeUser + '","password": "' + $nodePassword + '","tcp-only": false,"keepalive-delay": 0,"netconf-node-configuration:schemaless": false}]}'`\" />\n",
- "comments": "",
- "x": 449,
- "y": 236,
- "z": "6353f55b.ebee0c",
- "wires": []
- },
- {
- "id": "9023ce9f.1fd0b8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 192,
- "y": 273,
- "z": "6353f55b.ebee0c",
- "wires": [
- [
- "340998c1.d41aa",
- "a37eab0f.48ef8"
- ]
- ]
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement