SDWAN VPN DG addition
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-network-topology-operation-delete.json
1 [
2   {
3     "id": "16434d54.ed2623",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 119.00390625,
8     "y": 54.00390625,
9     "z": "e1197598.e19d88",
10     "wires": [
11       [
12         "2405c02a.b511b"
13       ]
14     ]
15   },
16   {
17     "id": "2405c02a.b511b",
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": 331.00391006469727,
26     "y": 126.0039234161377,
27     "z": "e1197598.e19d88",
28     "wires": [
29       [
30         "57a7aa96.552214"
31       ]
32     ]
33   },
34   {
35     "id": "57a7aa96.552214",
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": 319.0040283203125,
42     "y": 214.00390625,
43     "z": "e1197598.e19d88",
44     "wires": [
45       [
46         "143b26be.1b4569"
47       ]
48     ]
49   },
50   {
51     "id": "143b26be.1b4569",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 489.44836044311523,
59     "y": 276.44836235046387,
60     "z": "e1197598.e19d88",
61     "wires": [
62       [
63         "562848d7.41e4c8",
64         "59bbd8d6.78d208",
65         "6c3e0fcd.7bef",
66         "358f6dc3.63de32",
67         "d740b485.fa2068",
68         "5120c39b.5dfdac",
69         "28dcbe3c.830122"
70       ]
71     ]
72   },
73   {
74     "id": "562848d7.41e4c8",
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": 970.3928146362305,
81     "y": 71.00391006469727,
82     "z": "e1197598.e19d88",
83     "wires": [
84       []
85     ]
86   },
87   {
88     "id": "59bbd8d6.78d208",
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": 764.7816314697266,
95     "y": 137.33727836608887,
96     "z": "e1197598.e19d88",
97     "wires": [
98       []
99     ]
100   },
101   {
102     "id": "6c3e0fcd.7bef",
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": 849.448314666748,
108     "y": 385.4281978607178,
109     "z": "e1197598.e19d88",
110     "wires": []
111   },
112   {
113     "id": "358f6dc3.63de32",
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": 778.5595626831055,
119     "y": 448.9835858345032,
120     "z": "e1197598.e19d88",
121     "wires": []
122   },
123   {
124     "id": "5120c39b.5dfdac",
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": 808.0809860229492,
130     "y": 262.89910793304443,
131     "z": "e1197598.e19d88",
132     "wires": []
133   },
134   {
135     "id": "d740b485.fa2068",
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": 848.7051429748535,
141     "y": 310.8670496940613,
142     "z": "e1197598.e19d88",
143     "wires": []
144   },
145   {
146     "id": "28dcbe3c.830122",
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.id = $network-topology-operation-input.network-information.network-id'>\n",
150     "comments": "",
151     "outputs": 1,
152     "x": 886.6364860534668,
153     "y": 204.01019191741943,
154     "z": "e1197598.e19d88",
155     "wires": [
156       []
157     ]
158   }
159 ]