diff options
author | Alexis de Talhouët <adetalhouet89@gmail.com> | 2018-09-17 08:54:23 -0400 |
---|---|---|
committer | Alexis de Talhouët <adetalhouet89@gmail.com> | 2018-09-17 08:54:23 -0400 |
commit | 1c385f143290e15d16cc197c9b99c73a1991072e (patch) | |
tree | 10f5fd39e60cbdcfdc987c01d4e19f79b2cff00d /netbox-client/provider | |
parent | 85dcab85f636c8ed7a2f9215ec0c47273b36c60a (diff) |
Add cloud param name as ip_address_type
Change-Id: I4ccaa9233a71c3bd2cbef27c7e1ab5152041876d
Issue-ID: CCSDK-579
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Diffstat (limited to 'netbox-client/provider')
-rw-r--r-- | netbox-client/provider/src/main/java/org/onap/ccsdk/sli/adaptors/netbox/impl/NetboxClientImpl.java | 7 |
1 files 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 b54a35b5..4e4761d1 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); |