Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
next_available_ip_from_cidr equivalent for next_available_netblock
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2020 09:10 AM
2606     0
I'm trying to assign smaller subnets from within a specific cidr, is there a "
next_available_ip_from_cidr" equivalent that allows me to request more than a single IP ? Something like:
network=next_available_netblock_from_cidr(my_view, '10.0.0.0/8','/27')
Where I am asking to be assigned a new /27 block from the 10.0.0.0/8 cidr...
Solved! Go to Solution.
Labels:
Re: next_available_ip_from_cidr equivalent for next_available_netblock
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2020 06:32 AM
2606     0
H,
You can use the next_available_network function like below:
curl -k -u admin:infoblox -H 'content-type: application/json' -X POST "https://grid-master/wapi/v2.11/network?_return_fields%2B=network&_return_as_object=1 " -d '{"network":{"_object_function":"next_available_network","_result_field":"networks","_object":"network","_object_parameters":{"network" : "10.10.10.0/24"},"_parameters":{"cidr":27}},"network_view":"default"}'
Hope this helps,
Krishna Vasudevan