def find_dpid(self, key, value):
        for dpid, conf in self.confs.items():
            if key in conf:
                if conf[key] == value:
                    return dpid

        return None
dataset/ETHPy150Open osrg/ryu/ryu/controller/conf_switch.py/ConfSwitchSet.find_dpid/original