Adding SOTN Connectivity Resource DG.
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json
1 [
2   {
3     "id": "6fceaf50.2ca8a",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 97.03125762939453,
8     "y": 60.531246185302734,
9     "z": "4279d5d.f45972c",
10     "wires": [
11       [
12         "cff1a431.d9d948"
13       ]
14     ]
15   },
16   {
17     "id": "cff1a431.d9d948",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API 1.2.1-SNAPSHOT",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "1.2.1-SNAPSHOT",
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='1.2.1-SNAPSHOT'>",
24     "outputs": 1,
25     "x": 309.0312614440918,
26     "y": 132.53126335144043,
27     "z": "4279d5d.f45972c",
28     "wires": [
29       [
30         "f4a2f725.1d7778"
31       ]
32     ]
33   },
34   {
35     "id": "f4a2f725.1d7778",
36     "type": "method",
37     "name": "method sotn-network-topology-operation-delete",
38     "xml": "<method rpc='sotn-network-topology-operation-delete' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 297.03137969970703,
42     "y": 220.53124618530273,
43     "z": "4279d5d.f45972c",
44     "wires": [
45       [
46         "977562d1.fa7af"
47       ]
48     ]
49   },
50   {
51     "id": "977562d1.fa7af",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 467.47571182250977,
59     "y": 282.9757022857666,
60     "z": "4279d5d.f45972c",
61     "wires": [
62       [
63         "6af1abf.a866354",
64         "18eeced4.574d91",
65         "406c5f6.7e479a",
66         "10a58dd4.391ce2",
67         "60c54ca0.bb3fb4",
68         "47c1a26c.4cd8ec",
69         "a482b966.7af068"
70       ]
71     ]
72   },
73   {
74     "id": "6af1abf.a866354",
75     "type": "call",
76     "name": "call GENERIC-RESOURCE-API:validate-sotn-network-input-parameters",
77     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sotn-network-input-parameters' mode='sync' >\n",
78     "comments": "",
79     "outputs": 1,
80     "x": 929.4201583862305,
81     "y": 77.53124618530273,
82     "z": "4279d5d.f45972c",
83     "wires": [
84       [
85         
86       ]
87     ]
88   },
89   {
90     "id": "18eeced4.574d91",
91     "type": "record",
92     "name": "record",
93     "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-delete\"/>\n<parameter name=\"field3\" value=\"SOTN-Delete\"/>\n",
94     "comments": "",
95     "outputs": 1,
96     "x": 742.8089828491211,
97     "y": 143.8646183013916,
98     "z": "4279d5d.f45972c",
99     "wires": [
100       [
101         
102       ]
103     ]
104   },
105   {
106     "id": "406c5f6.7e479a",
107     "type": "set",
108     "name": "set networkId and network-object-path",
109     "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
110     "comments": "",
111     "x": 827.4756660461426,
112     "y": 391.9555377960205,
113     "z": "4279d5d.f45972c",
114     "wires": [
115       
116     ]
117   },
118   {
119     "id": "10a58dd4.391ce2",
120     "type": "returnSuccess",
121     "name": "return success",
122     "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",
123     "comments": "",
124     "x": 756.5869140625,
125     "y": 455.5109257698059,
126     "z": "4279d5d.f45972c",
127     "wires": [
128       
129     ]
130   },
131   {
132     "id": "47c1a26c.4cd8ec",
133     "type": "set",
134     "name": "set new network length",
135     "xml": "<set>\n\t<parameter name=\"service-data.networks.network_length\" value=\"`$service-data.networks.network_length - 1`\"/>\n\n\t\n",
136     "comments": "",
137     "x": 786.1083374023438,
138     "y": 269.42644786834717,
139     "z": "4279d5d.f45972c",
140     "wires": [
141       
142     ]
143   },
144   {
145     "id": "60c54ca0.bb3fb4",
146     "type": "set",
147     "name": "Remove networks from ServiceData",
148     "xml": "<set>\n\t<parameter name=\"service-data.networks.network[$nidx].\" value=\"\"/>\n\n",
149     "comments": "",
150     "x": 826.732494354248,
151     "y": 317.394389629364,
152     "z": "4279d5d.f45972c",
153     "wires": [
154       
155     ]
156   },
157   {
158     "id": "a482b966.7af068",
159     "type": "delete",
160     "name": "delete SOTN VPNInstance configuration in AAI",
161     "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='configuration' \n        key='configuration.configuration-id = $network-topology-operation-input.network-information.network-id'>\n",
162     "comments": "",
163     "outputs": 1,
164     "x": 864.6638374328613,
165     "y": 210.53753185272217,
166     "z": "4279d5d.f45972c",
167     "wires": [
168       [
169         
170       ]
171     ]
172   }
173 ]