'Process an OFPFC_MODIFY flow mod sent to the switch.'

def _flow_mod_modify(self, flow_mod, connection, table, strict=False):

    match = flow_mod.match
    priority = flow_mod.priority
    modified = False
    for entry in table.entries:
        if entry.is_matched_by(match, priority=priority, strict=strict):
            entry.actions = flow_mod.actions
            modified = True
    if (not modified):
        self._flow_mod_add(flow_mod, connection, table)
