mirror of
https://github.com/Telecominfraproject/wlan-ucentral-schema.git
synced 2026-01-27 10:23:38 +00:00
add property that allows disabling MPSK
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -733,6 +733,8 @@ let services = {
|
||||
if (!interface.ssids)
|
||||
continue;
|
||||
for (let ssid in interface.ssids) {
|
||||
if (!ssid?.enhanced-mpsk)
|
||||
continue;
|
||||
if ((ssid?.encryption?.proto && type(ssid.encryption.proto) == 'string' &&
|
||||
ssid.encryption.proto == "mpsk-radius") ||
|
||||
(type(ssid.multi_psk) == 'bool' && ssid.multi_psk))
|
||||
|
||||
@@ -137,6 +137,11 @@ properties:
|
||||
maximum: 20
|
||||
encryption:
|
||||
$ref: "https://ucentral.io/schema/v1/interface/ssid/encryption/"
|
||||
enhanced-mpsk:
|
||||
description:
|
||||
Optinally disable MPSK
|
||||
type: boolean
|
||||
default: true
|
||||
multi-psk:
|
||||
anyOf:
|
||||
- type: array
|
||||
|
||||
@@ -5857,6 +5857,20 @@ function instantiateInterfaceSsid(location, value, errors) {
|
||||
obj.encryption = instantiateInterfaceSsidEncryption(location + "/encryption", value["encryption"], errors);
|
||||
}
|
||||
|
||||
function parseEnhancedMpsk(location, value, errors) {
|
||||
if (type(value) != "bool")
|
||||
push(errors, [ location, "must be of type boolean" ]);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
if (exists(value, "enhanced-mpsk")) {
|
||||
obj.enhanced_mpsk = parseEnhancedMpsk(location + "/enhanced-mpsk", value["enhanced-mpsk"], errors);
|
||||
}
|
||||
else {
|
||||
obj.enhanced_mpsk = true;
|
||||
}
|
||||
|
||||
function parseMultiPsk(location, value, errors) {
|
||||
function parseVariant0(location, value, errors) {
|
||||
if (type(value) == "array") {
|
||||
|
||||
@@ -1658,6 +1658,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"enhanced-mpsk": {
|
||||
"description": "Optinally disable MPSK",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"multi-psk": {
|
||||
"anyOf": [
|
||||
{
|
||||
|
||||
@@ -2126,6 +2126,10 @@
|
||||
"encryption": {
|
||||
"$ref": "#/$defs/interface.ssid.encryption"
|
||||
},
|
||||
"enhanced-mpsk": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"multi-psk": {
|
||||
"anyOf": [
|
||||
{
|
||||
|
||||
@@ -2429,6 +2429,11 @@
|
||||
"encryption": {
|
||||
"$ref": "#/$defs/interface.ssid.encryption"
|
||||
},
|
||||
"enhanced-mpsk": {
|
||||
"description": "Optinally disable MPSK",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"multi-psk": {
|
||||
"anyOf": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user