mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2025-10-30 01:32:26 +00:00
schema: wifi steering should never be allowed on lan
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -3,7 +3,7 @@ add usteer usteer
|
||||
{% if (wifi_steering.mode == 'local' && length(ssids)): %}
|
||||
|
||||
# Wifi-Steering service configuration
|
||||
set usteer.@usteer[-1].network={{ s(wifi_steering.network) }}
|
||||
set usteer.@usteer[-1].network='up'
|
||||
set usteer.@usteer[-1].key={{ s(wifi_steering.key) }}
|
||||
set usteer.@usteer[-1].assoc_steering={{ b(wifi_steering.assoc_steering) }}
|
||||
set usteer.@usteer[-1].min_snr={{ wifi_steering.required_snr }}
|
||||
|
||||
@@ -11,11 +11,6 @@ properties:
|
||||
- cloud
|
||||
examples:
|
||||
- local
|
||||
network:
|
||||
description:
|
||||
The network that shall be used to communicate with the other peers.
|
||||
type: string
|
||||
default: upstream
|
||||
assoc-steering:
|
||||
description:
|
||||
Allow rejecting assoc requests for steering purposes.
|
||||
|
||||
@@ -3707,20 +3707,6 @@ function instantiateServiceWifiSteering(location, value, errors) {
|
||||
obj.mode = parseMode(location + "/mode", value["mode"], errors);
|
||||
}
|
||||
|
||||
function parseNetwork(location, value, errors) {
|
||||
if (type(value) != "string")
|
||||
push(errors, [ location, "must be of type string" ]);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
if (exists(value, "network")) {
|
||||
obj.network = parseNetwork(location + "/network", value["network"], errors);
|
||||
}
|
||||
else {
|
||||
obj.network = "upstream";
|
||||
}
|
||||
|
||||
function parseAssocSteering(location, value, errors) {
|
||||
if (type(value) != "bool")
|
||||
push(errors, [ location, "must be of type boolean" ]);
|
||||
|
||||
@@ -1445,10 +1445,6 @@
|
||||
"local"
|
||||
]
|
||||
},
|
||||
"network": {
|
||||
"type": "string",
|
||||
"default": "upstream"
|
||||
},
|
||||
"assoc-steering": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
|
||||
Reference in New Issue
Block a user