summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full/luasrc/model
AgeCommit message (Collapse)Author
2018-06-08treewide: switch firewall zone, network and iface lists to dropdown codeJo-Philipp Wich
Also switch the weekday and monthday lists in the firewall rule details to cbi dropdowns, vastly uncluttering the form. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-19luci-mod-admin-full: do not override iface section in wireless cbi mapJo-Philipp Wich
Do override the iface section id upon commit to avoid clobbering the resulting configuration. The manual config sync is not needed anymore after switching to uncached ubus uci operations. Fixes #1770. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-05luci-mod-admin-full: rework wifi configurationJo-Philipp Wich
- localize variables - get rid of redirects breaking apply workflow - auto-adjust unusable channels when switching country - use apply/rollback workflow when enabling/disabling networks Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-02Fixing small typoRicardo Lamego
indentifies > identifies
2018-05-02luci-mod-admin-full: canonicalize configured static lease MACJo-Philipp Wich
When reading the configured mac address of the static lease, filter it through luci.ip.checkmac() to canonicalize and uppercase the value for mapping it against the combo box host hints. Fixes #1772. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-02Merge pull request #1705 from Mushoz/add-igmp-snoopingJo-Philipp Wich
luci-mod-admin-full: add igmp snooping option
2018-04-09luci-mod-admin-full: limit dns cachesize to 10000Marc Benoit
The value of cachesize is hardcoded to 10000 in dnsmasq-2.79/src/option.c to 10000 max case 'c': /* --cache-size */ { int size; if (!atoi_check(arg, &size)) ret_err(gen_err); else { /* zero is OK, and means no caching. */ if (size < 0) size = 0; else if (size > 10000) size = 10000; daemon->cachesize = size; } break; } Tested on Netgear R7800 Signed-off-by: Marc Benoit <marcb62185@gmail.com>
2018-04-09luci-mod-admin-full: allow setting dns cachesizeMarc Benoit
In the case of more powerful routers the default cachesize value == 150 is too small and can easily be extended to 1,000's and 10,000's of entries. It makes sense to make it easy configurable. Tested on Netgear R7800 Signed-off-by: Marc Benoit <marcb62185@gmail.com> Fix whitespace, edit the proposed help text. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-04-05treewide: filter shell arguments through shellquote() where applicableJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-04luci-mod-admin-full: use strict hostname validation for dhcp hostsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-03-28luc-mod-admin-full: add igmp snooping optionJaap Buurman
Signed-off-by: Jaap Buurman <jaapbuurman@gmail.com>
2018-03-12treewide: unify mac address handlingJo-Philipp Wich
Use the new luci.ip MAC address facilities to parse and verify MAC addresses in a common way, instead of relying on various ad-hoc solutions. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-03-02luci-base, luci-mod-admin-full: store backup vars in luci configurationJo-Philipp Wich
Keep the ifname and bridge state backup variables in /etc/config/luci to not pollute /etc/config/network. Fixes #1655. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-01-20luci-mod-admin-full: fix typos on dhcp pageHannu Nyman
Based on #1568 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-01-13luci-mod-admin-full: set 0 db DSL SNR offset by defaultMathias Kresin
If no DSL SNR offset is set for the dsl line the first entry from the dropdown list is pre-selected by default, which would apply a -10 db offset by default. Pre-select the 0 db option if nothing else is specified in the uci config files. Signed-off-by: Mathias Kresin <dev@kresin.me>
2018-01-09luci-mod-admin-full: led config: add support for Switch Port MaskMartin Schiller
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2018-01-09luci-mod-admin-full: fix incorrect length of DUID-LLArjen de Korte
The length of DUID-LL is 80 bits (16 bit DUID type, 16 bit hardware type, 48 bit mac) which corresponds to 20 nibbles. Also lower the minimum required length of DUID to 20 nibbles in order to allow entering a DUID-LL. Signed-off-by: Arjen de Korte <build+github@de-korte.org>
2018-01-09luci-base: adjust translationsJo-Philipp Wich
- Modify labels for mesh forwarding and 802.11b rate options - Synchronize translations - Complete german base translation Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-01-09luci-mod-admin-full: Add 802.11b legacy_rates supportSven Roederer
this was added to LEDE with ed62d91f4b5296a4aa883ce975d76f590ef4e910 and defaults to enable. Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
2018-01-09luci-mod-admin-full: Add mesh_fwding supportSven Roederer
* make it only visible for 802.11s mesh-networks * have it enabled by default Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de> [add empty line before meshfwd assignment] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-01-08luci-mod-admin-full: allow setting DSL SNR offset for VDSLJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-01-07luci-mod-admin-full: Add meshId supportKishan Gondaliya
Signed-off-by: Kishan Gondaliya <kishanpgondaliya@gmail.com> [move mode before the SSID / Mesh ID setting] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-01-03luci-mod-admin-full: remove unused button cbi modelJo-Philipp Wich
Remove the unused admin_system/buttons cbi model. It has been broken, was not exposed in the controller and the corresponding support code which only ever was available for the ath25 target has been dropped in with https://git.lede-project.org/0a3d721in June 2016. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-01-02luci-mod-admin-full: allow a wider range of DSL SNR marginsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-12-28typo: fileystem --> filesystemHannu Nyman
fix typo: sed -i "s/fileystem/filesystem/" Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-11-10luci-mod-admin-full: add SNR tweak option to DSLAndrea Merello
Reported-by: Andrea Merello <andrea.merello@gmail.com> [rebase onto master, fix indentation, commit subject, depend on adsl mode] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-10luci-mod-admin-full: restrict DSL xfer_mode and line_mode options to VDSL modemsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-10luci-mod-admin-full: add DUID option to static leases sectionJan Pavlinec
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz> [add field validation] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-06luci-mod-admin-full: wifi.lua: 80211r ft_over_dsLorenzo Santina
Allow user to chose if use FT over DS protocol or FT over the Air protocol for Fast BSS Transition Signed-off-by: Lorenzo Santina <lorenzo.santina@edu.unito.it>
2017-11-06luci-mod-admin-full: wifi.lua: 80211r ft_psk_generate_localLorenzo Santina
Add local generation of PMK when using a PSK. So 802.11r is easier to configure and no inter AP communication is needed any more. Signed-off-by: Lorenzo Santina <lorenzo.santina@edu.unito.it>
2017-10-18luci-mod-admin-full: tone down KRACK countermeasure descriptionJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-10-17luci-mod-admin-full: wifi: expose "wpa_disable_eapol_key_retries" optionJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-10-17luci-mod-admin-full: wifi.lua: fix indentationJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-08-09[PATCH] luci-mod-admin-full: 802.11r AP-WDS mode enableAnton Engelhardt
Made 802.11r selection availible in AP-WDS mode Signed-off-by: Anton Engelhardt anton@neednow.de
2017-08-07luci-mod-admin-full: add 'auto' xfer_mode to dsl configurationMartin Schiller
This change is needed to support the new default 'auto' xfer_mode setting. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2017-06-05luci-mod-admin-full: Enable adhoc mode encryption optionsKishan Gondaliya
Currently there are only 2 encryption options visible for adhoc mode. But in netifd, others are also supported and working as expected. So adding WPA-PSK, WPA2-PSK and WPA-PSK/WPA2-PSK Mixed mode as encryption options. Signed-off-by: Kishan Gondaliya <kishanpgondaliya@gmail.com>
2017-06-02luci-mod-admin-full: automatically set dns=1 for static leases with hostnameJo-Philipp Wich
Most users likely want the hostname of a static DHCP lease to be resolveable, even if the corresponding host is currently offline. Adjust the form logic to automatically set 'option dns 1' whenever a name is specified in the static lease entry. FIxes LEDE FS#815. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-30luci-mod-admin-full: use "Lease time" instead of "Leasetime" as translation ↵Jo-Philipp Wich
label This allows sharing a common translation string between DHCP and interface pages. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-29luci-mod-admin-full: auto-migrate ifnames when changing VLAN configurationJo-Philipp Wich
This change extends the switch VLAN configuration page to automatically adjust interface ifname options when altering VLAN settings. For example "eth0" is changed to "eth0.1" when a previously untagged LAN VLAN is switched to tagged on the CPU port and vice versa. Notifications are displayed in the page header if an auto migration was performed. This change should make the switch configuration more user friendly and less prone to soft bricking. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-08luci-mod-admin-full: add advice to restart cronHannu Nyman
Cron init script starts the service only if a crontab file exists. If there is no crontab file at boot and the user later creates one, he needs to manually restart the service. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-05-01luci-mod-admin-full: "isolate" option is missing for mac80211fantom-x
Signed-off-by: Marc Benoit marcb6218@gmail.com
2017-04-25luci-mod-admin-full: correct logic for dnsmasq boguspriv keywordmuddyfeet
Prevents deletion of the UCI dns boguspriv keyword and explicitly sets it to either 0 or removes it as the LEDE/Openwrt dnsmasq.conf default is 1 - not 0. This allows boguspriv to be turned off from the GUI. Signed-off-by: Warren Linton <warren@linton.id.au> [Jo-Philipp Wich: squashed commits, updated commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-03-14luci-mod-admin-full: add advanced force_link optionFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-02-28treewide: cleanup references to madwifi from LuCIHannu Nyman
Remove the code related to the deprecated madwifi driver. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-28luci-mod-admin-full: new hostapd functionality for 80211w/r detectionHannu Nyman
Use the new hostapd functionality (in LEDE) to detect 802.11r and 802.11w more properly. Leave the old logic in place for Openwrt. Adjust 802.11w default value from "0" to "" in order to avoid unnecessary "option ieee80211w 0" lines in /etc/config/wireless Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-15luci-mod-admin-full: change html for compatibility with openwrt themeHannu Nyman
Openwrt theme apparently accepsts slightly different html than Bootstrap or Material. Cahnge code to <br /> to make it compatible. This fixes #1011 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-14luci-mod-admin-full: place 80211w options behind a check for wpad-fullHannu Nyman
The default hostapd/wpad mini version does not support ieee80211w and the option's visibility in LuCI may lead it to be placed in user's /etc/config/wireless preventing wifi from starting. Check for hostapd/wpad full before exposing the option. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-10luci-mod-admin-full: tweak 80211w optionsHannu Nyman
Use ListValue type and enable translation of the option values. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-09luci-mod-admin-full: add support for 802.11w optionsHannu Nyman
Add support for IEEE802.11w Management Frame Protection options. Mention in the help text that the full version of wpad/hostapd is needed. Currently supported by ath9k and ath10k, and in LEDE also by mwlwifi and mt76. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-09luci-mod-admin-full: add validation to more 802.11r optionsHannu Nyman
Apply hexstring datatype to mobility domain and r1_key_holder. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>