[2/3] Add example network flag to the python create-database example script.

Message ID 20200830103602.6816-2-stefan.schantl@ipfire.org
State Accepted
Commit dc5a041787583b89dedd929ee39d5c337b85f820
Headers
Series [1/3] perl: Add lookup_network_has_flag() function. |

Commit Message

Stefan Schantl Aug. 30, 2020, 10:36 a.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 examples/python/create-database.py | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/examples/python/create-database.py b/examples/python/create-database.py
index b57ad94..bf8838b 100644
--- a/examples/python/create-database.py
+++ b/examples/python/create-database.py
@@ -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)