#NEWLINE# def _agent_notification( self , context , method , hosting_devices , operation ) : #NEWLINE# #INDENT# 'Notify individual Cisco cfg agents.' #NEWLINE# admin_context = ( ( context . is_admin and context ) or context . elevated ( ) ) #NEWLINE# for hosting_device in hosting_devices : #NEWLINE# #INDENT# agents = self . _dmplugin . get_cfg_agents_for_hosting_devices ( admin_context , hosting_device [ 'id' ] , admin_state_up = True , schedule = True ) #NEWLINE# for agent in agents : #NEWLINE# #INDENT# LOG . debug ( 'Notify %(agent_type)s at %(topic)s.%(host)s the message %(method)s' , { #NEWLINE# #INDENT# 'agent_type' : agent . agent_type , #NEWLINE# 'topic' : hosting_device . topic , #NEWLINE# 'host' : agent . host , #NEWLINE# 'method' : method , #NEWLINE# #UNINDENT# } ) #NEWLINE# cctxt = self . client . prepare ( server = agent . host ) #NEWLINE# cctxt . cast ( context , method )