From patchwork Thu Aug 20 17:28:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 3382 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4BXWpx25k8z3x1t for ; Thu, 20 Aug 2020 17:29:13 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4BXWpv5nVVzvD; Thu, 20 Aug 2020 17:29:11 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4BXWpv51PGz2yS6; Thu, 20 Aug 2020 17:29:11 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4BXWpt3G8Tz2xcT; Thu, 20 Aug 2020 17:29:10 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 4BXWps55qCzqJ; Thu, 20 Aug 2020 17:29:09 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1597944550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kDa1QPAlweMcqUpn8K0+24ZCrf74bV6xnxeXEb1IG/g=; b=Jk5DQTr8dM7cUi7gT+H2ovYnysVY4NcZUFJChdYFKRAvgaf0gAuqwctuwLubZDjYTP1DwI b1R8ipLvhMUbisAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1597944550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kDa1QPAlweMcqUpn8K0+24ZCrf74bV6xnxeXEb1IG/g=; b=CWPqlj9B8gWWVTpceGNNugJTrAJQmvPWYF7I2uuQbFLLtDmg9JAXaRVS7kNKp0KUdlgmPR ITIs2HN15fX+3T/HjrRxJV2ASzV+p5irjnARIo2VSCHvUziJi0kxvbPc+XfpVtuz4CXegv rhSdcRCFuyi8al1KeIPaM6x6ZS80rNS4JH9+N7RrBgqZQgPy0mVxuJ9VXDEwi3GxJV+EpG 9soGI3rPRoxziQC9KQ7Wy5XU43KtsGLnH96WbM8KdIKf652Fwslx+KULpDnsz4cPwCz99z xja6pXTDGtglVjYncoIIFcP1ajNyYl0DzZ+rBwhrNmvRU7wplx6AtmJIgz4qiQ== From: Stefan Schantl To: location@lists.ipfire.org Subject: [PATCH 2/3] Add an example country to the python create-database example script. Date: Thu, 20 Aug 2020 19:28:55 +0200 Message-Id: <20200820172856.6983-2-stefan.schantl@ipfire.org> In-Reply-To: <20200820172856.6983-1-stefan.schantl@ipfire.org> References: <20200820172856.6983-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.mailfrom=stefan.schantl@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: development@lists.ipfire.org Errors-To: development-bounces@lists.ipfire.org Sender: "Development" The generated database is used by the testsuite of the perl binding. Signed-off-by: Stefan Schantl --- 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"