'Receive dict of router ID to state and update them all.'

@db_api.retry_if_session_inactive()
def update_routers_states(self, context, states, host):

    bindings = self.get_ha_router_port_bindings(context, router_ids=states.keys(), host=host)
    self._set_router_states(context, bindings, states)
    self._update_router_port_bindings(context, states, host)
