ha: Fix assignment of IP addresses if multiple pools are defined