nexenta: add volume_snapshot_delete

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier
2012-09-06 10:28:09 +02:00
committed by Dietmar Maurer
parent 9cd89ee32f
commit 5d8f5e22b9

View File

@ -357,4 +357,11 @@ sub volume_snapshot_rollback {
nexenta_add_lun_mapping_entry($volname, $scfg);
}
sub volume_snapshot_delete {
my ($class, $scfg, $storeid, $volname, $snap, $running) = @_;
my $json = '{"method": "destroy","object" : "snapshot","params": ["'.$scfg->{pool}.'/'.$volname.'@'.$snap.'"]}';
nexenta_request($scfg, $json);
}
1;