From patchwork Sun Aug 30 10:36:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 3415 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 4BfV9v4bpZz3x2X for ; Sun, 30 Aug 2020 10:36:19 +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 4BfV9t0xmZzwt; Sun, 30 Aug 2020 10:36:18 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4BfV9r0h6Gz2xk6; Sun, 30 Aug 2020 10:36:16 +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 4BfV9p6cl9z2xCd; Sun, 30 Aug 2020 10:36:14 +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 4BfV9p37B2zp4; Sun, 30 Aug 2020 10:36:14 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1598783774; 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=vGn+9NLt1z11EpreuORSLg9u7+TINna69/ANmt4NYbc=; b=COu7smj721XXbaCaS6KMw06C381d7P+QDx6cyUydTmJaxiz5YZX7lAizZmqRk9Vb6q1aB0 dLIi4v4/3VONZCCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1598783774; 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=vGn+9NLt1z11EpreuORSLg9u7+TINna69/ANmt4NYbc=; b=kwrT6rGOeFa+LsBaaUeBnZ4yh5A6e0y7REsD1G7fYgOtg/jGNCzbomQsS1T/oII+Z2Yy6W PSaJA+lgOcMjU2DQTBrPkSmC39d1/kVZMY+prbrLOxksX3D6LTkwyv5DaYf3jnOsq3YMam g11HSQoS7GwbJbQz6BVpJMf6vuMFMZYDwMJxKWyCL4ItC1o+PepcSsjrZtqh3orLPdMYAs Wd2Aun9dzv2CtlFke6jAwQKpK3iEQbEWdfns+TdEXoAdg4BAGyDkBX2+vUw/sLHGFsSWAA bRIgmy9KSmzHcGi1YA9aFsifU40F/qs1aopQs4J1iwafgBpZ1rtOItSc6qZVYQ== From: Stefan Schantl To: location@lists.ipfire.org Subject: [PATCH 2/3] Add example network flag to the python create-database example script. Date: Sun, 30 Aug 2020 12:36:01 +0200 Message-Id: <20200830103602.6816-2-stefan.schantl@ipfire.org> In-Reply-To: <20200830103602.6816-1-stefan.schantl@ipfire.org> References: <20200830103602.6816-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.mailfrom=stefan.schantl@ipfire.org X-BeenThere: location@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: development@lists.ipfire.org Errors-To: location-bounces@lists.ipfire.org Sender: "Location" Signed-off-by: Stefan Schantl --- examples/python/create-database.py | 1 + 1 file changed, 1 insertion(+) 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)