Allow sub directories for graphs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.json
1 [
2   {
3     "id": "3ac27f10.3a8f4",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 201,
8     "y": 111,
9     "z": "4bc69b52.b6d424",
10     "wires": [
11       [
12         "a4d35571.5a50a8"
13       ]
14     ]
15   },
16   {
17     "id": "a4d35571.5a50a8",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API ${project.version}",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "${project.version}",
22     "comments": "",
23     "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='GENERIC-RESOURCE-API' version='${project.version}'>",
24     "outputs": 1,
25     "x": 357.00000381469727,
26     "y": 202.00002193450928,
27     "z": "4bc69b52.b6d424",
28     "wires": [
29       [
30         "227b9b33.0bedd4"
31       ]
32     ]
33   },
34   {
35     "id": "227b9b33.0bedd4",
36     "type": "method",
37     "name": "method sotn-network-topology-operation-deactivate",
38     "xml": "<method rpc='sotn-network-topology-operation-deactivate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 345.0001220703125,
42     "y": 290.0000047683716,
43     "z": "4bc69b52.b6d424",
44     "wires": [
45       [
46         "5e6e65c4.2242fc"
47       ]
48     ]
49   },
50   {
51     "id": "5e6e65c4.2242fc",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 568.0000762939453,
59     "y": 362.00007820129395,
60     "z": "4bc69b52.b6d424",
61     "wires": [
62       [
63         "d2ec6450.70e238",
64         "e44a5ce1.2a6d1",
65         "ae274e39.92bc9",
66         "368c52e1.6b342e",
67         "1101140b.a4b22c",
68         "2730f4e7.d0214c",
69         "96a05e1e.a91ab",
70         "9cbc0828.b45c18"
71       ]
72     ]
73   },
74   {
75     "id": "d2ec6450.70e238",
76     "type": "call",
77     "name": "call GENERIC-RESOURCE-API:validate-sotn-network-input-parameters",
78     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sotn-network-input-parameters' mode='sync' >\n",
79     "comments": "",
80     "outputs": 1,
81     "x": 999.6111450195312,
82     "y": 110.33334350585938,
83     "z": "4bc69b52.b6d424",
84     "wires": [
85       []
86     ]
87   },
88   {
89     "id": "e44a5ce1.2a6d1",
90     "type": "record",
91     "name": "record",
92     "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sotn-network-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SOTN-Deactivate\"/>\n",
93     "comments": "",
94     "outputs": 1,
95     "x": 804.03125,
96     "y": 153.36459636688232,
97     "z": "4bc69b52.b6d424",
98     "wires": [
99       []
100     ]
101   },
102   {
103     "id": "1101140b.a4b22c",
104     "type": "set",
105     "name": "set networkId and network-object-path",
106     "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $network-topology-operation-input.network-information.network-id  + '/network-data/'` \" />",
107     "comments": "",
108     "x": 897.0313110351562,
109     "y": 340.9000244140625,
110     "z": "4bc69b52.b6d424",
111     "wires": []
112   },
113   {
114     "id": "9cbc0828.b45c18",
115     "type": "returnSuccess",
116     "name": "return success",
117     "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
118     "comments": "",
119     "x": 816.8091011047363,
120     "y": 531.4554576873779,
121     "z": "4bc69b52.b6d424",
122     "wires": []
123   },
124   {
125     "id": "2730f4e7.d0214c",
126     "type": "set",
127     "name": "set network-level-oper-status",
128     "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='PendingDelete' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
129     "comments": "",
130     "x": 861.9202156066895,
131     "y": 403.12221240997314,
132     "z": "4bc69b52.b6d424",
133     "wires": []
134   },
135   {
136     "id": "ae274e39.92bc9",
137     "type": "execute",
138     "name": "execute Properties",
139     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
140     "comments": "",
141     "outputs": 1,
142     "x": 836.3333549499512,
143     "y": 206.36463260650635,
144     "z": "4bc69b52.b6d424",
145     "wires": [
146       []
147     ]
148   },
149   {
150     "id": "96a05e1e.a91ab",
151     "type": "update",
152     "name": "update SOTN Connectivity status to AAI",
153     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='connectivity-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='PendingDelete' />",
154     "comments": "",
155     "outputs": 1,
156     "x": 896.1387977600098,
157     "y": 462.82540130615234,
158     "z": "4bc69b52.b6d424",
159     "wires": [
160       []
161     ]
162   },
163   {
164     "id": "368c52e1.6b342e",
165     "type": "set",
166     "name": "set network in service-data",
167     "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />",
168     "comments": "",
169     "x": 858.475772857666,
170     "y": 273.6777973175049,
171     "z": "4bc69b52.b6d424",
172     "wires": []
173   },
174   {
175     "id": "44f3a46.f2f575c",
176     "type": "comment",
177     "name": "TODO MP2MP",
178     "info": "Current implementation is for P2P connectivity\nFor MP2MP connectivity in future DG needs to be modified",
179     "comments": "",
180     "x": 1083.5069007873535,
181     "y": 196.6180238723755,
182     "z": "4bc69b52.b6d424",
183     "wires": []
184   }
185 ]