To allow routed full-mesh, where the same IP is used on multiple
adapters. For the migration IP this is OK, as we just want a single
unique IP, if that one is configured more than once does not bothers
us here.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
die "could not get migration ip: no IP address configured on local " .
"node for network '$cidr'\n" if scalar(@$ips) == 0;
die "could not get migration ip: no IP address configured on local " .
"node for network '$cidr'\n" if scalar(@$ips) == 0;
- die "could not get migration ip: multiple IP address configured for " .
- "network '$cidr'\n" if scalar(@$ips) > 1;
+ die "could not get migration ip: multiple, different, IP address configured for " .
+ "network '$cidr'\n" if scalar(@$ips) > 1 && grep { @$ips[0] ne $_ } @$ips;