'Analyze a \'xxx-xxx\' string and return a list of two integers.'

def _range2list(self, param):

    values = [_str2int(value) for value in self.conf.safe_get(param).split('-')]
    if ((len(values) != 2) or (values[0] is None) or (values[1] is None) or (values[0] > values[1])):
        msg = utils.output_log(MSG.INVALID_PARAMETER, param=param)
        raise exception.VSPError(msg)
    return values
