Having two calls, one for suggesting the next IP and one for updating the IP record introduces a possible race condition. We hit this today. Two admins run a script to allocate an IP in the same subnet at the same time. Both are given the same IP, one stomps on the other because /ips/ will happily update the record with the new device.
It would be helpful to have an API call that did both in a single transaction.
Please sign in to leave a comment.