mirror of
https://github.com/Telecominfraproject/wlan-ucentral-schema.git
synced 2026-01-27 02:23:33 +00:00
add 'none' mode to wifi-steering
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
{% let enable = (wifi_steering.mode == 'local' && length(ssids)) %}
|
||||
{% services.set_enabled("usteer", enable) %}
|
||||
{% if (!enable) return %}
|
||||
{% let name = ethernet.find_interface("upstream", 0) %}
|
||||
{% let name = wifi_steering.mode == 'local' ? ethernet.find_interface("upstream", 0) : '' %}
|
||||
# Wifi-Steering service configuration
|
||||
|
||||
add usteer usteer
|
||||
|
||||
@@ -8,7 +8,7 @@ properties:
|
||||
type: string
|
||||
enum:
|
||||
- local
|
||||
- cloud
|
||||
- none
|
||||
examples:
|
||||
- local
|
||||
assoc-steering:
|
||||
|
||||
@@ -6166,8 +6166,8 @@ function instantiateServiceWifiSteering(location, value, errors) {
|
||||
if (type(value) != "string")
|
||||
push(errors, [ location, "must be of type string" ]);
|
||||
|
||||
if (!(value in [ "local", "cloud" ]))
|
||||
push(errors, [ location, "must be one of \"local\" or \"cloud\"" ]);
|
||||
if (!(value in [ "local", "none" ]))
|
||||
push(errors, [ location, "must be one of \"local\" or \"none\"" ]);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -2287,7 +2287,7 @@
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"local",
|
||||
"cloud"
|
||||
"none"
|
||||
],
|
||||
"examples": [
|
||||
"local"
|
||||
|
||||
Reference in New Issue
Block a user