def run_commands(self): tgtadm = iscsi.get_target_admin() tgtadm.set_execute(self.fake_execute) tgtadm.new_target(self.target_name, self.tid) tgtadm.show_target(self.tid) tgtadm.new_logicalunit(self.tid, self.lun, self.path) tgtadm.delete_logicalunit(self.tid, self.lun) tgtadm.delete_target(self.tid)
def __init__(self, *args, **kwargs): self.tgtadm = iscsi.get_target_admin() super(ISCSIDriver, self).__init__(*args, **kwargs)