'Schedule a resync for a given network and reason. If no network is
specified, resync all networks.'

def schedule_resync(self, reason, network_id=None):

    self.needs_resync_reasons[network_id].append(reason)
