#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( TestGetL3AgentsWithAgentModeFilter , self ) . setUp ( ) #NEWLINE# self . plugin = L3HAPlugin ( ) #NEWLINE# self . setup_coreplugin ( 'neutron.plugins.ml2.plugin.Ml2Plugin' ) #NEWLINE# self . adminContext = n_context . get_admin_context ( ) #NEWLINE# hosts = [ 'host_1' , 'host_2' , 'host_3' , 'host_4' , 'host_5' ] #NEWLINE# agent_modes = [ 'legacy' , 'dvr_snat' , 'dvr' , 'fake_mode' , 'legacy' ] #NEWLINE# for ( host , agent_mode ) in zip ( hosts , agent_modes ) : #NEWLINE# #INDENT# helpers . register_l3_agent ( host , agent_mode )