Generic resource API DG catch up
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json
1 [
2   {
3     "id": "dade7d5.3be378",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 116.01040649414062,
8     "y": 55.999999734573066,
9     "z": "1ff7724b.6a5b2e",
10     "wires": [
11       [
12         "88d1057.ae444f8"
13       ]
14     ]
15   },
16   {
17     "id": "88d1057.ae444f8",
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": 328.0104103088379,
26     "y": 128.00001690071076,
27     "z": "1ff7724b.6a5b2e",
28     "wires": [
29       [
30         "1b879646.8c5f2a"
31       ]
32     ]
33   },
34   {
35     "id": "1b879646.8c5f2a",
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": 316.0105285644531,
42     "y": 215.99999973457307,
43     "z": "1ff7724b.6a5b2e",
44     "wires": [
45       [
46         "84422522.f0dfe8"
47       ]
48     ]
49   },
50   {
51     "id": "84422522.f0dfe8",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 486.45486068725586,
59     "y": 278.44445583503693,
60     "z": "1ff7724b.6a5b2e",
61     "wires": [
62       [
63         "8bc679c2.d2e228",
64         "3dd9c771.f2d768",
65         "81f00f63.ec84b",
66         "a13b30bd.b7628",
67         "a4092a94.cd0c48",
68         "2768fcc.58a2004",
69         "8b28cfea.bd23e"
70       ]
71     ]
72   },
73   {
74     "id": "8bc679c2.d2e228",
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": 948.3993072509766,
81     "y": 72.99999973457307,
82     "z": "1ff7724b.6a5b2e",
83     "wires": [
84       [
85         
86       ]
87     ]
88   },
89   {
90     "id": "3dd9c771.f2d768",
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": 761.7881317138672,
97     "y": 139.33337185066193,
98     "z": "1ff7724b.6a5b2e",
99     "wires": [
100       [
101         
102       ]
103     ]
104   },
105   {
106     "id": "81f00f63.ec84b",
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": 846.4548149108887,
112     "y": 387.42429134529084,
113     "z": "1ff7724b.6a5b2e",
114     "wires": [
115       
116     ]
117   },
118   {
119     "id": "a13b30bd.b7628",
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": 775.5660629272461,
125     "y": 450.97967931907624,
126     "z": "1ff7724b.6a5b2e",
127     "wires": [
128       
129     ]
130   },
131   {
132     "id": "2768fcc.58a2004",
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": 805.0874862670898,
138     "y": 264.8952014176175,
139     "z": "1ff7724b.6a5b2e",
140     "wires": [
141       
142     ]
143   },
144   {
145     "id": "a4092a94.cd0c48",
146     "type": "set",
147     "name": "Remove networks from ServiceData",
148     "xml": "<set>\n\t<parameter name=\"service-data.networks.network[$tmp.nidx].\" value=\"\"/>\n\n",
149     "comments": "",
150     "x": 845.7116432189941,
151     "y": 312.86314317863435,
152     "z": "1ff7724b.6a5b2e",
153     "wires": [
154       
155     ]
156   },
157   {
158     "id": "8b28cfea.bd23e",
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": 883.6429862976074,
165     "y": 206.0062854019925,
166     "z": "1ff7724b.6a5b2e",
167     "wires": [
168       [
169         
170       ]
171     ]
172   }
173 ]