Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add domain #3

Merged
merged 1 commit into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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_respondd_fallback",
)
)
return aps
Loading