From 4ea3a099b05fa910498bfbf1b2d7387118355472 Mon Sep 17 00:00:00 2001 From: "Ole Mathias Aa. Heggem" Date: Sun, 13 Apr 2025 07:18:45 +0200 Subject: Upgrade bootstrap and rewrite API (#230) --- api/app/core/netbox.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 api/app/core/netbox.py (limited to 'api/app/core/netbox.py') diff --git a/api/app/core/netbox.py b/api/app/core/netbox.py new file mode 100644 index 0000000..78a77c2 --- /dev/null +++ b/api/app/core/netbox.py @@ -0,0 +1,13 @@ +import os +import pynetbox + +from app.core.config import settings + +def setup_netbox(): + return pynetbox.api( + settings.NETBOX_URL, + token=settings.NETBOX_TOKEN, + threading=True, + ) + +nb = setup_netbox() \ No newline at end of file -- cgit v1.2.3