#NEWLINE# @ set_ev_handler ( ofp_event . EventOFPSwitchFeatures , CONFIG_DISPATCHER ) #NEWLINE# def switch_features_handler( self , ev ) : #NEWLINE# #INDENT# self . _datapath = ev . msg . datapath #NEWLINE# super ( RyuDFAdapter , self ) . switch_features_handler ( ev ) #NEWLINE# version = self . datapath . ofproto . OFP_VERSION #NEWLINE# if ( self < RyuDFAdapter . OF_AUTO_PORT_DESC_STATS_REQ_VER ) : #NEWLINE# #INDENT# self . _send_port_desc_stats_request ( self . datapath ) #NEWLINE# #UNINDENT# self . dispatcher . dispatch ( 'switch_features_handler' , ev )