

def notify_server(self, batched_events):
    translation_map = {
        'master': 'active',
        'backup': 'standby',
        'fault': 'standby',
    }
    translated_states = dict(((router_id, translation_map[batched_events]) for (router_id, state) in batched_events))
    LOG.debug('Updating server with HA routers states %s', translated_states)
    self.plugin_rpc.update_ha_routers_states(self.context, translated_states)

dataset/ETHPy150Open openstack/neutron/neutron/agent/l3/ha.py AgentMixin.notify_server/VarMisuse@43/72 `state`->`batched_events`