Commit graph

71 commits

Author SHA1 Message Date
Florian Eckert
ab5b05dc25 luci-app-mwan3: fixing reliability check if value is not configured
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-09-22 14:48:01 +02:00
James White
a6294a20d6 luci-app-mwan3: Adjust timeout value to match mwan3track default
Signed-off-by: James White <james@jmwhite.co.uk>
2020-09-22 07:21:01 +01:00
James White
62d1445660 luci-app-mwan3: Adjust default interval value to 10 to match mwan3track
Signed-off-by: James White <james@jmwhite.co.uk>
2020-09-22 07:20:55 +01:00
James White
4a9062c7b6 luci-app-mwan3: Update down and up defaults to match mwan3track
Signed-off-by: James White <james@jmwhite.co.uk>
2020-09-22 07:20:44 +01:00
Florian Eckert
8e4edd2035 luci-app-mwan3: sync default values with mwan3
fixes #4389

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-08-31 14:25:41 +02:00
Paul Spooren
c4a4e43e2e treewide: replace which with command -v
Fix shellcheck SC2230
> which is non-standard. Use builtin 'command -v' instead.

Once applied to everything concerning OpenWrt we can disable the busybox
feature `which` and save 3.8kB.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-08-20 15:54:54 -10:00
Florian Eckert
1cab592bf9 luci-app-mwan3: save httping_ssl config whether is set or not
Always write this configuration parameter into the config.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-12-18 11:51:54 +01:00
Florian Eckert
93ff9ef2ee luci-app-mwan3: fix require field message if httping is selected
If these two values are not removed, then httping cannot be selected as
the tracking method. The field size is a must field for ping but it is not
displayed because httping does not need it.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-12-18 11:44:59 +01:00
Florian Eckert
8262e12725 luci-app-mwan3: switch on ssl tracking on httping selection
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-11-19 10:39:50 +01:00
Florian Eckert
f773e33d81 luci-app-mwan3: add new httping_ssl option
Add the new possibilty to ping https targets with httping.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-11-13 13:25:39 +01:00
Florian Eckert
69f6a36084 luci-app-mwan3: change flush_conntrack option to list option
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-06-03 14:22:54 +02:00
Florian Eckert
aa2e1edfa5 luci-app-mwan3: fix possibility to not select an ipset
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-01-31 11:04:43 +01:00
Florian Eckert
f229dea746 luci-app-mwan3: Offer loaded ipsets as dropdown for ipset selection
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-01-22 14:36:21 +01:00
Florian Eckert
a429bb47e7 luci-app-mwan3: add syslog rule debug option
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-01-22 14:36:19 +01:00
Florian Eckert
c95fdfcc1a luci-app-mwan3: fix cbi local scope
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-01-17 11:12:52 +01:00
Florian Eckert
99bac545ee luci-app-mwan3: show supported tracking methodes if needed bin is installed
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-12-21 10:33:24 +01:00
Florian Eckert
77af204dea luci-app-mwan3: add tracking methode nping
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-12-21 10:33:14 +01:00
Florian Eckert
8938f53f1b luci-app-mwan3: remove deprecated local_source option
Remove deprecated local_source option which is not supported/needed anymore.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-14 09:22:20 +01:00
Florian Eckert
6ec540c46d luci-app-mwan3: add rt_table_lookup option
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-14 09:19:08 +01:00
Florian Eckert
8517a25a80 luci-app-mwan3: add rtmon interval option
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-14 09:17:04 +01:00
Florian Eckert
29ab12650c luci-app-mwan3: rename variable in globalsconfig.lua
Name variables as the options name in uci.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-14 09:15:46 +01:00
Florian Eckert
fc1e2c53b9 luci-app-mwan3: declare variables in globalsconfig.lua local
It is best practice to declar module variables local.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-14 09:15:13 +01:00
Florian Eckert
5d8b64f414 luci-app-mwan3: add new max_ttl option
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-09-27 08:50:31 +02:00
Florian Eckert
665e062061 luci-app-mwan3: change interface enabled option to use flag cbi class
Make mwan3 interface enable config option use cbi flag.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-08-30 14:44:34 +02:00
Florian Eckert
9a93359d42 luci-app-mwan3: add quality check options
Add new quality_check feature

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-05-15 11:11:38 +02:00
Florian Eckert
2c6faaecd1 luci-app-mwan3: add dependecy to size option
This option is only valid if track-method is set to "ping".

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-05-15 11:11:34 +02:00
Dirk Brenken
f7f5395f1c luci-app-mwan3: bugfix
* make use of luci.model.uci to fix #1740

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-04-09 15:50:21 +02:00
Florian Eckert
af3ef3390c luci-app-mwan3: show default values in interface page if config is not found
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-04-06 12:56:57 +02:00
Florian Eckert
01e0179725 luci-app-mwan3: update translations
Update hint in the interface page.
Update hint in the policy page.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-04-06 12:54:21 +02:00
Jo-Philipp Wich
08a2b27df5 luci-app-mwan3: fix legacy uci api usage
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-06 09:35:39 +02:00
Florian Eckert
c390464590 luci-app-mwan3: calculate max interface usage from mmx_mask value
Show max interface value on interface page dependent on the mmx_mask
value

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-04-03 13:30:20 +02:00
Florian Eckert
3a0d5301ca luci-app-mwan3: update notify info
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-28 10:59:50 +02:00
Florian Eckert
ed56422a91 luci-app-mwan3: fix strict XHTML syntax error
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-28 10:59:42 +02:00
Florian Eckert
3c86c6562e luci-app-mwan3: fix stack trace if no tacking_ip is set on interface add
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-01 10:47:38 +01:00
Florian Eckert
c38117d2ad luci-app-wman3: add license header to all files
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-23 13:30:31 +01:00
Florian Eckert
562a3e5b73 luci-app-mwan3: fix assert if route could not select by ubus
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-23 13:30:24 +01:00
Florian Eckert
278b3f53db luci-app-mwan3: fix unify luci code styling
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18 15:09:56 +01:00
Florian Eckert
831bd71eb3 luci-app-mwan3: remove/unify lua require order
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18 15:09:52 +01:00
Florian Eckert
d369c80bec luci-app-mwan3: refactoring member config pages
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18 15:09:50 +01:00
Florian Eckert
b4350f21ff luci-app-mwan3: refactoring warning compilation on the policy config pages
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18 15:09:46 +01:00
Florian Eckert
ed0d2ba6cf luci-app-mwan3: refactoring ruleconfig page
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18 15:09:42 +01:00
Florian Eckert
aae3d298c2 luci-app-mwan3: refactoring warning compilation on the rule config pages
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18 15:09:38 +01:00
Florian Eckert
de1afe2a90 luci-app-mwan3: remove some config parameter from rule overview table
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18 15:09:34 +01:00
Florian Eckert
8014e21d6d luci-app-mwan3: update rule help text
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18 15:09:30 +01:00
Florian Eckert
2d7e440eb1 luci-app-mwan3: remove config_css
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18 15:09:28 +01:00
Florian Eckert
03dc912ebd luci-app-mwan3: remove some config parameter from interface overview table
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18 15:09:25 +01:00
Florian Eckert
0ac4d725c5 luci-app-mwan3: refactoring warning compilation on the interface config pages
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18 15:09:20 +01:00
Florian Eckert
119730448d luci-app-mwan3: remove unnecessary table information
- memberconfg view: remove interface table information it is already reflected
  in the interface dropdown
- policyconfig view: remove member table information it is already refelected
  in the member dropdown
- ruleconfig view: remove policy table information it is already reflected
  in the policy dropdown

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18 15:09:15 +01:00
Florian Eckert
72bcd39b9f luci-app-mwan3: unify header in configuration tab
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-18 15:09:08 +01:00
Florian Eckert
e40282cb38 luci-app-mwan3: remove configuration tab
remove configuration tab

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-11 15:11:14 +01:00