diff --git a/PVE/Storage/ISCSIPlugin.pm b/PVE/Storage/ISCSIPlugin.pm index 3113740..ef88143 100644 --- a/PVE/Storage/ISCSIPlugin.pm +++ b/PVE/Storage/ISCSIPlugin.pm @@ -371,4 +371,11 @@ sub deactivate_storage { } } +sub check_connection { + my ($class, $storeid, $scfg) = @_; + + my $portal = $scfg->{portal}; + return iscsi_test_portal($portal); +} + 1;