def create_lun(lun_name, size_gb, description=None, io_limit_policy=None): if lun_name == 'in_use': raise ex.UnityLunNameInUseError() ret = MockResource(lun_name, 'lun_2') if io_limit_policy is not None: ret.max_iops = io_limit_policy.max_iops ret.max_kbps = io_limit_policy.max_kbps return ret
def create_lun(lun_name, size_gb, description=None, io_limit_policy=None, is_thin=None, is_compression=None, tiering_policy=None): if lun_name == 'in_use': raise ex.UnityLunNameInUseError() ret = MockResource(lun_name, 'lun_2') if io_limit_policy is not None: ret.max_iops = io_limit_policy.max_iops ret.max_kbps = io_limit_policy.max_kbps if is_thin is not None: ret.is_thin = is_thin if tiering_policy is not None: ret.tiering_policy = tiering_policy return ret