Advertisement
PANTHEONtech

[NSO + SDN-C] Connect NSO

Mar 8th, 2021
1,146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 6.88 KB | None | 0 0
  1. [
  2.  
  3.     {
  4.  
  5.         "id": "52229931.6a80d8",
  6.  
  7.         "type": "dgstart",
  8.  
  9.         "name": "DGSTART",
  10.  
  11.         "outputs": 1,
  12.  
  13.         "x": 179,
  14.  
  15.         "y": 116,
  16.  
  17.         "z": "6353f55b.ebee0c",
  18.  
  19.         "wires": [
  20.  
  21.             [
  22.  
  23.                 "a294b1d7.5c42a8"
  24.  
  25.             ]
  26.  
  27.         ]
  28.  
  29.     },
  30.  
  31.     {
  32.  
  33.         "id": "a294b1d7.5c42a8",
  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": 384,
  50.  
  51.         "y": 116,
  52.  
  53.         "z": "6353f55b.ebee0c",
  54.  
  55.         "wires": [
  56.  
  57.             [
  58.  
  59.                 "eb7df7cd.ac20f8"
  60.  
  61.             ]
  62.  
  63.         ]
  64.  
  65.     },
  66.  
  67.     {
  68.  
  69.         "id": "eb7df7cd.ac20f8",
  70.  
  71.         "type": "method",
  72.  
  73.         "name": "connectNSO",
  74.  
  75.         "xml": "<method rpc='connectNSO' mode='sync'>\n",
  76.  
  77.         "comments": "",
  78.  
  79.         "outputs": 1,
  80.  
  81.         "x": 604,
  82.  
  83.         "y": 116,
  84.  
  85.         "z": "6353f55b.ebee0c",
  86.  
  87.         "wires": [
  88.  
  89.             [
  90.  
  91.                 "9023ce9f.1fd0b8"
  92.  
  93.             ]
  94.  
  95.         ]
  96.  
  97.     },
  98.  
  99.     {
  100.  
  101.         "id": "340998c1.d41aa",
  102.  
  103.         "type": "execute",
  104.  
  105.         "name": "put-NSO-node",
  106.  
  107.         "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`\" />",
  108.  
  109.         "comments": "",
  110.  
  111.         "outputs": 1,
  112.  
  113.         "x": 418,
  114.  
  115.         "y": 312,
  116.  
  117.         "z": "6353f55b.ebee0c",
  118.  
  119.         "wires": [
  120.  
  121.             [
  122.  
  123.                 "6e9a3193.f83698",
  124.  
  125.                 "dd3ff5ef.6d79e8"
  126.  
  127.             ]
  128.  
  129.         ]
  130.  
  131.     },
  132.  
  133.     {
  134.  
  135.         "id": "6e9a3193.f83698",
  136.  
  137.         "type": "success",
  138.  
  139.         "name": "success",
  140.  
  141.         "xml": "<outcome value='success'>\n",
  142.  
  143.         "comments": "",
  144.  
  145.         "outputs": 1,
  146.  
  147.         "x": 634,
  148.  
  149.         "y": 312,
  150.  
  151.         "z": "6353f55b.ebee0c",
  152.  
  153.         "wires": [
  154.  
  155.             [
  156.  
  157.                 "61696747.332ff"
  158.  
  159.             ]
  160.  
  161.         ]
  162.  
  163.     },
  164.  
  165.     {
  166.  
  167.         "id": "dd3ff5ef.6d79e8",
  168.  
  169.         "type": "other",
  170.  
  171.         "name": "other",
  172.  
  173.         "xml": "<outcome value='Other'>\n",
  174.  
  175.         "comments": "",
  176.  
  177.         "outputs": 1,
  178.  
  179.         "x": 623,
  180.  
  181.         "y": 452,
  182.  
  183.         "z": "6353f55b.ebee0c",
  184.  
  185.         "wires": [
  186.  
  187.             [
  188.  
  189.                 "35f73483.d2a33c"
  190.  
  191.             ]
  192.  
  193.         ]
  194.  
  195.     },
  196.  
  197.     {
  198.  
  199.         "id": "35f73483.d2a33c",
  200.  
  201.         "type": "returnFailure",
  202.  
  203.         "name": "return PUT failure",
  204.  
  205.         "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",
  206.  
  207.         "comments": "",
  208.  
  209.         "x": 806,
  210.  
  211.         "y": 451,
  212.  
  213.         "z": "6353f55b.ebee0c",
  214.  
  215.         "wires": []
  216.  
  217.     },
  218.  
  219.     {
  220.  
  221.         "id": "61696747.332ff",
  222.  
  223.         "type": "call",
  224.  
  225.         "name": "call getNSO",
  226.  
  227.         "xml": "<call module='NSO-operations' rpc='getNSO' mode='sync' >\n",
  228.  
  229.         "comments": "",
  230.  
  231.         "outputs": 1,
  232.  
  233.         "x": 813,
  234.  
  235.         "y": 332,
  236.  
  237.         "z": "6353f55b.ebee0c",
  238.  
  239.         "wires": [
  240.  
  241.             [
  242.  
  243.                 "acbc4c98.08b078",
  244.  
  245.                 "263d69c3.9a415e"
  246.  
  247.             ]
  248.  
  249.         ]
  250.  
  251.     },
  252.  
  253.     {
  254.  
  255.         "id": "ec90ccad.83b9d",
  256.  
  257.         "type": "returnSuccess",
  258.  
  259.         "name": "return success",
  260.  
  261.         "xml": "<return status='success'>",
  262.  
  263.         "comments": "",
  264.  
  265.         "x": 1248,
  266.  
  267.         "y": 312,
  268.  
  269.         "z": "6353f55b.ebee0c",
  270.  
  271.         "wires": []
  272.  
  273.     },
  274.  
  275.     {
  276.  
  277.         "id": "acbc4c98.08b078",
  278.  
  279.         "type": "success",
  280.  
  281.         "name": "success",
  282.  
  283.         "xml": "<outcome value='success'>\n",
  284.  
  285.         "comments": "",
  286.  
  287.         "outputs": 1,
  288.  
  289.         "x": 1040,
  290.  
  291.         "y": 312,
  292.  
  293.         "z": "6353f55b.ebee0c",
  294.  
  295.         "wires": [
  296.  
  297.             [
  298.  
  299.                 "ec90ccad.83b9d"
  300.  
  301.             ]
  302.  
  303.         ]
  304.  
  305.     },
  306.  
  307.     {
  308.  
  309.         "id": "263d69c3.9a415e",
  310.  
  311.         "type": "other",
  312.  
  313.         "name": "other",
  314.  
  315.         "xml": "<outcome value='Other'>\n",
  316.  
  317.         "comments": "",
  318.  
  319.         "outputs": 1,
  320.  
  321.         "x": 1038,
  322.  
  323.         "y": 414,
  324.  
  325.         "z": "6353f55b.ebee0c",
  326.  
  327.         "wires": [
  328.  
  329.             [
  330.  
  331.                 "e3e84fe0.3bb6a8"
  332.  
  333.             ]
  334.  
  335.         ]
  336.  
  337.     },
  338.  
  339.     {
  340.  
  341.         "id": "e3e84fe0.3bb6a8",
  342.  
  343.         "type": "returnFailure",
  344.  
  345.         "name": "return read failure",
  346.  
  347.         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Unable to read NSO node!' />\n",
  348.  
  349.         "comments": "",
  350.  
  351.         "x": 1268,
  352.  
  353.         "y": 414,
  354.  
  355.         "z": "6353f55b.ebee0c",
  356.  
  357.         "wires": []
  358.  
  359.     },
  360.  
  361.     {
  362.  
  363.         "id": "a37eab0f.48ef8",
  364.  
  365.         "type": "set",
  366.  
  367.         "name": "createPutRequestBody",
  368.  
  369.         "xml": "<set>\n<parameter name='putRequestBody' value=\"`'{&quot;netconf-topology:node&quot;: [{&quot;node-id&quot;: &quot;' + $nodeId + '&quot;,&quot;host&quot;: &quot;' + $nodeAddress + '&quot;,&quot;port&quot;: ' + $nodePort + ',&quot;username&quot;: &quot;' + $nodeUser + '&quot;,&quot;password&quot;: &quot;' + $nodePassword + '&quot;,&quot;tcp-only&quot;: false,&quot;keepalive-delay&quot;: 0,&quot;netconf-node-configuration:schemaless&quot;: false}]}'`\" />\n",
  370.  
  371.         "comments": "",
  372.  
  373.         "x": 449,
  374.  
  375.         "y": 236,
  376.  
  377.         "z": "6353f55b.ebee0c",
  378.  
  379.         "wires": []
  380.  
  381.     },
  382.  
  383.     {
  384.  
  385.         "id": "9023ce9f.1fd0b8",
  386.  
  387.         "type": "block",
  388.  
  389.         "name": "block",
  390.  
  391.         "xml": "<block>\n",
  392.  
  393.         "atomic": "false",
  394.  
  395.         "comments": "",
  396.  
  397.         "outputs": 1,
  398.  
  399.         "x": 192,
  400.  
  401.         "y": 273,
  402.  
  403.         "z": "6353f55b.ebee0c",
  404.  
  405.         "wires": [
  406.  
  407.             [
  408.  
  409.                 "340998c1.d41aa",
  410.  
  411.                 "a37eab0f.48ef8"
  412.  
  413.             ]
  414.  
  415.         ]
  416.  
  417.     }
  418.  
  419. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement