Re-arranged arguments to _choose_available_subnet
Added IP version filter to ipam