mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2025-11-03 03:28:08 +00:00
schema: add support for autonomous channel select
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -15,6 +15,7 @@ set usteer.@usteer[-1].min_connect_snr={{ wifi_steering.required_probe_snr }}
|
|||||||
set usteer.@usteer[-1].roam_scan_snr={{ wifi_steering.required_roam_snr }}
|
set usteer.@usteer[-1].roam_scan_snr={{ wifi_steering.required_roam_snr }}
|
||||||
set usteer.@usteer[-1].load_kick_enabled={{ b(wifi_steering.load_kick_threshold) }}
|
set usteer.@usteer[-1].load_kick_enabled={{ b(wifi_steering.load_kick_threshold) }}
|
||||||
set usteer.@usteer[-1].load_kick_threshold={{ wifi_steering.load_kick_threshold }}
|
set usteer.@usteer[-1].load_kick_threshold={{ wifi_steering.load_kick_threshold }}
|
||||||
|
set usteer.@usteer[-1].autochannel={{ b(wifi_steering.auto_channel) }}
|
||||||
{% for (let ssid in ssids): %}
|
{% for (let ssid in ssids): %}
|
||||||
add_list usteer.@usteer[-1].ssid_list={{ ssid.name }}
|
add_list usteer.@usteer[-1].ssid_list={{ ssid.name }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -39,3 +39,9 @@ properties:
|
|||||||
Minimum channel load (%) before kicking clients
|
Minimum channel load (%) before kicking clients
|
||||||
type: integer
|
type: integer
|
||||||
default: 0
|
default: 0
|
||||||
|
auto-channel:
|
||||||
|
description:
|
||||||
|
Allow multiple instances of the steering daemon to coordinate the best channel
|
||||||
|
usage amongst eachother.
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|||||||
@@ -4298,6 +4298,20 @@ function instantiateServiceWifiSteering(location, value, errors) {
|
|||||||
obj.load_kick_threshold = 0;
|
obj.load_kick_threshold = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function parseAutoChannel(location, value, errors) {
|
||||||
|
if (type(value) != "bool")
|
||||||
|
push(errors, [ location, "must be of type boolean" ]);
|
||||||
|
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (exists(value, "auto-channel")) {
|
||||||
|
obj.auto_channel = parseAutoChannel(location + "/auto-channel", value["auto-channel"], errors);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
obj.auto_channel = false;
|
||||||
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1637,6 +1637,10 @@
|
|||||||
"load-kick-threshold": {
|
"load-kick-threshold": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default": 0
|
"default": 0
|
||||||
|
},
|
||||||
|
"auto-channel": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user