mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-26 01:51:40 +00:00
Advanced networking settings (#899)
Exposes NetworkManager interface name and more robustly handles device/interface names internally. --------- Co-authored-by: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com>
This commit is contained in:
@@ -24,6 +24,11 @@ export enum NetworkConnectionType {
|
||||
Static = 1
|
||||
}
|
||||
|
||||
export interface NetworkInterfaceType {
|
||||
connName: string;
|
||||
devName: string;
|
||||
}
|
||||
|
||||
export interface NetworkSettings {
|
||||
ntServerAddress: string;
|
||||
connectionType: NetworkConnectionType;
|
||||
@@ -31,12 +36,15 @@ export interface NetworkSettings {
|
||||
hostname: string;
|
||||
runNTServer: boolean;
|
||||
shouldManage: boolean;
|
||||
canManage: boolean;
|
||||
networkManagerIface?: string;
|
||||
physicalInterface?: string;
|
||||
setStaticCommand?: string;
|
||||
setDHCPcommand?: string;
|
||||
networkInterfaceNames: NetworkInterfaceType[];
|
||||
}
|
||||
|
||||
export type ConfigurableNetworkSettings = Omit<NetworkSettings, "canManage" | "networkInterfaceNames">;
|
||||
|
||||
export interface LightingSettings {
|
||||
supported: boolean;
|
||||
brightness: number;
|
||||
|
||||
Reference in New Issue
Block a user