From e6825ec650136ceb8889f69d7abdaab08b1bf707 Mon Sep 17 00:00:00 2001 From: Grische <2787581+grische@users.noreply.github.com> Date: Wed, 3 Jan 2024 18:33:14 +0100 Subject: [PATCH] add fallback domain --- uisp_respondd/respondd_client.py | 2 ++ uisp_respondd/uisp_client.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/uisp_respondd/respondd_client.py b/uisp_respondd/respondd_client.py index 0a27797..d344883 100644 --- a/uisp_respondd/respondd_client.py +++ b/uisp_respondd/respondd_client.py @@ -105,6 +105,7 @@ class NodeInfo: node_id: str location: LocationInfo network: NetworkInfo + system: SystemInfo @dataclasses.dataclass @@ -250,6 +251,7 @@ def getNodeInfos(self): "bat0": IntInfo(interfaces=InterfacesInfo(other=[ap.mac])) }, ), + system=SystemInfo(domain_code=ap.domain_code), ) ) return nodes diff --git a/uisp_respondd/uisp_client.py b/uisp_respondd/uisp_client.py index f22defd..aaf319a 100644 --- a/uisp_respondd/uisp_client.py +++ b/uisp_respondd/uisp_client.py @@ -28,6 +28,7 @@ class Accesspoint: latitude: float longitude: float neighbour: str + domain_code: str @dataclasses.dataclass @@ -98,6 +99,7 @@ def get_infos(): latitude=float(get_location(device)[0]), longitude=float(get_location(device)[1]), neighbour=get_apDevice(device), + domain_code="uisp_respondd_fallback", ) ) return aps