#NEWLINE# def __init__( self , vlan_id , dp , port_data , logger ) : #NEWLINE# #INDENT# super ( VlanRouter , self ) . __init__ ( ) #NEWLINE# self . vlan_id = vlan_id #NEWLINE# self . dp = dp #NEWLINE# self . sw_id = { #NEWLINE# #INDENT# 'sw_id' : dpid_lib . dpid_to_str ( dp . id ) , #NEWLINE# #UNINDENT# } #NEWLINE# self . logger = logger #NEWLINE# self . port_data = port_data #NEWLINE# self . address_data = AddressData ( ) #NEWLINE# self . routing_tbl = RoutingTable ( ) #NEWLINE# self . packet_buffer = SuspendPacketList ( self . send_icmp_unreach_error ) #NEWLINE# self . ofctl = OfCtl . factory ( dp , logger ) #NEWLINE# self . _set_defaultroute_drop ( )