Advertisement
PANTHEONtech

[NSO + SDN-C] Get NSO

Mar 8th, 2021
603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.52 KB | None | 0 0
  1. [
  2.  
  3.     {
  4.  
  5.         "id": "454874e9.60c934",
  6.  
  7.         "type": "dgstart",
  8.  
  9.         "name": "DGSTART",
  10.  
  11.         "outputs": 1,
  12.  
  13.         "x": 263,
  14.  
  15.         "y": 142,
  16.  
  17.         "z": "9395f303.9434c8",
  18.  
  19.         "wires": [
  20.  
  21.             [
  22.  
  23.                 "3302f760.0778d8"
  24.  
  25.             ]
  26.  
  27.         ]
  28.  
  29.     },
  30.  
  31.     {
  32.  
  33.         "id": "3302f760.0778d8",
  34.  
  35.         "type": "service-logic",
  36.  
  37.         "name": "NSO-operations 1.0",
  38.  
  39.         "module": "NSO-operations",
  40.  
  41.         "version": "1.0",
  42.  
  43.         "comments": "",
  44.  
  45.         "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'>",
  46.  
  47.         "outputs": 1,
  48.  
  49.         "x": 468,
  50.  
  51.         "y": 142,
  52.  
  53.         "z": "9395f303.9434c8",
  54.  
  55.         "wires": [
  56.  
  57.             [
  58.  
  59.                 "7802669c.1ec878"
  60.  
  61.             ]
  62.  
  63.         ]
  64.  
  65.     },
  66.  
  67.     {
  68.  
  69.         "id": "7802669c.1ec878",
  70.  
  71.         "type": "method",
  72.  
  73.         "name": "getNSO",
  74.  
  75.         "xml": "<method rpc='getNSO' mode='sync'>\n",
  76.  
  77.         "comments": "",
  78.  
  79.         "outputs": 1,
  80.  
  81.         "x": 688,
  82.  
  83.         "y": 142,
  84.  
  85.         "z": "9395f303.9434c8",
  86.  
  87.         "wires": [
  88.  
  89.             [
  90.  
  91.                 "19d17579.d82c33"
  92.  
  93.             ]
  94.  
  95.         ]
  96.  
  97.     },
  98.  
  99.     {
  100.  
  101.         "id": "7839e081.fe4248",
  102.  
  103.         "type": "record",
  104.  
  105.         "name": "record",
  106.  
  107.         "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`\"/>",
  108.  
  109.         "comments": "",
  110.  
  111.         "outputs": 1,
  112.  
  113.         "x": 1100,
  114.  
  115.         "y": 266,
  116.  
  117.         "z": "9395f303.9434c8",
  118.  
  119.         "wires": [
  120.  
  121.             []
  122.  
  123.         ]
  124.  
  125.     },
  126.  
  127.     {
  128.  
  129.         "id": "92a4f872.355b7",
  130.  
  131.         "type": "other",
  132.  
  133.         "name": "other",
  134.  
  135.         "xml": "<outcome value='Other'>\n",
  136.  
  137.         "comments": "",
  138.  
  139.         "outputs": 1,
  140.  
  141.         "x": 576,
  142.  
  143.         "y": 422,
  144.  
  145.         "z": "9395f303.9434c8",
  146.  
  147.         "wires": [
  148.  
  149.             [
  150.  
  151.                 "836e43c3.cf3248"
  152.  
  153.             ]
  154.  
  155.         ]
  156.  
  157.     },
  158.  
  159.     {
  160.  
  161.         "id": "5a7d215b.049818",
  162.  
  163.         "type": "record",
  164.  
  165.         "name": "record",
  166.  
  167.         "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`\"/>",
  168.  
  169.         "comments": "",
  170.  
  171.         "outputs": 1,
  172.  
  173.         "x": 1099,
  174.  
  175.         "y": 335,
  176.  
  177.         "z": "9395f303.9434c8",
  178.  
  179.         "wires": [
  180.  
  181.             []
  182.  
  183.         ]
  184.  
  185.     },
  186.  
  187.     {
  188.  
  189.         "id": "61a2433c.94054c",
  190.  
  191.         "type": "block",
  192.  
  193.         "name": "block",
  194.  
  195.         "xml": "<block>\n",
  196.  
  197.         "atomic": "false",
  198.  
  199.         "comments": "",
  200.  
  201.         "outputs": 1,
  202.  
  203.         "x": 907,
  204.  
  205.         "y": 318,
  206.  
  207.         "z": "9395f303.9434c8",
  208.  
  209.         "wires": [
  210.  
  211.             [
  212.  
  213.                 "7839e081.fe4248",
  214.  
  215.                 "5a7d215b.049818",
  216.  
  217.                 "42296ca8.ec351c"
  218.  
  219.             ]
  220.  
  221.         ]
  222.  
  223.     },
  224.  
  225.     {
  226.  
  227.         "id": "19d17579.d82c33",
  228.  
  229.         "type": "execute",
  230.  
  231.         "name": "get-NSO-node",
  232.  
  233.         "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 `\" />",
  234.  
  235.         "comments": "",
  236.  
  237.         "outputs": 1,
  238.  
  239.         "x": 362,
  240.  
  241.         "y": 317,
  242.  
  243.         "z": "9395f303.9434c8",
  244.  
  245.         "wires": [
  246.  
  247.             [
  248.  
  249.                 "92a4f872.355b7",
  250.  
  251.                 "5a9df3d5.c58dfc"
  252.  
  253.             ]
  254.  
  255.         ]
  256.  
  257.     },
  258.  
  259.     {
  260.  
  261.         "id": "5a9df3d5.c58dfc",
  262.  
  263.         "type": "success",
  264.  
  265.         "name": "success",
  266.  
  267.         "xml": "<outcome value='success'>\n",
  268.  
  269.         "comments": "",
  270.  
  271.         "outputs": 1,
  272.  
  273.         "x": 580,
  274.  
  275.         "y": 317,
  276.  
  277.         "z": "9395f303.9434c8",
  278.  
  279.         "wires": [
  280.  
  281.             [
  282.  
  283.                 "61a2433c.94054c"
  284.  
  285.             ]
  286.  
  287.         ]
  288.  
  289.     },
  290.  
  291.     {
  292.  
  293.         "id": "836e43c3.cf3248",
  294.  
  295.         "type": "returnFailure",
  296.  
  297.         "name": "return GET failure",
  298.  
  299.         "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",
  300.  
  301.         "comments": "",
  302.  
  303.         "x": 763,
  304.  
  305.         "y": 422,
  306.  
  307.         "z": "9395f303.9434c8",
  308.  
  309.         "wires": []
  310.  
  311.     },
  312.  
  313.     {
  314.  
  315.         "id": "42296ca8.ec351c",
  316.  
  317.         "type": "returnSuccess",
  318.  
  319.         "name": "return success",
  320.  
  321.         "xml": "<return status='success'>\n",
  322.  
  323.         "comments": "",
  324.  
  325.         "x": 1127,
  326.  
  327.         "y": 404,
  328.  
  329.         "z": "9395f303.9434c8",
  330.  
  331.         "wires": []
  332.  
  333.     }
  334.  
  335. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement