[pve-devel] [PATCH cluster] pvecm: add totem nodeid when creating IPv6 cluster

Dietmar Maurer dietmar at proxmox.com
Tue May 3 08:31:10 CEST 2016


but nodeid is not totem property at all. AFAIK this is only valid in nodelist.

> +	# a 32 bit ID (mustn't be 0) is needed for IPv6 - optional for IPv4
> +	my $totem_nodeid = '';
> +	$totem_nodeid .= "\n  nodeid: " . int( rand((1<<32)-1) + 1 )
> +	    if $bind_is_ipv6;
> +
>  	my $config = <<_EOD;
>  totem {
>    version: 2
>    secauth: on
>    cluster_name: $clustername
>    config_version: 1
> -  ip_version: $ipversion
> +  ip_version: $ipversion$totem_nodeid
>    $interfaces
>  }
>  
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 




More information about the pve-devel mailing list