Commit graph

132 commits

Author SHA1 Message Date
Florian Eckert
538a8a4829 luci-app-mwan3: cleanup member cbi
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-12-16 15:38:46 +01:00
Florian Eckert
ba4d067c2a luci-app-mwan3: cleanup policy cbi
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-12-16 15:38:41 +01:00
Florian Eckert
e0edd841a8 luci-app-mwan3: fix i18n for recovery and latency
Redmine-patch-id: 5620
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-11-27 10:46:43 +01:00
Florian Eckert
1c482dde3d luci-app-mwan3: update translation for rule famile options
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-11-06 07:36:59 +01:00
Florian Eckert
6400ab382a luci-app-mwan3: remove mwan3 routing table selection
The routing tables available for selection are already used by mwan3.
So remove theme from drop down.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-11-04 15:12:01 +01:00
Florian Eckert
f9843477ea luci-app-mwan3: fix max tracking interface hint
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-11-04 15:12:01 +01:00
Florian Eckert
25f2fbd3f7 luci-app-mwan3: update default value for mmx_mask
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-11-04 15:12:01 +01:00
Florian Eckert
a9dd387655 luci-app-mwan3: remove deprecated rtmon interval in globals config section
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-11-04 15:12:01 +01:00
Florian Eckert
256a336f0e luci-app-mwan3: unify map, section and option variable handling in globalsconfig
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-11-04 15:12:01 +01:00
Florian Eckert
9830683aed luci-app-mwan3: only show port options if proto is tcp or udp
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-11-04 15:12:01 +01:00
Florian Eckert
aabded28c5 luci-app-mwan3: add missing familiy selection for rules
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-11-04 15:12:01 +01:00
Florian Eckert
c4af30db46 luci-app-mwan3: unify map, section and option variable handling in ruleconfig
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-11-04 12:38:36 +01:00
Florian Eckert
678c0b2d5b luci-app-mwan3: check rule name length on create
fixes #13499

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-10-14 10:08:17 +02:00
Florian Eckert
8c19a2e1b8 luci-app-mwan3: check policy name length on create
fixes #13499

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-10-14 10:08:04 +02:00
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
Aaron Goodman
d92b20febd luci-app-mwan3: fix interface grid
Interface grid can become misaligned due to varying number of
lines. Use non-breaking spaces to ensure all interface boxes are three
lines long.

Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
2020-08-17 20:36:38 -04:00
Florian Eckert
9daf129cba luci-app-mwan3: fix diagnostics status page style issues
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-07-08 11:32:34 +02:00
Jo-Philipp Wich
74da73b012 applications: add ACL dependency annotations to legacy controllers
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-19 17:17:26 +02: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
1991b4ae64 luci-app-mwan3: rename ubus values
Update status view because of ubus value rename

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-07-10 09:18:32 +02: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
f9b634f95b luci-app-mwan3: add uptime/downtime to status page
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-12-21 10:33:21 +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
121e7fea66 luci-app-*: use default poll interval
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-12-20 10:20:23 +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
d78be98cc4 luci-app-mwan3: fix typo
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-12 08:45:42 +02:00
Florian Eckert
ea59480e4e luci-app-mwan3: fix i18n traceback
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-10-02 11:47:33 +02: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
1b3f9b1f7e luci-app-mwan3: translate missing text in diagnostic page
Translate missing text.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-08-30 14:44:58 +02:00
Florian Eckert
21de87a1d6 luci-app-mwan3: diagnostic fix physical device lookup
Use diffrent function to get the physical interface name.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-08-30 14:44:58 +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
8d0cccdb43 luci-app-mwan3: add command to diag_command output view
Add executed command to diagnostic output.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-08-30 14:31:29 +02:00
Jo-Philipp Wich
c0de036b31 treewide: always include cbi.js
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-09 11:51:43 +02:00