+ # get dedicated migration address from remote node, if set.
+ # as a side effect this checks also if the other node can be accessed
+ # through ssh and that it has quorum
+ my $remote_migration_ip = $self->get_remote_migration_ip();
+
+ if (defined($remote_migration_ip)) {
+ $nodeip = $remote_migration_ip;
+ $self->{nodeip} = $remote_migration_ip;
+ $self->{rem_ssh} = [ @ssh_cmd, "root\@$nodeip" ];
+
+ $self->log('info', "use dedicated network address for sending " .
+ "migration traffic ($self->{nodeip})");
+
+ # test if we can connect to new IP
+ my $cmd = [ @{$self->{rem_ssh}}, '/bin/true' ];
+ eval { $self->cmd_quiet($cmd); };
+ die "Can't connect to destination address ($self->{nodeip}) using " .
+ "public key authentication\n" if $@;
+ }
+