From 8c38f850dd99f90067c4fabbbd0f4562e729f9b5 Mon Sep 17 00:00:00 2001 From: Julia Leblond <14943098+JuliaLblnd@users.noreply.github.com> Date: Fri, 7 Jul 2023 10:57:43 +0200 Subject: [PATCH] Implement IpAllocation 'start' parameter in allocate_ip --- pom.xml | 2 +- src/main/python/allocate_ip/source.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5785f2b..45db458 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ conditions of the subcomponent's license, as noted in the LICENSE file. EfficientIP-SOLIDserver EfficientIP SOLIDserver IPAM integration for vRA 8 - 0.7.0 + 0.8.0 false false diff --git a/src/main/python/allocate_ip/source.py b/src/main/python/allocate_ip/source.py index a7a647d..028c450 100644 --- a/src/main/python/allocate_ip/source.py +++ b/src/main/python/allocate_ip/source.py @@ -96,6 +96,9 @@ def allocate_in_range(range_id, resource, allocation, context, endpoint): else: params["subnet_id"] = subnet_id + if "start" in allocation.keys(): + params["begin_addr"] = allocation["start"] + free_ip_response = session.request("GET", service, params=params) free_ips = free_ip_response.json() if len(free_ips) < 1: