1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add multipath settings in openmptcprouter section

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-08-27 22:24:45 +02:00
parent d1446250e9
commit cb8147a7e5
5 changed files with 45 additions and 12 deletions

View file

@ -20,8 +20,11 @@ interface_multipath_settings() {
local mode port
local config="$1"
id=$(($id+1))
config_get mode "$config" multipath "off"
[ "$mode" = "off" ] && return 1
config_get mode "$config" multipath ""
[ "$mode" = "" ] && {
mode="$(uci -q get openmptcprouter.$config.multipath)"
}
[ "$mode" = "off" ] || [ "$mode" = "" ] && return 1
config_get ifname "$config" ifname
[ -z "$ifname" ] && ifname=$(ifstatus "$config" | jsonfilter -q -e '@["l3_device"]')
[ -z "$ifname" ] && return 1