5caf6849da2b39cffdbc99f02b3ae2c8d2e84036
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.json
1 [
2   {
3     "id": "1cff3dd.1bd75c2",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 132.00390625,
8     "y": 51.00390625,
9     "z": "54170a80.42c614",
10     "wires": [
11       [
12         "93d49eff.25811"
13       ]
14     ]
15   },
16   {
17     "id": "93d49eff.25811",
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": 288.00391006469727,
26     "y": 142.00392818450928,
27     "z": "54170a80.42c614",
28     "wires": [
29       [
30         "92b42a02.8d5ca8"
31       ]
32     ]
33   },
34   {
35     "id": "92b42a02.8d5ca8",
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": 276.0040283203125,
42     "y": 230.00391101837158,
43     "z": "54170a80.42c614",
44     "wires": [
45       [
46         "366ea887.121e48"
47       ]
48     ]
49   },
50   {
51     "id": "366ea887.121e48",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 499.0039825439453,
59     "y": 302.00398445129395,
60     "z": "54170a80.42c614",
61     "wires": [
62       [
63         "cd5f7c65.252fa",
64         "62b5f38f.a23b1c",
65         "321a98d2.d65578",
66         "acc7b853.93de78",
67         "66a195e2.15165c",
68         "e88b4c8f.26b3d",
69         "f5303ddb.a29a7",
70         "85416f02.f4216"
71       ]
72     ]
73   },
74   {
75     "id": "cd5f7c65.252fa",
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": 930.6150512695312,
82     "y": 50.337249755859375,
83     "z": "54170a80.42c614",
84     "wires": [
85       [
86         
87       ]
88     ]
89   },
90   {
91     "id": "62b5f38f.a23b1c",
92     "type": "record",
93     "name": "record",
94     "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",
95     "comments": "",
96     "outputs": 1,
97     "x": 735.03515625,
98     "y": 93.36850261688232,
99     "z": "54170a80.42c614",
100     "wires": [
101       [
102         
103       ]
104     ]
105   },
106   {
107     "id": "66a195e2.15165c",
108     "type": "set",
109     "name": "set networkId and network-object-path",
110     "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/'` \" />",
111     "comments": "",
112     "x": 826.0352058410645,
113     "y": 281.90394401550293,
114     "z": "54170a80.42c614",
115     "wires": [
116       
117     ]
118   },
119   {
120     "id": "85416f02.f4216",
121     "type": "returnSuccess",
122     "name": "return success",
123     "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",
124     "comments": "",
125     "x": 747.8130073547363,
126     "y": 471.45936393737793,
127     "z": "54170a80.42c614",
128     "wires": [
129       
130     ]
131   },
132   {
133     "id": "e88b4c8f.26b3d",
134     "type": "set",
135     "name": "set network-level-oper-status",
136     "xml": "<set>\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status' value='PendingDelete' />\n<parameter name='service-data.networks.network[$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[$nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
137     "comments": "",
138     "x": 792.9241218566895,
139     "y": 343.12611865997314,
140     "z": "54170a80.42c614",
141     "wires": [
142       
143     ]
144   },
145   {
146     "id": "321a98d2.d65578",
147     "type": "execute",
148     "name": "execute Properties",
149     "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",
150     "comments": "",
151     "outputs": 1,
152     "x": 767.3372611999512,
153     "y": 146.36853885650635,
154     "z": "54170a80.42c614",
155     "wires": [
156       [
157         
158       ]
159     ]
160   },
161   {
162     "id": "f5303ddb.a29a7",
163     "type": "update",
164     "name": "update SOTN Connectivity status to AAI",
165     "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' />",
166     "comments": "",
167     "outputs": 1,
168     "x": 827.1427040100098,
169     "y": 402.82930755615234,
170     "z": "54170a80.42c614",
171     "wires": [
172       [
173         
174       ]
175     ]
176   },
177   {
178     "id": "acc7b853.93de78",
179     "type": "set",
180     "name": "set network in service-data",
181     "xml": "<set>\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />",
182     "comments": "",
183     "x": 789.479679107666,
184     "y": 213.68170356750488,
185     "z": "54170a80.42c614",
186     "wires": [
187       
188     ]
189   },
190   {
191     "id": "b10f480b.ef7f98",
192     "type": "comment",
193     "name": "TODO MP2MP",
194     "info": "Current implementation is for P2P connectivity\nFor MP2MP connectivity in future DG needs to be modified",
195     "comments": "",
196     "x": 1014.5108070373535,
197     "y": 136.6219301223755,
198     "z": "54170a80.42c614",
199     "wires": [
200       
201     ]
202   }
203 ]