+ Fix infiniband mode usage

This commit is contained in:
garnier-quentin 2017-03-16 16:30:23 +01:00
parent a6e352e18b
commit 8667cbf6b3
1 changed files with 2 additions and 2 deletions

View File

@ -266,13 +266,13 @@ sub prefix_ibgw_output {
sub skip_empty_ib {
my ($self, %options) = @_;
scalar(keys %{$self->{ib}}) > 1 ? return(0) : return(1);
scalar(keys %{$self->{ib}}) > 0 ? return(0) : return(1);
}
sub skip_empty_ibgw {
my ($self, %options) = @_;
scalar(keys %{$self->{ibgw}}) > 1 ? return(0) : return(1);
scalar(keys %{$self->{ibgw}}) > 0 ? return(0) : return(1);
}
my %map_link_state = (1 => 'down', 2 => 'init', 3 => 'armed', 4 => 'active', 5 => 'other');