From 9c03f8c7dbc74b0306fc4a8be0ce22be1d2521ca Mon Sep 17 00:00:00 2001 From: "Benjamin, Max (mb388a)" Date: Fri, 25 Jan 2019 13:19:17 -0500 Subject: support alloc pool from dhcpStart/end Fix to include alloc pool from dhcpStart End on reqs Change-Id: I6df666d80d48e1a87198b64ef7397b9c4739090a Issue-ID: SO-1427 Signed-off-by: Benjamin, Max (mb388a) --- .../client/adapter/network/mapper/NetworkAdapterObjectMapper.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bpmn/so-bpmn-tasks/src/main/java/org') diff --git a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/adapter/network/mapper/NetworkAdapterObjectMapper.java b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/adapter/network/mapper/NetworkAdapterObjectMapper.java index 4c84ee4003..f917aed39e 100644 --- a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/adapter/network/mapper/NetworkAdapterObjectMapper.java +++ b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/adapter/network/mapper/NetworkAdapterObjectMapper.java @@ -283,6 +283,14 @@ public class NetworkAdapterObjectMapper { //add host route to the list openstackHostRouteList.add(openstackHostRoute); } + if (subnet.getDhcpStart() != null && !subnet.getDhcpStart().equals("")) { + org.onap.so.openstack.beans.Pool openstackAllocationPool = new org.onap.so.openstack.beans.Pool(); + openstackAllocationPool.setStart(subnet.getDhcpStart()); + openstackAllocationPool.setEnd(subnet.getDhcpEnd()); + List allocationPools = new ArrayList<>(); + allocationPools.add(openstackAllocationPool); + openstackSubnet.setAllocationPools(allocationPools); + } openstackSubnet.setHostRoutes(openstackHostRouteList); //add subnet to the list subnetList.add(openstackSubnet); -- cgit 1.2.3-korg