Refactored SOTN and SDWAN DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sotn / GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json
1 [
2   {
3     "id": "e2842db5.a9071",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 107.00390625,
8     "y": 70.00390625,
9     "z": "54170a80.42c614",
10     "wires": [
11       [
12         "d0423637.689c18"
13       ]
14     ]
15   },
16   {
17     "id": "d0423637.689c18",
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": 319.00391006469727,
26     "y": 142.0039234161377,
27     "z": "54170a80.42c614",
28     "wires": [
29       [
30         "8964c247.35272"
31       ]
32     ]
33   },
34   {
35     "id": "8964c247.35272",
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": 307.0040283203125,
42     "y": 230.00390625,
43     "z": "54170a80.42c614",
44     "wires": [
45       [
46         "7ece957c.81e36c"
47       ]
48     ]
49   },
50   {
51     "id": "7ece957c.81e36c",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 477.44836044311523,
59     "y": 292.44836235046387,
60     "z": "54170a80.42c614",
61     "wires": [
62       [
63         "1ccc938f.2f224c",
64         "a9d1874f.281198",
65         "bebcb7e3.f95d48",
66         "f957f73b.5f1c98",
67         "77e06509.a268cc",
68         "ed0dab58.6e6938",
69         "53d6d08a.6aeb8"
70       ]
71     ]
72   },
73   {
74     "id": "1ccc938f.2f224c",
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": 939.3928070068359,
81     "y": 87.00390625,
82     "z": "54170a80.42c614",
83     "wires": [
84       [
85         
86       ]
87     ]
88   },
89   {
90     "id": "a9d1874f.281198",
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": 752.7816314697266,
97     "y": 153.33727836608887,
98     "z": "54170a80.42c614",
99     "wires": [
100       [
101         
102       ]
103     ]
104   },
105   {
106     "id": "bebcb7e3.f95d48",
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": 837.448314666748,
112     "y": 401.4281978607178,
113     "z": "54170a80.42c614",
114     "wires": [
115       
116     ]
117   },
118   {
119     "id": "f957f73b.5f1c98",
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": 766.5595626831055,
125     "y": 464.9835858345032,
126     "z": "54170a80.42c614",
127     "wires": [
128       
129     ]
130   },
131   {
132     "id": "ed0dab58.6e6938",
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": 796.0809860229492,
138     "y": 278.89910793304443,
139     "z": "54170a80.42c614",
140     "wires": [
141       
142     ]
143   },
144   {
145     "id": "77e06509.a268cc",
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": 836.7051429748535,
151     "y": 326.8670496940613,
152     "z": "54170a80.42c614",
153     "wires": [
154       
155     ]
156   },
157   {
158     "id": "53d6d08a.6aeb8",
159     "type": "delete",
160     "name": "delete SOTN VPNInstance connectivity in AAI",
161     "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='connectivity' \n        key='connectivity.connectivity-id = $network-topology-operation-input.network-information.network-id'>\n",
162     "comments": "",
163     "outputs": 1,
164     "x": 874.6364860534668,
165     "y": 220.01019191741943,
166     "z": "54170a80.42c614",
167     "wires": [
168       [
169         
170       ]
171     ]
172   }
173 ]