On 11/26/19 1:54 PM, Thomas Lamprecht wrote:
> 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.lampre...@proxmox.com>
> ---
>  data/PVE/CLI/pvecm.pm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/data/PVE/CLI/pvecm.pm b/data/PVE/CLI/pvecm.pm
> index ad39e3f..c634c9b 100755
> --- a/data/PVE/CLI/pvecm.pm
> +++ b/data/PVE/CLI/pvecm.pm
> @@ -623,8 +623,8 @@ __PACKAGE__->register_method ({
>               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;
>  
>               return @$ips[0];
>           }
> 

applied.

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to