def GetNameServerData(filename='config/servers.csv'):
  server_file = util.FindDataFile(filename)
  ns_data = _ParseNameServerListing(open(server_file))

  # Add the system servers for later reference.
  for i, ip in enumerate(sys_nameservers.GetCurrentNameServers()):
    ns = nameserver.NameServer(ip, name='SYS%s-%s' % (i, ip), system_position=i)
    ns_data.append(ns)

  for i, ip in enumerate(sys_nameservers.GetAssignedNameServers()):
    ns = nameserver.NameServer(ip, name='DHCP%s-%s' % (i, ip), dhcp_position=i)
    ns_data.append(ns)
  return ns_data
dataset/ETHPy150Open catap/namebench/libnamebench/config.py/GetNameServerData/original