aboutsummaryrefslogtreecommitdiffstats
path: root/tools/netbox/scripts/netbox2gondul/netbox2gondul.py
diff options
context:
space:
mode:
authorHåkon Solbjørg <hakon@solbj.org>2023-03-13 20:57:20 +0100
committerHåkon Solbjørg <hakon@solbj.org>2023-03-13 21:07:29 +0100
commit78c9c6b40970d7b89bb2b00ee694aa1815c5fb87 (patch)
tree2fafe024516a23a6fcf3e2b17780aa4ab6e9b81e /tools/netbox/scripts/netbox2gondul/netbox2gondul.py
parent258f43b4bb18f679229f0389ca33c14ffd55da10 (diff)
fix(nb2gondul): Don't treat text as markdown-styled in Scripts overview
Diffstat (limited to 'tools/netbox/scripts/netbox2gondul/netbox2gondul.py')
-rw-r--r--tools/netbox/scripts/netbox2gondul/netbox2gondul.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/netbox/scripts/netbox2gondul/netbox2gondul.py b/tools/netbox/scripts/netbox2gondul/netbox2gondul.py
index 81d41de..c417e8e 100644
--- a/tools/netbox/scripts/netbox2gondul/netbox2gondul.py
+++ b/tools/netbox/scripts/netbox2gondul/netbox2gondul.py
@@ -10,6 +10,7 @@ from ipam.lookups import NetContainsOrEquals
import ipaddress
import json
+import re
import requests
from requests.models import HTTPBasicAuth
@@ -25,10 +26,10 @@ class Netbox2Gondul(Script):
class Meta:
name = "Sync NetBox to Gondul"
- description = """
+ description = re.sub(r'^\s*', '', """
Can be done for a single network/device or a full sync. Note that this will not do 'renames' of devices, so it is best used for updating device information.
If a device is selected, it will also sync the required networks as long as they are set up correctly (Primary IP addresses for the Switch & VLAN configured for the Prefix of those IP Addresses).
- """
+ """)
field_order = ['site_name', 'switch_count', 'switch_model']
switch = ObjectVar(