We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From the examples, you can request next available IP like this:
next = objects.IPAllocation.next_available_ip_from_cidr('default', '10.0.0.0/24')
Sometimes there is a need to exclude IPs from the request, in the REST API this is possible with including in the body:
{"exclude": ["10.0.0.1","10.0.0.2","10.0.0.3"]}
This should also be a possibility with the IPAllocation.next_available_ip function, for example like this:
next = objects.IPAllocation.next_available_ip_from_cidr('default', '10.0.0.0/24', exclude={'10.0.0.1','10.0.0.2','10.0.0.3'})
The text was updated successfully, but these errors were encountered:
No branches or pull requests
From the examples, you can request next available IP like this:
next = objects.IPAllocation.next_available_ip_from_cidr('default', '10.0.0.0/24')
Sometimes there is a need to exclude IPs from the request, in the REST API this is possible with including in the body:
{"exclude": ["10.0.0.1","10.0.0.2","10.0.0.3"]}
This should also be a possibility with the IPAllocation.next_available_ip function, for example like this:
next = objects.IPAllocation.next_available_ip_from_cidr('default', '10.0.0.0/24', exclude={'10.0.0.1','10.0.0.2','10.0.0.3'})
The text was updated successfully, but these errors were encountered: