07-22-2018 11:25 AM
I wanted to know if it was a way to use the API to either exclude IP addresses using a range instead of listing them one by one or is it a way to use next available ip and use a range. Currently I have something like the following:
I have many different networks so I would rather use a range instead of listing all the IPs out.
07-23-2018 06:07 AM
next_available_ip's exclude option only takes individual IP addresses. You could create a reserved range (a dhcp range not assigned to any appliances) in the network, and that range would not be available to the next_available_ip function.
07-27-2018 07:55 AM
You could build an array to pass to the exclude parameter. If you know you want to exclude the first 10 IPs, then something like a for loop counting from 0 to 10 and appending each new counted number to the last octet and then append the full IP to the array.