diff options
author | Håkon Solbjørg <hakon@solbj.org> | 2023-04-06 21:23:58 +0200 |
---|---|---|
committer | Håkon Solbjørg <hakon@solbj.org> | 2023-04-06 21:23:58 +0200 |
commit | e1e907e383c0478890fa2979d8680be16b39c11f (patch) | |
tree | 84bb305a94900a3f4611dabfad2c5c67ab6dfa59 /tools | |
parent | 42e8cc1ce7842f7780716d7c863b80babea0a5c4 (diff) |
feat(netbox2gondul): Send APs to Gondul as well
Diffstat (limited to 'tools')
-rw-r--r-- | tools/netbox/scripts/netbox2gondul/netbox2gondul.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/netbox/scripts/netbox2gondul/netbox2gondul.py b/tools/netbox/scripts/netbox2gondul/netbox2gondul.py index 99f3baa..64d57d9 100644 --- a/tools/netbox/scripts/netbox2gondul/netbox2gondul.py +++ b/tools/netbox/scripts/netbox2gondul/netbox2gondul.py @@ -18,6 +18,7 @@ from requests.models import HTTPBasicAuth FLOOR = Site.objects.get(slug="floor") RING = Site.objects.get(slug="ring") +WIFI = Site.objects.get(slug="hele-skpet") WIFI_TRAFFIC_VLAN = VLAN.objects.get(name="wifi-clients-ssid-the-gathering.floor.r1.tele") class GondulConfigError(Exception): @@ -214,7 +215,7 @@ class Netbox2Gondul(Script): if len(input_devices) == 0: input_devices = Device.objects.filter( - Q(site=FLOOR) | Q(site=RING) + Q(site=FLOOR) | Q(site=RING) | Q(site=WIFI) ).filter( status=DeviceStatusChoices.STATUS_ACTIVE, ) |