<s> from cloudferry . lib . utils import cmd_cfg <EOL> from cloudferry . lib . utils import ssh_util <EOL> class RbdUtil ( ssh_util . SshUtil ) : <EOL> rbd_rm_cmd = cmd_cfg . rbd_cmd ( "<STR_LIT>" ) <EOL> rbd_import_cmd = cmd_cfg . rbd_cmd ( "<STR_LIT>" ) <EOL> rbd_import_diff_cmd = cmd_cfg . rbd_cmd ( "<STR_LIT>" ) <EOL> rbd_export_cmd = cmd_cfg . rbd_cmd ( "<STR_LIT>" ) <EOL> rbd_export_diff_cmd = cmd_cfg . rbd_cmd ( "<STR_LIT>" ) <EOL> rbd_export_diff_snap_cmd = cmd_cfg . rbd_cmd ( "<STR_LIT>" ) <EOL> rbd_export_diff_from_snap_cmd = cmd_cfg . rbd_cmd ( "<STR_LIT>" ) <EOL> rbd_export_diff_from_cmd = cmd_cfg . rbd_cmd ( "<STR_LIT>" ) <EOL> rbd_info_cmd = cmd_cfg . rbd_cmd ( "<STR_LIT>" ) <EOL> rbd_snap_rm = cmd_cfg . rbd_cmd ( "<STR_LIT>" ) <EOL> def rm ( self , pool , filename , int_host = None ) : <EOL> cmd = self . rbd_rm_cmd ( pool , filename ) <EOL> return self . execute ( cmd , int_host ) <EOL> def snap_rm ( self , volume_path , snapshot_name , int_host = None ) : <EOL> cmd = self . rbd_snap_rm ( volume_path , snapshot_name ) <EOL> return self . execute ( cmd , int_host ) <EOL> def rbd_import ( self , image_format , output , filename , int_host = None ) : <EOL> cmd = self . rbd_import_cmd ( image_format , output , filename ) <EOL> return self . execute ( cmd , int_host ) <EOL> def rbd_import_diff ( self , output , ceph_path , int_host = None ) : <EOL> cmd = self . rbd_import_cmd ( output , ceph_path ) <EOL> return self . execute ( cmd , int_host ) <EOL> def rbd_export ( self , filename , output , int_host = None ) : <EOL> cmd = self . rbd_export_cmd ( filename , output ) <EOL> return self . execute ( cmd , int_host ) <EOL> def rbd_export_diff ( self , ceph_path , output , int_host = None ) : <EOL> cmd = self . rbd_export_cmd ( ceph_path , output ) <EOL> return self . execute ( cmd , int_host ) <EOL> def rbd_get_info ( self , pool , filename , format_output = '<STR_LIT>' , <EOL> int_host = None ) : <EOL> cmd = self . rbd_info_cmd ( pool , filename , format_output ) <EOL> return self . execute ( cmd , int_host ) </s>
