def update_table(site_id: site_id, device_id: device_id, tag_ids: nil, last_seen: Time.now)
      device_mapping = @device_site_mapping[device_id] ||= Entry.new(site_id, device_id, [])
      device_mapping.site_id = site_id
      device_mapping.last_seen = last_seen
      device_mapping.tag_ids = tag_ids if tag_ids
    end
def update_table(site_id: site_id, device_id: device_id, tag_ids: nil, last_seen: Time.now)
      device_mapping = @device_site_mapping[device_id] ||= Entry.new(site_id, device_id, [])
      device_mapping.site_id = site_id
      device_mapping.last_seen = last_seen
      device_mapping.tag_ids = tag_ids if tag_ids
    end
RoutingTable stores the device <-> site mapping