Else the joining node will not be able to work correctly.
Also improve the respective error messages.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
$param->{ring0_addr} = $name if !$param->{ring0_addr};
- die " ring1_addr needs a configured ring 1 interface!\n"
+ die "corosync: using 'ring1_addr' parameter needs a configured ring 1 interface!\n"
if $param->{ring1_addr} && !defined($totem_cfg->{interface}->{1});
+ die "corosync: ring 1 interface configured but 'ring1_addr' parameter not defined!\n"
+ if defined($totem_cfg->{interface}->{1}) && !defined($param->{ring1_addr});
+
if (defined(my $res = $nodelist->{$name})) {
$param->{nodeid} = $res->{nodeid} if !$param->{nodeid};
$param->{votes} = $res->{quorum_votes} if !defined($param->{votes});