def message_gen(self):
        self.sleep(self.tick_interval)
        if self.params.get("dhcp_error"):
            return self.error_message_gen()
        elif 'rogue_dhcp_mac' in self.params:
            return (self._get_message(self.params['rogue_dhcp_mac']),)
        else:
            return (self._get_message(settings.ADMIN_NETWORK['mac']),)
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/task/fake.py/FakeCheckingDhcpThread.message_gen/original