#NEWLINE# @ memoized . memoized_method #NEWLINE# def _get_agents( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return api . neutron . agent_list ( self . request , agent_type = 'DHCP agent' ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# redirect = reverse ( self . failure_url , args = ( self . kwargs [ 'network_id' ] , ) ) #NEWLINE# msg = _ ( 'Unable to retrieve agent list.' ) #NEWLINE# exceptions . handle ( self . request , msg , redirect = redirect )