Logo Search packages:      
Sourcecode: namebench version File versions  Download package

def libnamebench::nameserver::NameServer::AddFailure (   self,
  message 
)

Add a failure for this nameserver. This will effectively disable it's use.

Definition at line 158 of file nameserver.py.

00158                                :
    """Add a failure for this nameserver. This will effectively disable it's use."""
    self.failed_test_count += 1

    if self.is_system or self.is_preferred:
      # If the preferred host is IPv6 and we have no previous checks, fail quietly.
      if self.is_ipv6 and len(self.checks) <= 1:
        self.disabled = message
      else:
        print "\n* %s failed test #%s/%s: %s" % (self, self.failed_test_count, self.max_failures, message)

    if self.failed_test_count >= self.max_failures:
      self.disabled = message

  def CreateRequest(self, record, request_type, return_type):


Generated by  Doxygen 1.6.0   Back to index