Commit 4ce913e4 authored by Sigmund Augdal's avatar Sigmund Augdal

Fix missing bits from the dns_rr refactor

parent a0b00254
......@@ -69,7 +69,7 @@ def main():
if not args.noop:
if addrtype == neighbors.V6_LL:
continue
dns_rr.reset_ptr(pdns_url, ipaddr, addrtype != neighbors.V4)
dns.reset_ptr(ipaddr, addrtype != neighbors.V4)
else:
logging.info("Would have removed address {} from mac {}".format(ipaddr, mac))
if addrtype == neighbors.V6_LL:
......@@ -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_rr.generate_ptr(ipaddr)
ptr_record['content'] = dns.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