'Notify changed routers to hosting l3 agents.'

def _agent_notification(self, context, method, router_ids, operation, shuffle_agents):

    adminContext = (context if context.is_admin else context.elevated())
    plugin = directory.get_plugin(plugin_constants.L3)
    for router_id in router_ids:
        hosts = plugin.get_hosts_to_notify(adminContext, router_id)
        if shuffle_agents:
            random.shuffle(hosts)
        for host in hosts:
            LOG.debug('Notify    agent    at    %(topic)s.%(host)s    the    message    %(method)s', {'topic': topics.L3_AGENT, 'host': host, 'method': method})
            cctxt = self.client.prepare(topic=topics.L3_AGENT, server=host, version='1.1')
            cctxt.cast(context, method, routers=[router_id])
