iscsi: add check_connection
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
4d284721ed
commit
03b5bfdf9c
@ -371,4 +371,11 @@ sub deactivate_storage {
|
||||
}
|
||||
}
|
||||
|
||||
sub check_connection {
|
||||
my ($class, $storeid, $scfg) = @_;
|
||||
|
||||
my $portal = $scfg->{portal};
|
||||
return iscsi_test_portal($portal);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
Reference in New Issue
Block a user