Commit c5d01041 authored by Sigmund Augdal's avatar Sigmund Augdal

generate_ptr wasn't part of the object orientation after all

parent 87dcd161
......@@ -85,7 +85,7 @@ def main():
ptr_record = dns.get_ptr_record(ipaddr, addrtype != neighbors.V4)
logging.info("Would have updates record: {}".format(ptr_record))
if ptr_record:
ptr_record['content'] = dns.generate_ptr(ipaddr)
ptr_record['content'] = dns_rr.generate_ptr(ipaddr)
logging.info("New name: {}".format(ptr_record['content']))
else:
logging.debug("found owner for mac {}".format(mac))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment