+ Fix cisco hsrp mode
This commit is contained in:
parent
fd1cc13e24
commit
65e0a15c02
|
@ -73,7 +73,7 @@ sub check_options {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
$self->SUPER::init(%options);
|
$self->SUPER::init(%options);
|
||||||
|
|
||||||
if (($self->{option_results}->{role} !~ /^primary|secondary$/) {
|
if ($self->{option_results}->{role} !~ /^primary|secondary$/) {
|
||||||
$self->{output}->add_option_msg(short_msg => "You must use either primary either secondary for --role option");
|
$self->{output}->add_option_msg(short_msg => "You must use either primary either secondary for --role option");
|
||||||
$self->{output}->option_exit();
|
$self->{output}->option_exit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue