Refactored SOTN and SDWAN DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-network-topology-operation-delete.json
1 [
2   {
3     "id": "557c0d2.e91edf4",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 121.00390625,
8     "y": 50.00390625,
9     "z": "f08fa760.244488",
10     "wires": [
11       [
12         "93294ef3.ba70b"
13       ]
14     ]
15   },
16   {
17     "id": "93294ef3.ba70b",
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": 333.00391006469727,
26     "y": 122.0039234161377,
27     "z": "f08fa760.244488",
28     "wires": [
29       [
30         "d7638881.bfb4c8"
31       ]
32     ]
33   },
34   {
35     "id": "d7638881.bfb4c8",
36     "type": "method",
37     "name": "method sdwan-network-topology-operation-delete",
38     "xml": "<method rpc='sdwan-network-topology-operation-delete' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 321.0040283203125,
42     "y": 210.00390625,
43     "z": "f08fa760.244488",
44     "wires": [
45       [
46         "96e57ca9.97c2e"
47       ]
48     ]
49   },
50   {
51     "id": "96e57ca9.97c2e",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 491.44836044311523,
59     "y": 272.44836235046387,
60     "z": "f08fa760.244488",
61     "wires": [
62       [
63         "3ea486fa.98e8fa",
64         "5a29219c.c419d",
65         "8d5f8731.51c938",
66         "40643a2d.08d114",
67         "24e3bcc2.2186b4",
68         "c8f5f5d0.be2858",
69         "cb920ad8.ed1188"
70       ]
71     ]
72   },
73   {
74     "id": "3ea486fa.98e8fa",
75     "type": "call",
76     "name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters",
77     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n",
78     "comments": "",
79     "outputs": 1,
80     "x": 972.3928146362305,
81     "y": 67.00391006469727,
82     "z": "f08fa760.244488",
83     "wires": [
84       []
85     ]
86   },
87   {
88     "id": "5a29219c.c419d",
89     "type": "record",
90     "name": "record",
91     "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=\"sdwan-network-topology-operation-delete\"/>\n<parameter name=\"field3\" value=\"SDWAN-Delete\"/>\n",
92     "comments": "",
93     "outputs": 1,
94     "x": 766.7816314697266,
95     "y": 133.33727836608887,
96     "z": "f08fa760.244488",
97     "wires": [
98       []
99     ]
100   },
101   {
102     "id": "8d5f8731.51c938",
103     "type": "set",
104     "name": "set networkId and network-object-path",
105     "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/'` \" />",
106     "comments": "",
107     "x": 851.448314666748,
108     "y": 381.4281978607178,
109     "z": "f08fa760.244488",
110     "wires": []
111   },
112   {
113     "id": "40643a2d.08d114",
114     "type": "returnSuccess",
115     "name": "return success",
116     "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",
117     "comments": "",
118     "x": 780.5595626831055,
119     "y": 444.9835858345032,
120     "z": "f08fa760.244488",
121     "wires": []
122   },
123   {
124     "id": "c8f5f5d0.be2858",
125     "type": "set",
126     "name": "set new network length",
127     "xml": "<set>\n\t<parameter name=\"service-data.networks.network_length\" value=\"`$service-data.networks.network_length - 1`\"/>\n\n\t\n",
128     "comments": "",
129     "x": 810.0809860229492,
130     "y": 258.89910793304443,
131     "z": "f08fa760.244488",
132     "wires": []
133   },
134   {
135     "id": "24e3bcc2.2186b4",
136     "type": "set",
137     "name": "Remove networks from ServiceData",
138     "xml": "<set>\n\t<parameter name=\"service-data.networks.network[$tmp.nidx].\" value=\"\"/>\n\n",
139     "comments": "",
140     "x": 850.7051429748535,
141     "y": 306.8670496940613,
142     "z": "f08fa760.244488",
143     "wires": []
144   },
145   {
146     "id": "cb920ad8.ed1188",
147     "type": "delete",
148     "name": "delete SDWAN VPNInstance connectivity in AAI",
149     "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='sdwan-vpn' \n        key='sdwan-vpn.sdwan-vpn-id = $network-topology-operation-input.network-information.network-id'>\n",
150     "comments": "",
151     "outputs": 1,
152     "x": 888.6364860534668,
153     "y": 200.01019191741943,
154     "z": "f08fa760.244488",
155     "wires": [
156       []
157     ]
158   }
159 ]