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:
parent
d1446250e9
commit
cb8147a7e5
5 changed files with 45 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue