Beschreibung:

This Add-in is used to configure a P2P connection between two LCOS-LX Access Points via WDS. Additional information regarding P2P connections between LCOS-LX Access Points can be found in this Knowledge Base-Article.

The variables can partly be filled globally, but the variable WDS_MODE has to be assigned as Access-Point or Station on device-level.

The function setWDS("Network") can be used when an existing Network/SSID should be transmitted over the P2P connection. You can find the network name in the detail configuration → Wireless LAN → WLAN networks → networks with enabled rollout configuration (preview).

This Add-in can only be used for a connection between two Access Points of the type LCOS-LX. A connection between LCOS-LX and LCOS Access Points is not possible.

Liste der verwendeten Variablen:

VariableBeschreibung

WDS_CONNECTION

Name of the WDS connection.

WDS_ENC

Which Encryption method should be used? (Default P-PSK-WPA3)

WDS_MODE

This variable is used to determine if the AP should be configured as Access-Point or Station.

WDS_PSK

Pre Shared Key used for the connection.

WDS_RADIO

Which band should be used? 2,4GHz, 5GHz or 6GHz. (Default: 2,4GHz)

WDS_ROAMING

Should a roaming profile be used? Has to be configured in detail configuration first. (Default: empty)

WDS_SSID

The name of the SSID that will be broadcasted.

WDS_UNTAGVLAN

Allow untagged packets over the link.

WDS_VLANs

Additionals VLAN to be transmitted via the link.

Add-in Code:

**
 * @param {Config} config
 * @param {Context} context
 * Do not edit this comment or parameter types. Required for code suggestions
*/
exports.main = function (config, context) {
    if (context.vars.WDS_MODE != "None"){
        var wdstable = config.getTableByOid("13.2.20.13.1");
        var wdstable_row = wdstable.createNewRow();
        wdstable_row.setByOid("1", context.vars.WDS_CONNECTION);     // WDS-Connection Name          : 64 chars from #ABCDEFGHIJKLMNOPQRSTUVWXYZ@{|}~!$%&'()*+-,/:;<=>?[\]"^_.0123456789abcdefghijklmnopqrstuvwxyz`
        wdstable_row.setByOid("2", context.vars.WDS_SSID);           // SSID-Name                    : 32 chars from #ABCDEFGHIJKLMNOPQRSTUVWXYZ@{|}~!$%&'()*+-,/:;<=>?[\]"^_.0123456789abcdefghijklmnopqrstuvwxyz `
        wdstable_row.setByOid("3", context.vars.WDS_MODUS);          // Mode                         : Access-Point (0), Station (1), Legacy-Station (2)
        wdstable_row.setByOid("4", context.vars.WDS_RADIO);          // Radio                        : 2.4GHz (1), 5GHz (2), 6GHz (3)
        wdstable_row.setByOid("5", context.vars.WDS_ENC);            // Encryption-Profile           : 128 chars from #ABCDEFGHIJKLMNOPQRSTUVWXYZ@{|}~!$%&'()*+-,/:;<=>?[\]"^_.0123456789abcdefghijklmnopqrstuvwxyz`
        wdstable_row.setByOid("6", context.vars.WDS_PSK);            // Key (PSK)                    : 63 chars from #ABCDEFGHIJKLMNOPQRSTUVWXYZ@{|}~!$%&'()*+-,/:;<=>?[\]"^_.0123456789abcdefghijklmnopqrstuvwxyz `
        wdstable_row.setByOid("8", context.vars.WDS_VLANs);          // Additional-VLANs             : 128 chars from Comma-separated list of VLAN-IDs (0, 2-4094)
        wdstable_row.setByOid("9", "0");                             // LCOS-Client-Bridge-Support   : No (0), Yes (1)
        wdstable_row.setByOid("10", context.vars.WDS_UNTAGVLAN);     // Additional-Untagged-VLAN     : No (0), Yes (1)
        wdstable_row.setByOid("11", context.vars.WDS_ROAMING);       // Roaming-Profile              : 128 chars from #ABCDEFGHIJKLMNOPQRSTUVWXYZ@{|}~!$%&'()*+-,/:;<=>?[\]"^_.0123456789abcdefghijklmnopqrstuvwxyz`
        wdstable.addOrMerge(wdstable_row);



        function setWDS(Network) {
            var wdsNetwork = config.getTableByOid("13.2.20.1");
            var wdsNetwork_row = wdsNetwork.getFirstRowByOid("1", Network)
                .setByOid("32", context.vars.WDS_CONNECTION)
        }
        /*
        setWDS("Networkname") - For example 1_INTRANET_INTRANET
        Found in Detail configuration → Wireless LAN → WLAN networks → Network with enabled rollout configuration (preview)
        */
        setWDS("Network")
    }
};

Add-in als JSON-Datei:

LCOS-LX-WDS.json