[2/3] Add an example country to the python create-database example script.

Message ID 20200820172856.6983-2-stefan.schantl@ipfire.org
State Accepted
Commit 33a92f6ad33d86de0f4448c7b1f2342cb055b09a
Headers
Series [1/3] perl: Add database_countries() function. |

Commit Message

Stefan Schantl Aug. 20, 2020, 5:28 p.m. UTC
  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(+)
  

Patch

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"