Reproduce OpenWRT Luci config through OpenWISP templates

91 views
Skip to first unread message

Tech ESEA

unread,
Aug 7, 2023, 5:49:32 AM8/7/23
to OpenWISP
Hello,

We are currently testing OpenWISP with an AP or PC (OpenWRT OpenWrt 22.03.5) with a single ethernet port and a wifi card

This AP must (at least) broadcast 1 WIFI SSID egg :

SSID 1 : TEST_GUEST

This SSID is binded to a specific VLAN, egg :

SSID : TEST_GUEST - VLAN 10

Let say that main network interface for AP is eth0.

We can achieve this through Luci by creating in this order :  

- VLAN 802.1q device :
    - base device : eth0
    - VLAN ID : 10
    - Device Name : eth0.10
- Bridge device :
    - device name : brdev10
    - Bridge port : Software VLAN eth0.10
- New interface :
    - name : if_brdev10
    - protocol : unmanaged
    - device : Bridge : brdev10
- New wireless interface :
    - mode Access point:
    - ESSID : TEST_GUEST
    - Network : if_brdev10

But we do not figure out how to achieve this through OpenWISP templates. Any help would be greatly appreciated.

Regards.

J H

unread,
Aug 30, 2023, 6:44:12 AM8/30/23
to OpenWISP
Hi

had a similar problem because i wanted 22.x w/ DSA and other options.

that's why i made a new template/object :

raw json file:

{
    "wireless": [
        {
            "config_name": "wifi-iface",
            "config_value": "internet",
            "wpa_disable_eapol_key_retries": "0",
            "time_advertisement": "2",
            "time_zone": "CET-1CEST,M3.5.0,M10.5.0/3",
            "bss_transition": "1",
            "ieee80211k": "1",
            "ft_over_ds": "1"
        },
...

or
{
    "wireless": [
        {
            "config_name": "wifi-device",
            "config_value": "radio1",
            "channels": "1-2 5-6 9-10 13"
        },

and now i apply these. just check `uci show` output and write your own options.
Reply all
Reply to author
Forward
0 new messages