code: def _ubridge_apply_filters(self, bridge_name, filters):
          
          yield from self._ubridge_send('bridge reset_packet_filters ' + bridge_name)
          for packet_filter in self._build_filter_list(filters):
              cmd = 'bridge add_packet_filter {} {}'.format(bridge_name, packet_filter)
              try:
                  yield from self._ubridge_send(cmd)
              except UbridgeError as e:
                  match = re.search("Cannot compile filter '(.*)': syntax error", str(e))
                  if match:
                      message = "Warning: ignoring BPF packet filter '{}' due to syntax error".format(self.name, match.group(1))
                      log.warning(message)
                      self.project.emit("log.warning", {"message": message})
                  else:
                      raise
docs: Apply packet filters
  
          :param bridge_name: bridge name in uBridge
          :param filters: Array of filter dictionary