[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipfire-development
Subject:    [PATCH 2/3] Add an example country to the python create-database example script.
From:       Stefan Schantl <stefan.schantl () ipfire ! org>
Date:       2020-08-20 17:28:55
Message-ID: 20200820172856.6983-2-stefan.schantl () ipfire ! org
[Download RAW message or body]

The generated database is used by the testsuite of the perl binding.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 examples/python/create-database.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/examples/python/create-database.py b/examples/python/create-database.py
index 0eaa945..b57ad94 100644
--- a/examples/python/create-database.py
+++ b/examples/python/create-database.py
@@ -20,6 +20,9 @@ with open(private_key_path, "r") as pkey:
     # Set a license
     w.license = "CC"
 
+    # Add a country
+    c = w.add_country("DE")
+
     # Add an AS
     a = w.add_as(204867)
     a.name = "Lightning Wire Labs GmbH"
-- 
2.20.1

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic