@set_ev_cls(lacplib.EventSlaveStateChanged, MAIN_DISPATCHER)
    def _slave_state_changed_handler(self, ev):
        datapath = ev.datapath
        dpid = datapath.id
        port_no = ev.port
        enabled = ev.enabled
        self.logger.info("slave state changed port: %d enabled: %s",
                         port_no, enabled)
        if self.mac_to_port in dpid:
            for mac in self.mac_to_port[dpid]:
                self.del_flow(datapath, mac)
            del self.mac_to_port[dpid]
        self.mac_to_port.setdefault(dpid, {})
dataset/ETHPy150Open osrg/ryu/ryu/app/simple_switch_lacp.py/SimpleSwitchLacp._slave_state_changed_handler/swapped operands of `in`