]> git.ipfire.org Git - location/libloc.git/commitdiff
export: Give the origin zone the correct name
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 16 Dec 2025 17:31:05 +0000 (17:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 16 Dec 2025 17:31:05 +0000 (17:31 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/location/export.py

index faf39e24b293d1017385e1b5f36321b81ba2e264..fd3bad6f03af64c8005000a69ff7896fed437137 100644 (file)
@@ -367,9 +367,9 @@ class ZoneExporter(object):
        def _format_dnsbl(self, network):
                return "127.0.0.2"
 
-       # ASN
+       # Origin
 
-       def _format_asn(self, network):
+       def _format_origin(self, network):
                # Skip the network if it does not belong to an AS
                if network.asn is None:
                        return
@@ -382,6 +382,6 @@ class ZoneExporter(object):
                return "\"%s\"" % asn
 
        formats = {
-               "asn"    : ("TXT", _format_asn),
+               "origin" : ("TXT", _format_asn),
                "bogons" : ("A", _format_dnsbl),
        }