From: Aaron Goodman Date: Sat, 12 Dec 2020 13:45:53 +0000 (-0500) Subject: mwan3: fix linkdown routes not being added X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=5691ff247f24d6784af8fd2f5b7ed17879dbcc08;p=openwrt-packages.git mwan3: fix linkdown routes not being added Signed-off-by: Aaron Goodman --- diff --git a/net/mwan3/files/lib/mwan3/common.sh b/net/mwan3/files/lib/mwan3/common.sh index 3cb6f1a45..bb55a466c 100644 --- a/net/mwan3/files/lib/mwan3/common.sh +++ b/net/mwan3/files/lib/mwan3/common.sh @@ -129,6 +129,9 @@ mwan3_init() LOG debug "Max interface count is ${MWAN3_INTERFACE_MAX}" fi + # remove "linkdown", expiry and source based routing modifiers from route lines + MWAN3_ROUTE_LINE_EXP="s/linkdown //; s/expires [0-9]\+sec//;s/error [0-9]\+//; ${source_routing:+s/default\(.*\) from [^ ]*/default\1/;} p" + # mark mask constants bitcnt=$(mwan3_count_one_bits MMX_MASK) mmdefault=$(((1<