'Handles flow mods'

def _rx_flow_mod(self, ofp, connection):

    self.log.debug('Flow    mod    details:    %s', ofp.show())
    handler = self.flow_mod_handlers.get(ofp.command)
    if (handler is None):
        self.log.warn(('Command    not    implemented:    %s' % command))
        self.send_error(type=OFPET_FLOW_MOD_FAILED, code=OFPFMFC_BAD_COMMAND, ofp=ofp, connection=connection)
        return
    handler(flow_mod=ofp, connection=connection, table=self.table)
    if (ofp.buffer_id is not None):
        self._process_actions_for_packet_from_buffer(ofp.actions, ofp.buffer_id, ofp)
