Added external_key column to IPAM_IP_ASSIGNMENT 61/63561/1
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Wed, 29 Aug 2018 18:16:05 +0000 (14:16 -0400)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Wed, 29 Aug 2018 18:16:05 +0000 (14:16 -0400)
external_key column is to store a keu uniquely identifying
the resource to a service, both within the ONAP and the
external system. That key will be set prior assignment,
and we be used during unassignment, to avoid having to
correlate to many values. The external_key *must* be unique,
at least per service. Hence lookup using both service-instance-id
and external_key will be used during unassign process.

Change-Id: I67691fc32b46bb6cbacd66402f5fda6456cd7e06
Issue-ID: CCSDK-463
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Former-commit-id: b3cc6305655fee9a85d8ac42488e371b741a2f61

installation/sdnc/src/main/resources/ipam.data.dump

index ededc73..7371077 100644 (file)
@@ -57,6 +57,7 @@ CREATE TABLE `IPAM_IP_ASSIGNEMENT` (
   `service_instance_id` varchar(255) DEFAULT NULL,
   `vf_module_id` varchar(255) DEFAULT NULL,
   `prefix_id` varchar(255) DEFAULT NULL,
+  `external_key` varchar(255) DEFAULT NULL,
   `ip_address_id` varchar(255) DEFAULT NULL,
   `ip_address` varchar(255) DEFAULT NULL,
   `ip_address_type` varchar(255) DEFAULT NULL,