Ugh.  Too much SQL on the brain.  I should use network.allocated_ips.  This change will be in my next pull request.