Skip to content

Commit

Permalink
add domain
Browse files Browse the repository at this point in the history
  • Loading branch information
grische committed Jan 3, 2024
1 parent 8e94355 commit 52e0953
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uisp_respondd/respondd_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class NodeInfo:
node_id: str
location: LocationInfo
network: NetworkInfo
system: SystemInfo


@dataclasses.dataclass
Expand Down Expand Up @@ -250,6 +251,7 @@ def getNodeInfos(self):
"bat0": IntInfo(interfaces=InterfacesInfo(other=[ap.mac]))
},
),
system=SystemInfo(domain_code=ap.domain_code),
)
)
return nodes
Expand Down
2 changes: 2 additions & 0 deletions uisp_respondd/uisp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Accesspoint:
latitude: float
longitude: float
neighbour: str
domain_code: str


@dataclasses.dataclass
Expand Down Expand Up @@ -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_fallback",
)
)
return aps

0 comments on commit 52e0953

Please sign in to comment.