#NEWLINE# @ set_ev_handler ( ofp_event . EventOFPPacketIn , MAIN_DISPATCHER ) #NEWLINE# def OF_packet_in_handler( self , event ) : #NEWLINE# #INDENT# msg = event . msg #NEWLINE# table_id = msg . table_id #NEWLINE# if ( table_id in self . table_handlers ) : #NEWLINE# #INDENT# handler = self . table_handlers [ table_id ] #NEWLINE# handler ( event ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# LOG . info ( _LI ( 'No handler for table id %s' ) , format ( table_id ) )