add receiving-member option (#1089)

This commit is contained in:
lkappel 2018-08-16 17:10:50 +02:00 committed by Simon Bomm
parent c77b04491c
commit fc2760a77a
1 changed files with 12 additions and 3 deletions

View File

@ -53,6 +53,7 @@ sub new {
$options{options}->add_options(arguments =>
{
"sending-member:s" => { name => 'sending_member' },
"receiving-member:s" => { name => 'receiving_member' },
"replication-group:s" => { name => 'replication_group' },
"replicated-folder:s" => { name => 'replicated_folder' },
"timeout:s" => { name => 'timeout', default => 30 },
@ -73,6 +74,10 @@ sub check_options {
$self->{output}->option_exit();
}
$self->{option_results}->{command_options} .= '/SendingMember:' . $self->{option_results}->{sending_member} . ' ';
if (defined($self->{option_results}->{receiving_member}) && $self->{option_results}->{receiving_member} ne '') {
$self->{option_results}->{command_options} .= '/ReceivingMember:' . $self->{option_results}->{receiving_member} . ' ';
}
if (!defined($self->{option_results}->{replication_group}) || $self->{option_results}->{replication_group} eq '') {
$self->{output}->add_option_msg(short_msg => "Need to specify replication-group option.");
@ -116,15 +121,19 @@ Check dfsr backlog.
=item B<--sending-member>
Name of the member that is sending the replication data.
Name of the member that is sending the replication data. (Mandatory)
=item B<--receiving-member>
Name of the member that is receiving the replication data. (NOT Mandatory)
=item B<--replication-group>
Name for the replication group.
Name for the replication group. (Mandatory)
=item B<--replicated-folder>
Name name for the replicated folder.
Name name for the replicated folder. (Mandatory)
=item B<--timeout>