def check_cobbler_tftp(self):

        try:
            remote = xmlrpclib.Server(
                self.os_installer['cobbler_url'],
                allow_none=True)
            credentials = self.os_installer['credentials']
            remote.login(
                credentials['username'], credentials['password'])
        except Exception:
            self._set_status(
                0,
                "[%s]Error: Cannot login to Cobbler with the tokens "
                " provided in the config file" % self.NAME)
            return (self.code, self.messages)

        cobbler_settings = remote.get_settings()
        if cobbler_settings['manage_tftp'] == 0:
            self.messages.append(
                '[TFTP]Info: tftp service is not managed by Compass')
            return (0, self.messages)
        self.check_tftp_dir()
        print "[Done]"
        self.check_tftp_service()
        print "[Done]"
        if self.code == 1:
            self.messages.append(
                "[%s]Info: tftp service health check has completed. "
                "No problems found, all systems go." % self.NAME)

        return (self.code, self.messages)
Checks if Cobbler manages TFTP service.
dataset/ETHPy150Open openstack/compass-core/compass/actions/health_check/check_tftp.py/TftpCheck.check_cobbler_tftp