diff options
author | 2017-11-01 19:08:16 -0400 | |
---|---|---|
committer | 2017-11-01 19:08:16 -0400 | |
commit | ecfdc27ead0ef5d9c057678c3e38259e8a3d4d1d (patch) | |
tree | 60a8c43569a400aa1931657e08b9705baebd60ac /platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_manage-vni-assignment.xml | |
parent | 9a1267e79c232b949f666cc130ebb9837f594090 (diff) |
Fix tunnelxconn assign issues
Fix typos in tunnelxconn DGs and add new element to restapi
template
Change-Id: I6ab438dfe451ec7c5e9587b035e4fd5d55598471
Issue-ID: SDNC-160
Signed-off-by: Dan Timoney <dtimoney@att.com>
Former-commit-id: fe42f1f9d96787f60f744a72a5f8e3651c0582d4
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_manage-vni-assignment.xml')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_manage-vni-assignment.xml | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_manage-vni-assignment.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_manage-vni-assignment.xml index a1a90d7e..169d20b2 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_manage-vni-assignment.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_manage-vni-assignment.xml @@ -1,16 +1,13 @@ <!--Reserve/release VNI--><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}'><method rpc='manage-vni-assignment' mode='sync'>
<block atomic='true'><set>
<parameter name='tmp.sql.plugin' value='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' />
-</set><switch test='$tmp.manage-vni.action'>
+</set><switch test='`$tmp.manageVni.action`'>
<outcome value='reserve'>
-<block atomic='true'><get-resource plugin='`$tmp.sql.plugin`' resource='VNI' key="SELECT min(vlan_id) from VLAN_ID_POOL where purpose='VNI' and status='AVAILABLE'" pfx="tmp.manage-vni.results" >
+<block atomic='true'><get-resource plugin='`$tmp.sql.plugin`' resource='VNI' key="SELECT min(vlan_id) vni from VLAN_ID_POOL where purpose = $tmp.manageVni.pool and status='AVAILABLE'" pfx="tmp.manageVni" >
<outcome value='success'>
-<block>
-<set>
-<parameter name='tmp.manage-vni.vni' value='`$tmp.manage-vni.results.vlan-id`' />
-</set><save plugin='`$tmp.sql.plugin`' resource='VNI' key="UPDATE VLAN_ID_POOL set status='RESERVED' where purpose='VNI' and vlan_id=$tmp.manage-vni.vni" force='false'>
+<save plugin='`$tmp.sql.plugin`' resource='VNI' key="UPDATE VLAN_ID_POOL set status='RESERVED' where purpose='VNI' and vlan_id = $tmp.manageVni.vni" force='false'>
-</save></block></outcome></get-resource></block></outcome><outcome value='release'>
+</save></outcome></get-resource></block></outcome><outcome value='release'>
<save plugin='`$tmp.sql.plugin`' resource='VNI' key="UPDATE VLAN_ID_POOL set status='AVAILABLE' where purpose='VNI' and vlan_id=$tmp.manage-vni.vni" force='false'>
</save></outcome></switch></block></method></service-logic>
\ No newline at end of file |