Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "454874e9.60c934",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 263,
- "y": 142,
- "z": "9395f303.9434c8",
- "wires": [
- [
- "3302f760.0778d8"
- ]
- ]
- },
- {
- "id": "3302f760.0778d8",
- "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": 468,
- "y": 142,
- "z": "9395f303.9434c8",
- "wires": [
- [
- "7802669c.1ec878"
- ]
- ]
- },
- {
- "id": "7802669c.1ec878",
- "type": "method",
- "name": "getNSO",
- "xml": "<method rpc='getNSO' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 688,
- "y": 142,
- "z": "9395f303.9434c8",
- "wires": [
- [
- "19d17579.d82c33"
- ]
- ]
- },
- {
- "id": "7839e081.fe4248",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n <parameter name=\"logger\" value=\"message-log\" />\n <parameter name=\"level\" value=\"info\"/>\n <parameter name=\"field1\" value=\"`'Node ID is: ' + $response.node[0].node-id`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1100,
- "y": 266,
- "z": "9395f303.9434c8",
- "wires": [
- []
- ]
- },
- {
- "id": "92a4f872.355b7",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 576,
- "y": 422,
- "z": "9395f303.9434c8",
- "wires": [
- [
- "836e43c3.cf3248"
- ]
- ]
- },
- {
- "id": "5a7d215b.049818",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n <parameter name=\"logger\" value=\"message-log\" />\n <parameter name=\"level\" value=\"info\"/>\n <parameter name=\"field1\" value=\"`'Connection status is: ' + $response.node[0].connection-status`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1099,
- "y": 335,
- "z": "9395f303.9434c8",
- "wires": [
- []
- ]
- },
- {
- "id": "61a2433c.94054c",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 907,
- "y": 318,
- "z": "9395f303.9434c8",
- "wires": [
- [
- "7839e081.fe4248",
- "5a7d215b.049818",
- "42296ca8.ec351c"
- ]
- ]
- },
- {
- "id": "19d17579.d82c33",
- "type": "execute",
- "name": "get-NSO-node",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name=\"responsePrefix\" value=\"response\" />\n <parameter name=\"format\" value=\"json\" />\n <parameter name=\"httpMethod\" value=\"get\" />\n <parameter name=\"restapiUser\" value=\"admin\" />\n <parameter name=\"restapiPassword\" value=\"Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U\" />\n <parameter name=\"restapiUrl\" value=\"`'http://127.0.0.1:8181/restconf/operational/network-topology:network-topology/topology/topology-netconf/node/' + $nodeId `\" />",
- "comments": "",
- "outputs": 1,
- "x": 362,
- "y": 317,
- "z": "9395f303.9434c8",
- "wires": [
- [
- "92a4f872.355b7",
- "5a9df3d5.c58dfc"
- ]
- ]
- },
- {
- "id": "5a9df3d5.c58dfc",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 580,
- "y": 317,
- "z": "9395f303.9434c8",
- "wires": [
- [
- "61a2433c.94054c"
- ]
- ]
- },
- {
- "id": "836e43c3.cf3248",
- "type": "returnFailure",
- "name": "return GET failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Unable to get NSO node from operational datastore! Response: ' + $response`\" />\n",
- "comments": "",
- "x": 763,
- "y": 422,
- "z": "9395f303.9434c8",
- "wires": []
- },
- {
- "id": "42296ca8.ec351c",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n",
- "comments": "",
- "x": 1127,
- "y": 404,
- "z": "9395f303.9434c8",
- "wires": []
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement