#NEWLINE# @ db_api . retry_db_errors #NEWLINE# def update_ha_routers_states( self , context , **kwargs ) : #NEWLINE# #INDENT# "Update states for HA routers.\n\n        Get a map of router_id to its HA state on a host and update the DB.\n        State must be in: ('active', 'standby').\n        " #NEWLINE# states = kwargs . get ( 'states' ) #NEWLINE# host = kwargs . get ( 'host' ) #NEWLINE# LOG . debug ( 'Updating HA routers states on host %s: %s' , host , states ) #NEWLINE# self . l3plugin . update_routers_states ( context , states , host )