17 "id":"794b3924.54ea18",
18 "type":"service-logic",
19 "name":"GENERIC-RESOURCE-API ${project.version}",
20 "module":"GENERIC-RESOURCE-API",
21 "version":"${project.version}",
22 "comments":"Reserve/release IP",
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}'>",
27 "z":"ee2bc85b.58f498",
35 "id":"3876df34.9cbea",
37 "name":"manage-ipaddr-assignment",
38 "xml":"<method rpc='manage-ipaddr-assignment' mode='sync'>\n",
43 "z":"ee2bc85b.58f498",
51 "id":"eac5864f.de8f18",
53 "name":"switch $tmp.manageIpaddr.action",
54 "xml":"<switch test='`$tmp.manageIpaddr.action`'>\n",
59 "z":"ee2bc85b.58f498",
68 "id":"980f17d0.c10a28",
71 "xml":"<outcome value='reserve'>\n",
76 "z":"ee2bc85b.58f498",
84 "id":"ab295c0b.78142",
86 "name":"block : atomic",
87 "xml":"<block atomic='true'>",
93 "z":"ee2bc85b.58f498",
101 "id":"8fd400db.0432d",
102 "type":"get-resource",
103 "name":"get-resource IPADDR from IPV4_ADDRESS_POOL",
104 "xml":"<get-resource plugin='`$tmp.sql.plugin`' resource='IPADDR' key=\"SELECT min(ipv4_addr) ip from IPV4_ADDRESS_POOL where universe = $tmp.manageIpaddr.pool and status='AVAILABLE'\" pfx=\"tmp.manageIpaddr\" >\n",
109 "z":"ee2bc85b.58f498",
117 "id":"255e6973.efa936",
119 "name":"block : atomic",
120 "xml":"<block atomic='true'>",
126 "z":"ee2bc85b.58f498",
135 "id":"d5fece9.ea5c63",
137 "name":"set sql plugin name",
138 "xml":"<set>\n<parameter name='tmp.sql.plugin' value='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' />\n",
142 "z":"ee2bc85b.58f498",
148 "id":"7fb7948a.ed39dc",
151 "xml":"<outcome value='success'>\n",
156 "z":"ee2bc85b.58f498",
164 "id":"7a9dcfdb.a10f9",
166 "name":"Mark ip address reserved",
167 "xml":"<save plugin='`$tmp.sql.plugin`' resource='IPADDR' key=\"UPDATE IPV4_ADDRESS_POOL set status='RESERVED' where universe='VGW' and ipv4_addr = $tmp.manageIpaddr.ip\" force='false'>\n\n",
172 "z":"ee2bc85b.58f498",
180 "id":"2fb21d9f.e9b6e2",
183 "xml":"<outcome value='release'>\n",
188 "z":"ee2bc85b.58f498",
196 "id":"a8f883cf.1ee52",
198 "name":"Mark ipaddress available",
199 "xml":"<save plugin='`$tmp.sql.plugin`' resource='IPADDR' key=\"UPDATE IPV4_ADDRESS_POOL set status='AVAILABLE' where universe='VGW' and ipv4_addr = $tmp.manageIpaddr.ip\" force='false'>\n\n",
204 "z":"ee2bc85b.58f498",