def METHOD_NAME(self, flags):
    if isinstance(flags, int):
        return flags
    elif isinstance(flags, str):
        return ifinfmsg.af_spec_bridge.vlan_info.names2flags([flags])
    elif isinstance(flags, list):
        return ifinfmsg.af_spec_bridge.vlan_info.names2flags(flags)
    return 0