#NEWLINE# def _get_ovs_agent_dict( host , agent_type , binary , tunnel_types , tunneling_ip = '20.0.0.1' , interface_mappings = None , bridge_mappings = None , l2pop_network_types = None ) : #NEWLINE# #INDENT# agent = { #NEWLINE# #INDENT# 'binary' : binary , #NEWLINE# 'host' : host , #NEWLINE# 'topic' : constants . L2_AGENT_TOPIC , #NEWLINE# 'configurations' : { #NEWLINE# #INDENT# 'tunneling_ip' : tunneling_ip , #NEWLINE# 'tunnel_types' : tunnel_types , #NEWLINE# #UNINDENT# } , #NEWLINE# 'agent_type' : agent_type , #NEWLINE# 'tunnel_type' : [ ] , #NEWLINE# 'start_flag' : True , #NEWLINE# #UNINDENT# } #NEWLINE# if ( bridge_mappings is not None ) : #NEWLINE# #INDENT# agent [ 'configurations' ] [ 'bridge_mappings' ] = bridge_mappings #NEWLINE# #UNINDENT# if ( interface_mappings is not None ) : #NEWLINE# #INDENT# agent [ 'configurations' ] [ 'interface_mappings' ] = interface_mappings #NEWLINE# #UNINDENT# if ( l2pop_network_types is not None ) : #NEWLINE# #INDENT# agent [ 'configurations' ] [ 'l2pop_network_types' ] = l2pop_network_types #NEWLINE# #UNINDENT# return agent