Skip to content

Commit

Permalink
Implement IpAllocation 'start' parameter in allocate_ip
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaLblnd committed Jul 7, 2023
1 parent d4522a2 commit 8c38f85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ conditions of the subcomponent's license, as noted in the LICENSE file.
<properties>
<provider.name>EfficientIP-SOLIDserver</provider.name>
<provider.description>EfficientIP SOLIDserver IPAM integration for vRA 8</provider.description>
<provider.version>0.7.0</provider.version>
<provider.version>0.8.0</provider.version>

<provider.supportsAddressSpaces>false</provider.supportsAddressSpaces>
<provider.supportsUpdateRecord>false</provider.supportsUpdateRecord>
Expand Down
3 changes: 3 additions & 0 deletions src/main/python/allocate_ip/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8c38f85

Please sign in to comment.