[pve-devel] applied: [PATCH cluster] mtunnel: allow multiple IPs if the are the same

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Nov 26 13:56:18 CET 2019


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.lamprecht at 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.




More information about the pve-devel mailing list