def _check_ports(dpid):
 _dirty_switches.pop(dpid, None)
 con = core.openflow.getConnection(dpid)
 if (con is None):
  return
 con.send(of.ofp_barrier_request())
 con.send(of.ofp_features_request())
 log.debug('Requested switch features for %s', str(con))

def _check_ports ( dpid ) : _dirty_switches . pop ( dpid , None ) con = core . openflow . getConnection ( dpid ) if ( con is None ) : return con . send ( of . ofp_barrier_request ( ) ) con . send ( of . ofp_features_request ( ) ) log . debug ( 'Requested switch features for %s' , str ( con ) )
sends a features request to the given dpid .