]> git.ipfire.org Git - location/libloc.git/commitdiff
Add example network flag to the python create-database example script.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 30 Aug 2020 10:36:01 +0000 (12:36 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 31 Aug 2020 10:03:34 +0000 (10:03 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
examples/python/create-database.py

index b57ad9413a35054f587ce27f6cd6f45523ec50de..bf8838bdce235b1fe86fd4001de85a4c9b981193 100644 (file)
@@ -33,6 +33,7 @@ with open(private_key_path, "r") as pkey:
     n = w.add_network("2a07:1c44:5800::/40")
     n.country_code = "DE"
     n.asn = a.number
+    n.set_flag(location.NETWORK_FLAG_ANYCAST)
 
     print(n)