Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "7d6c5d34.e5be9c",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 239,
- "y": 130,
- "z": "6dd91445.77f8d4",
- "wires": [
- [
- "e5666b21.e9313"
- ]
- ]
- },
- {
- "id": "e5666b21.e9313",
- "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": 444,
- "y": 130,
- "z": "6dd91445.77f8d4",
- "wires": [
- [
- "79cb6ff.02d0f1"
- ]
- ]
- },
- {
- "id": "79cb6ff.02d0f1",
- "type": "method",
- "name": "activateACL",
- "xml": "<method rpc='activateACL' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 664,
- "y": 130,
- "z": "6dd91445.77f8d4",
- "wires": [
- [
- "3e9f8b06.58a0fc"
- ]
- ]
- },
- {
- "id": "775c65f1.4048f4",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 740,
- "y": 450,
- "z": "6dd91445.77f8d4",
- "wires": [
- [
- "eef7617e.e190c8"
- ]
- ]
- },
- {
- "id": "f32e658f.9124a",
- "type": "execute",
- "name": "activate-acl-service",
- "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`\" />",
- "comments": "",
- "outputs": 1,
- "x": 526,
- "y": 345,
- "z": "6dd91445.77f8d4",
- "wires": [
- [
- "775c65f1.4048f4",
- "a6aeafab.a5e5c8"
- ]
- ]
- },
- {
- "id": "a6aeafab.a5e5c8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 744,
- "y": 345,
- "z": "6dd91445.77f8d4",
- "wires": [
- [
- "1e68dcfa.16f6fb"
- ]
- ]
- },
- {
- "id": "eef7617e.e190c8",
- "type": "returnFailure",
- "name": "return DELETE failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"Unable to activate ACL service!\" />\n",
- "comments": "",
- "x": 927,
- "y": 450,
- "z": "6dd91445.77f8d4",
- "wires": []
- },
- {
- "id": "1e68dcfa.16f6fb",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n",
- "comments": "",
- "x": 928,
- "y": 344,
- "z": "6dd91445.77f8d4",
- "wires": []
- },
- {
- "id": "96dfdcc6.d2196",
- "type": "set",
- "name": "createActivateServiceRequest",
- "xml": "<set>\n<parameter name='activateRequestBody' value=\"`'{"acl-service:acl-service": [{"ACL_Direction": "' + $aclDirection + '","ACL_Name": "' + $aclName + '","devices": [{"device_name": "' + $aclDeviceName + '","interfaces": [{"interface_type": "' + $aclInterfaceType + '","interface_number": "' + $aclInterfaceNumber + '"}]}]}]}'`\" />\n",
- "comments": "",
- "x": 565,
- "y": 258,
- "z": "6dd91445.77f8d4",
- "wires": []
- },
- {
- "id": "3e9f8b06.58a0fc",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 286,
- "y": 308,
- "z": "6dd91445.77f8d4",
- "wires": [
- [
- "96dfdcc6.d2196",
- "f32e658f.9124a"
- ]
- ]
- }
- ]
Add Comment
Please, Sign In to add comment