Admin message

Self sign-up has been disabled due to increased spam activity. If you want to get access, please send an email to a project owner (preferred) or at gitlab(at)nic(dot)cz. We apologize for the inconvenience.

Add option to set LTE modem as wan
Add option to set LTE connection as WAN. ~~For start, I'd propose separate menu entry (WWAN, Wireless Wan or something similar) with its own API call(s)~~. Therefore we wouldn't need to alter the "regular" wired WAN backend yet. ## Original design (obsolete) This wireframe is just initial draft, so feel free to redesign it. <details> <summary>Click to show</summary> ![wan-lte-form](/uploads/b1e044c477bccbe9dc3d3875a97bcff2/wan-lte-form.png) </details> ## Proposed design <details> <summary>Click to show</summary> **Wired WAN (aka the regular wan)** ![Wired_WAN__regular_](/uploads/80d5c595ed4011105ee0c056f82dc862/Wired_WAN__regular_.png) **Wireless WAN without additional authentication** ![Wireless_WAN_page_without_authentication](/uploads/342bc00ec51dcdc7cfa2a9c8b51b7200/Wireless_WAN_page_without_authentication.png) **Wireless WAN with additional authentication** ![Wireless_WAN_page_with_authentication](/uploads/f91d510b1ac40a3666c51835e67348b1/Wireless_WAN_page_with_authentication.png) </details> This my crude attempt at wireframe with figma and it surely could be made better, but I hope the idea is clear. ## Proposed handling of data Request: GET reforis/api/wan <details> <summary>json response</summary> ```json { "mode": "wireless", "mode_wired": { "interface_count": 1, "interface_up_count": 1, "last_seen_duid": "<duid>", "mac_settings": { "custom_mac_enabled": false, "mac_address": "aa:bb:cc:11:22:33" }, "proto": "dhcp", "qos": { "download": 1024, "enabled": false, "upload": 1024 }, "up": true, "vlan_settings": { "enabled": false }, "wan6_settings": { "wan6_dhcpv6": { "duid": "" }, "wan6_type": "dhcpv6" }, "wan_settings": { "wan_dhcp": {}, "wan_type": "dhcp" } }, "mode_wireless": { "devices": [ { "apn": "apn.example.foo", "authentication": { "auth_type": "none" }, "enabled": true, "id": 0, "pdptype": "ipv4v6", "pincode": "", "qmi_device": "/dev/cdc-wdm0", "sim_status": "failure" }, { "apn": "", "authentication": { "auth_type": "none" }, "enabled": false, "id": 1, "pdptype": "ipv4v6", "pincode": "", "qmi_device": "/dev/cdc-wdm1", "sim_status": "failure" } ] } } ``` </details> 1) Show form based on the `mode`. 2) In case of mode `wireless`, show first the modem device that is `enabled`, meaning this modem is designated as wan. Please note that in current implementation, there should be only one interface designated as wan - wired, modem1 or modemX - not multiple interfaces together. Blocked by: turris/foris-controller/foris-controller-wwan-module#1
issue