From 1c385f143290e15d16cc197c9b99c73a1991072e Mon Sep 17 00:00:00 2001 From: Alexis de Talhouët Date: Mon, 17 Sep 2018 08:54:23 -0400 Subject: Add cloud param name as ip_address_type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4ccaa9233a71c3bd2cbef27c7e1ab5152041876d Issue-ID: CCSDK-579 Signed-off-by: Alexis de Talhouët --- .../org/onap/ccsdk/sli/adaptors/netbox/impl/NetboxClientImpl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/netbox-client/provider/src/main/java/org/onap/ccsdk/sli/adaptors/netbox/impl/NetboxClientImpl.java b/netbox-client/provider/src/main/java/org/onap/ccsdk/sli/adaptors/netbox/impl/NetboxClientImpl.java index b54a35b50..4e4761d10 100644 --- a/netbox-client/provider/src/main/java/org/onap/ccsdk/sli/adaptors/netbox/impl/NetboxClientImpl.java +++ b/netbox-client/provider/src/main/java/org/onap/ccsdk/sli/adaptors/netbox/impl/NetboxClientImpl.java @@ -63,8 +63,8 @@ public class NetboxClientImpl implements NetboxClient { // SQL statement private static final String ASSIGN_IP_SQL_STATEMENT = - "INSERT INTO IPAM_IP_ASSIGNEMENT (service_instance_id, vf_module_id, prefix_id, ip_address_id, ip_address, ip_status, ip_response_json, external_key) \n" - + "VALUES (?, ?, ?, ?, ?, ?, ?, ?)"; + "INSERT INTO IPAM_IP_ASSIGNEMENT (service_instance_id, vf_module_id, prefix_id, ip_address_id, ip_address, ip_status, ip_response_json, external_key, ip_address_type) \n" + + "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)"; private static final String UNASSIGN_IP_SQL_STATEMENT = "UPDATE IPAM_IP_ASSIGNEMENT SET ip_status = ? WHERE service_instance_id = ? AND external_key = ?"; private static final String GET_IP_ADDRESS_ID_SQL_STATEMENT = @@ -137,7 +137,8 @@ public class NetboxClientImpl implements NetboxClient { ipAddress.getAddress(), IPStatus.ASSIGNED.name(), ipamRespJson, - externalKey); + externalKey, + resourceName); try { dbLibService.writeData(ASSIGN_IP_SQL_STATEMENT, args, null); -- cgit 1.2.3-korg