def match_vid_to_str(value, mask, ofpvid_present):
    if mask is not None:
        return '0x%04x/0x%04x' % (value, mask)

    if value & ofpvid_present:
        return str(value & ~ofpvid_present)

    return '0x%04x' % value
dataset/ETHPy150Open osrg/ryu/ryu/lib/ofctl_utils.py/match_vid_to_str/original