def _generate_vdev(base, offset):
    """Generate virtual device number based on base vdev
    :param base: base virtual device number, string of 4 bit hex.
    :param offset: offset to base, integer.
    """
    vdev = hex(int(base, 16) + offset)[2:]
    return vdev.rjust(4, '0')
