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-activate.json
1 [
2   {
3     "id": "4ff24108.9f0b9",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 110.01040649414062,
8     "y": 84,
9     "z": "7e44475f.b60658",
10     "wires": [
11       [
12         "49314d16.951114"
13       ]
14     ]
15   },
16   {
17     "id": "49314d16.951114",
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": 296.0104103088379,
26     "y": 156.0000171661377,
27     "z": "7e44475f.b60658",
28     "wires": [
29       [
30         "cacaf9a3.ed2eb8"
31       ]
32     ]
33   },
34   {
35     "id": "cacaf9a3.ed2eb8",
36     "type": "method",
37     "name": "method sotn-network-topology-operation-activate",
38     "xml": "<method rpc='sotn-network-topology-operation-activate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 284.0105285644531,
42     "y": 244,
43     "z": "7e44475f.b60658",
44     "wires": [
45       [
46         "6fc16268.2c373c"
47       ]
48     ]
49   },
50   {
51     "id": "6fc16268.2c373c",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 458.0104217529297,
59     "y": 352.0000591278076,
60     "z": "7e44475f.b60658",
61     "wires": [
62       [
63         "f31091a3.27362",
64         "15ed0f21.483631",
65         "b7e9a733.12c248",
66         "739286aa.7b5518",
67         "fc03b474.733c48",
68         "8ec0cdeb.99354",
69         "4aa12b59.10e594",
70         "cdb930eb.4db64"
71       ]
72     ]
73   },
74   {
75     "id": "f31091a3.27362",
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": 916.3993072509766,
82     "y": 101,
83     "z": "7e44475f.b60658",
84     "wires": [
85       [
86         
87       ]
88     ]
89   },
90   {
91     "id": "15ed0f21.483631",
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-Activate\"/>\n",
95     "comments": "",
96     "outputs": 1,
97     "x": 716.5660057067871,
98     "y": 154.77785301208496,
99     "z": "7e44475f.b60658",
100     "wires": [
101       [
102         
103       ]
104     ]
105   },
106   {
107     "id": "b7e9a733.12c248",
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": 807.5660552978516,
113     "y": 343.31329441070557,
114     "z": "7e44475f.b60658",
115     "wires": [
116       
117     ]
118   },
119   {
120     "id": "739286aa.7b5518",
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": 729.3438568115234,
126     "y": 532.8687143325806,
127     "z": "7e44475f.b60658",
128     "wires": [
129       
130     ]
131   },
132   {
133     "id": "fc03b474.733c48",
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='Active' />\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": 774.4549713134766,
139     "y": 404.5354690551758,
140     "z": "7e44475f.b60658",
141     "wires": [
142       
143     ]
144   },
145   {
146     "id": "8ec0cdeb.99354",
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": 748.8681106567383,
153     "y": 207.77788925170898,
154     "z": "7e44475f.b60658",
155     "wires": [
156       [
157         
158       ]
159     ]
160   },
161   {
162     "id": "4aa12b59.10e594",
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='Active' />",
166     "comments": "",
167     "outputs": 1,
168     "x": 808.6735534667969,
169     "y": 464.238657951355,
170     "z": "7e44475f.b60658",
171     "wires": [
172       [
173         
174       ]
175     ]
176   },
177   {
178     "id": "cdb930eb.4db64",
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": 771.0105285644531,
184     "y": 275.0910539627075,
185     "z": "7e44475f.b60658",
186     "wires": [
187       
188     ]
189   },
190   {
191     "id": "c713ecf7.ea914",
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": 996.0416564941406,
197     "y": 198.03128051757812,
198     "z": "7e44475f.b60658",
199     "wires": [
200       
201     ]
202   }
203 ]