PANTHEONtech

[SDN-C] Activate ACL

Jun 1st, 2020
109
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2.  
  3.     {
  4.  
  5.         "id": "7d6c5d34.e5be9c",
  6.  
  7.         "type": "dgstart",
  8.  
  9.         "name": "DGSTART",
  10.  
  11.         "outputs": 1,
  12.  
  13.         "x": 239,
  14.  
  15.         "y": 130,
  16.  
  17.         "z": "6dd91445.77f8d4",
  18.  
  19.         "wires": [
  20.  
  21.             [
  22.  
  23.                 "e5666b21.e9313"
  24.  
  25.             ]
  26.  
  27.         ]
  28.  
  29.     },
  30.  
  31.     {
  32.  
  33.         "id": "e5666b21.e9313",
  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": 444,
  50.  
  51.         "y": 130,
  52.  
  53.         "z": "6dd91445.77f8d4",
  54.  
  55.         "wires": [
  56.  
  57.             [
  58.  
  59.                 "79cb6ff.02d0f1"
  60.  
  61.             ]
  62.  
  63.         ]
  64.  
  65.     },
  66.  
  67.     {
  68.  
  69.         "id": "79cb6ff.02d0f1",
  70.  
  71.         "type": "method",
  72.  
  73.         "name": "activateACL",
  74.  
  75.         "xml": "<method rpc='activateACL' mode='sync'>\n",
  76.  
  77.         "comments": "",
  78.  
  79.         "outputs": 1,
  80.  
  81.         "x": 664,
  82.  
  83.         "y": 130,
  84.  
  85.         "z": "6dd91445.77f8d4",
  86.  
  87.         "wires": [
  88.  
  89.             [
  90.  
  91.                 "3e9f8b06.58a0fc"
  92.  
  93.             ]
  94.  
  95.         ]
  96.  
  97.     },
  98.  
  99.     {
  100.  
  101.         "id": "775c65f1.4048f4",
  102.  
  103.         "type": "other",
  104.  
  105.         "name": "other",
  106.  
  107.         "xml": "<outcome value='Other'>\n",
  108.  
  109.         "comments": "",
  110.  
  111.         "outputs": 1,
  112.  
  113.         "x": 740,
  114.  
  115.         "y": 450,
  116.  
  117.         "z": "6dd91445.77f8d4",
  118.  
  119.         "wires": [
  120.  
  121.             [
  122.  
  123.                 "eef7617e.e190c8"
  124.  
  125.             ]
  126.  
  127.         ]
  128.  
  129.     },
  130.  
  131.     {
  132.  
  133.         "id": "f32e658f.9124a",
  134.  
  135.         "type": "execute",
  136.  
  137.         "name": "activate-acl-service",
  138.  
  139.         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name=\"responsePrefix\" value=\"activateResponse\" />\n    <parameter name=\"format\" value=\"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 + '/yang-ext:mount/tailf-ncs:services/acl-service:acl-service/' + $aclName `\" />\n    <parameter name=\"requestBody\" value=\"`$activateRequestBody`\" />",
  140.  
  141.         "comments": "",
  142.  
  143.         "outputs": 1,
  144.  
  145.         "x": 526,
  146.  
  147.         "y": 345,
  148.  
  149.         "z": "6dd91445.77f8d4",
  150.  
  151.         "wires": [
  152.  
  153.             [
  154.  
  155.                 "775c65f1.4048f4",
  156.  
  157.                 "a6aeafab.a5e5c8"
  158.  
  159.             ]
  160.  
  161.         ]
  162.  
  163.     },
  164.  
  165.     {
  166.  
  167.         "id": "a6aeafab.a5e5c8",
  168.  
  169.         "type": "success",
  170.  
  171.         "name": "success",
  172.  
  173.         "xml": "<outcome value='success'>\n",
  174.  
  175.         "comments": "",
  176.  
  177.         "outputs": 1,
  178.  
  179.         "x": 744,
  180.  
  181.         "y": 345,
  182.  
  183.         "z": "6dd91445.77f8d4",
  184.  
  185.         "wires": [
  186.  
  187.             [
  188.  
  189.                 "1e68dcfa.16f6fb"
  190.  
  191.             ]
  192.  
  193.         ]
  194.  
  195.     },
  196.  
  197.     {
  198.  
  199.         "id": "eef7617e.e190c8",
  200.  
  201.         "type": "returnFailure",
  202.  
  203.         "name": "return DELETE failure",
  204.  
  205.         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"Unable to activate ACL service!\" />\n",
  206.  
  207.         "comments": "",
  208.  
  209.         "x": 927,
  210.  
  211.         "y": 450,
  212.  
  213.         "z": "6dd91445.77f8d4",
  214.  
  215.         "wires": []
  216.  
  217.     },
  218.  
  219.     {
  220.  
  221.         "id": "1e68dcfa.16f6fb",
  222.  
  223.         "type": "returnSuccess",
  224.  
  225.         "name": "return success",
  226.  
  227.         "xml": "<return status='success'>\n",
  228.  
  229.         "comments": "",
  230.  
  231.         "x": 928,
  232.  
  233.         "y": 344,
  234.  
  235.         "z": "6dd91445.77f8d4",
  236.  
  237.         "wires": []
  238.  
  239.     },
  240.  
  241.     {
  242.  
  243.         "id": "96dfdcc6.d2196",
  244.  
  245.         "type": "set",
  246.  
  247.         "name": "createActivateServiceRequest",
  248.  
  249.         "xml": "<set>\n<parameter name='activateRequestBody' value=\"`'{&quot;acl-service:acl-service&quot;: [{&quot;ACL_Direction&quot;: &quot;' + $aclDirection + '&quot;,&quot;ACL_Name&quot;: &quot;' + $aclName + '&quot;,&quot;devices&quot;: [{&quot;device_name&quot;: &quot;' + $aclDeviceName + '&quot;,&quot;interfaces&quot;: [{&quot;interface_type&quot;: &quot;' + $aclInterfaceType + '&quot;,&quot;interface_number&quot;: &quot;' + $aclInterfaceNumber + '&quot;}]}]}]}'`\" />\n",
  250.  
  251.         "comments": "",
  252.  
  253.         "x": 565,
  254.  
  255.         "y": 258,
  256.  
  257.         "z": "6dd91445.77f8d4",
  258.  
  259.         "wires": []
  260.  
  261.     },
  262.  
  263.     {
  264.  
  265.         "id": "3e9f8b06.58a0fc",
  266.  
  267.         "type": "block",
  268.  
  269.         "name": "block",
  270.  
  271.         "xml": "<block>\n",
  272.  
  273.         "atomic": "false",
  274.  
  275.         "comments": "",
  276.  
  277.         "outputs": 1,
  278.  
  279.         "x": 286,
  280.  
  281.         "y": 308,
  282.  
  283.         "z": "6dd91445.77f8d4",
  284.  
  285.         "wires": [
  286.  
  287.             [
  288.  
  289.                 "96dfdcc6.d2196",
  290.  
  291.                 "f32e658f.9124a"
  292.  
  293.             ]
  294.  
  295.         ]
  296.  
  297.     }
  298.  
  299. ]
RAW Paste Data