Connecting SOTN sub DGs to network DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.json
1 [
2   {
3     "id": "dbfbe99b.e9cbe8",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 116.01040649414062,
8     "y": 44.666656255722046,
9     "z": "25c39c60.9e5894",
10     "wires": [
11       [
12         "23197697.79faaa"
13       ]
14     ]
15   },
16   {
17     "id": "23197697.79faaa",
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": 272.0104103088379,
26     "y": 135.66667819023132,
27     "z": "25c39c60.9e5894",
28     "wires": [
29       [
30         "f4094d1c.b6791"
31       ]
32     ]
33   },
34   {
35     "id": "f4094d1c.b6791",
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": 260.0105285644531,
42     "y": 223.66666102409363,
43     "z": "25c39c60.9e5894",
44     "wires": [
45       [
46         "8b588587.07d838"
47       ]
48     ]
49   },
50   {
51     "id": "8b588587.07d838",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 483.01048278808594,
59     "y": 295.666734457016,
60     "z": "25c39c60.9e5894",
61     "wires": [
62       [
63         "37ee3ec1.d168c2",
64         "84f57d66.de4e4",
65         "54ed7f5.2ee008",
66         "642b70ce.9a12c",
67         "26a09247.15d9ee",
68         "d068035a.95625",
69         "453b73b2.972dac",
70         "c7d360a9.620ce"
71       ]
72     ]
73   },
74   {
75     "id": "37ee3ec1.d168c2",
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": 914.6215515136719,
82     "y": 43.99999976158142,
83     "z": "25c39c60.9e5894",
84     "wires": [
85       [
86         
87       ]
88     ]
89   },
90   {
91     "id": "84f57d66.de4e4",
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": 719.0416564941406,
98     "y": 87.03125262260437,
99     "z": "25c39c60.9e5894",
100     "wires": [
101       [
102         
103       ]
104     ]
105   },
106   {
107     "id": "26a09247.15d9ee",
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": 810.0417060852051,
113     "y": 275.566694021225,
114     "z": "25c39c60.9e5894",
115     "wires": [
116       
117     ]
118   },
119   {
120     "id": "c7d360a9.620ce",
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": 731.819507598877,
126     "y": 465.1221139431,
127     "z": "25c39c60.9e5894",
128     "wires": [
129       
130     ]
131   },
132   {
133     "id": "d068035a.95625",
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": 776.9306221008301,
139     "y": 336.7888686656952,
140     "z": "25c39c60.9e5894",
141     "wires": [
142       
143     ]
144   },
145   {
146     "id": "54ed7f5.2ee008",
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": 751.3437614440918,
153     "y": 140.0312888622284,
154     "z": "25c39c60.9e5894",
155     "wires": [
156       [
157         
158       ]
159     ]
160   },
161   {
162     "id": "453b73b2.972dac",
163     "type": "update",
164     "name": "update SOTN Connectivity status to AAI",
165     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='configuration' \n      key='configuration.configuration-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='configuration-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='PendingDelete' />",
166     "comments": "",
167     "outputs": 1,
168     "x": 811.1492042541504,
169     "y": 396.4920575618744,
170     "z": "25c39c60.9e5894",
171     "wires": [
172       [
173         
174       ]
175     ]
176   },
177   {
178     "id": "642b70ce.9a12c",
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": 773.4861793518066,
184     "y": 207.34445357322693,
185     "z": "25c39c60.9e5894",
186     "wires": [
187       
188     ]
189   },
190   {
191     "id": "e7e26097.3b8df",
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": 998.5173072814941,
197     "y": 130.28468012809753,
198     "z": "25c39c60.9e5894",
199     "wires": [
200       
201     ]
202   }
203 ]