#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( TestLinuxBridgeRpcCallbacks , self ) . setUp ( ) #NEWLINE# class FakeLBAgent ( object ) : #NEWLINE# #INDENT# def __init__( self ) : #NEWLINE# #INDENT# self . agent_id = 1 #NEWLINE# self . mgr = get_linuxbridge_manager ( BRIDGE_MAPPINGS , INTERFACE_MAPPINGS ) #NEWLINE# self . mgr . vxlan_mode = lconst . VXLAN_UCAST #NEWLINE# self . network_ports = collections . defaultdict ( list ) #NEWLINE# #UNINDENT# #UNINDENT# self . lb_rpc = linuxbridge_neutron_agent . LinuxBridgeRpcCallbacks ( object ( ) , FakeLBAgent ( ) , object ( ) ) #NEWLINE# segment = mock . Mock ( ) #NEWLINE# segment . network_type = 'vxlan' #NEWLINE# segment . segmentation_id = 1 #NEWLINE# self . lb_rpc . network_map [ 'net_id' ] = segment