'Creates a ioclass by bandwidth in MiB.'

def create_ioclass_bws(self, name, max_bws):

    max_bws = int(max_bws)
    ctrl_method = storops.VNXCtrlMethod(method=storops.VNXCtrlMethod.LIMIT_CTRL, metric='bw', value=max_bws)
    ioclass = self.vnx.create_ioclass(name=name, iotype='rw', ctrlmethod=ctrl_method)
    return ioclass
