summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dt5972@att.com>2018-09-17 18:11:08 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-17 18:11:08 +0000
commit94342f582698344223ff2bf2435c3ed1954c2e56 (patch)
treee2036eee6145b5ba0b190cc00b81ef5b73674766
parentb46892cf1f0374dc18bec49b6a209b0e6a13ba1a (diff)
parent1c385f143290e15d16cc197c9b99c73a1991072e (diff)
Merge "Add cloud param name as ip_address_type"
-rw-r--r--netbox-client/provider/src/main/java/org/onap/ccsdk/sli/adaptors/netbox/impl/NetboxClientImpl.java7
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);