summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/luasrc
AgeCommit message (Collapse)Author
2018-12-20luci-app-*: use default poll intervalFlorian Eckert
Replace all XHR poll time number with -1 so they will use the default poll interval time value from "/etc/config/luci". If this is not set then 5 seconds as default is used. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-14luci-app-mwan3: remove deprecated local_source optionFlorian Eckert
Remove deprecated local_source option which is not supported/needed anymore. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-14luci-app-mwan3: add rt_table_lookup optionFlorian Eckert
Make list option rt_table_lookup configurable in luci. With this option we could define additional routing tables which get scanned by mwan3 and then get added to the connected ipset. The entries will be treated as connected network and will not get mangeld by mwan3. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-14luci-app-mwan3: add rtmon interval optionFlorian Eckert
Add the configuration option rtmon to luci. With this parameter we could adjust how often the routing table get synced between main routing table and the interface routing table. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-14luci-app-mwan3: rename variable in globalsconfig.luaFlorian Eckert
Name variables as the options name in uci. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-14luci-app-mwan3: declare variables in globalsconfig.lua localFlorian Eckert
It is best practice to declar module variables local. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-10-12luci-app-mwan3: fix typoFlorian Eckert
This has worked before because the interface variable is global. But this is not nice. So this commit will fix this. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-10-02luci-app-mwan3: fix i18n tracebackFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-09-27luci-app-mwan3: add new max_ttl optionFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-08-30luci-app-mwan3: translate missing text in diagnostic pageFlorian Eckert
Translate missing text. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-08-30luci-app-mwan3: diagnostic fix physical device lookupFlorian Eckert
Use diffrent function to get the physical interface name. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-08-30luci-app-mwan3: change interface enabled option to use flag cbi classFlorian Eckert
Make mwan3 interface enable config option use cbi flag. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-08-30luci-app-mwan3: add command to diag_command output viewFlorian Eckert
Add executed command to diagnostic output. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-07-09treewide: always include cbi.jsJo-Philipp Wich
Include cbi.js in the main header template like it is done for xhr.js and remove the page specific includes. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-02luci-app-mwan3: fix aliased interfaces (@wan6)Paul Traina
2018-05-15luci-app-mwan3: add quality check optionsFlorian Eckert
Add new quality_check feature Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-05-15luci-app-mwan3: add dependecy to size optionFlorian Eckert
This option is only valid if track-method is set to "ping". Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-05-09luci-app-mwan3: pin diag ping command to interface deviceFlorian Eckert
If the physical device is not set in the diag_command then the ping will always use the route with the lowest metric from the default routing table. To fix this add the physical device of the logical interface to the ping command. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-05-09luci-app-mwan3: honor dynamic interface to get gateway ipFlorian Eckert
If a logical interface setup and adds in the protocol handler a dynamic interface then the gateway is configured in the dynamic interface and the setting up logical interface does not have a gateway specified. To fix this check first if a dynamic interface is present and use this gateway ip if found and if no dynamich interface is set then check for a gateway in the logical interface. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-04-10luci-app-mwan3: bugfixDirk Brenken
* two more luci.model.uci fixes for #1743 Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-04-09luci-app-mwan3: bugfixDirk Brenken
* make use of luci.model.uci to fix #1740 Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-04-06luci-app-mwan3: show default values in interface page if config is not foundFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-04-06luci-app-mwan3: update translationsFlorian Eckert
Update hint in the interface page. Update hint in the policy page. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-04-06luci-app-mwan3: fix legacy uci api usageJo-Philipp Wich
Explicitely require libuci-lua in model classes that use legacy /var/state cursor handling. Also add a specific dependency on libuci-lua to the luci-app-mwan3 Makefile in preparation of the upcoming default removal of libuci-lua. Finally fix the post data dispatching on the notification tab, see #1722 for reference. Fixes #1726. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-05treewide: filter shell arguments through shellquote() where applicableJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-03luci-app-mwan3: remove unnecessary 'tracking active' hintFlorian Eckert
Remove the unnecessary 'tracking active' hint from the status interface page. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-04-03luci-app-mwan3: remove diag-rc-legend field idFlorian Eckert
On the material theme the "Collecting data" hint in the status pages was still present on the page even though the command was sucessfull executed. Remove the legend tag and move the info "Collecting data" to the "diag-rc-output" tag will solve this issue. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-04-03luci-app-mwan3: calculate max interface usage from mmx_mask valueFlorian Eckert
Show max interface value on interface page dependent on the mmx_mask value Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-28luci-app-mwan3: update notify infoFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-28luci-app-mwan3: fix strict XHTML syntax errorFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-23luci-app-mwan3: add missing graphics boxes againFlorian Eckert
Add css boxes for mwan3 status again Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-23luci-app-mwan3: remove notMonitored status informationFlorian Eckert
This case is not supported by mwan3 anymore Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-01luci-app-mwan3: remove css from javascript in overview_status_interfaceFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-01luci-app-mwan3: Update header name in status pagesFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-01luci-app-mwan3: remove duplicated code sectionFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-01luci-app-mwan3: fix source stylingFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-01luci-app-mwan3: remove css styling from status_interface pageFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-01luci-app-mwan3: remove css styling from overview_status_interface pageFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-01luci-app-mwan3: fix stack trace if no tacking_ip is set on interface addFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-02-05luci-app-wman3: show info if mwan3 is not global enabledFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-02-05luci-app-mwan3: update look and feel interface status pageFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-02-05luci-app-mwan3: do not show mwan3 status in overview if not enabledFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-23luci-app-wman3: add license header to all filesFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-23luci-app-mwan3: fix diagnostics dropdown menu entryFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-23luci-app-mwan3: fix assert if route could not select by ubusFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18luci-app-mwan3: refactoring troubleshooting pageFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18luci-app-mwan3: rename status tab namesFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18luci-app-mwan3: refactoring detail status view and controllerFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18luci-app-mwan3: refactoring diagnostics view and controllerFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18luci-app-mwan3: fix unify luci code stylingFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>