Developing lightweight computation at the DSG edge

Commit ac63b080 authored by Simó Albert i Beltran's avatar Simó Albert i Beltran
Browse files

Import "Add support for new minBandwidth option for bmx6 tunOut" and "Improve...

Import "Add support for new minBandwidth option for bmx6 tunOut" and "Improve regexpr to ignore non relevant tunInNet or tunOut options". References #245.
parents 282e7b2d da605cb9
......@@ -105,6 +105,7 @@ config 'gateway'
option 'maxPrefixLen' '24'
option 'hysteresis' '20'
option 'bonus' '10'
option 'minBandwidth' '10000'
option 'exportDistance' '10'
config 'qmp' 'wireless'
......
......@@ -863,6 +863,7 @@ qmp_add_qmp_bmx6_tunnels()
qmp_translate_configuration qmp $section maxPrefixLen $config $name
qmp_translate_configuration qmp $section hysteresis $config $name
qmp_translate_configuration qmp $section bonus $config $name
qmp_translate_configuration qmp $section minBandwidth $config $name
qmp_translate_configuration qmp $section exportDistance $config $name
fi
......
......@@ -40,8 +40,8 @@ qmp_exists_gateway()
local ignore=0
local exists
args_key_values="$(echo $@ | awk -v RS=' ' 'NR % 2 == 1 && $0 !~ "(ignore|bandwidth)" {a+=1} END {print a}')"
uci_key_values=$(env | grep -v -e "^CONFIG_${config}_\(TYPE\|ignore\|bandwidth\)=" | grep -c "^CONFIG_${config}_")
args_key_values="$(echo $@ | awk -v RS=' ' 'NR % 2 == 1 && $0 !~ "^(ignore|(minB|b)andwidth)$" {a+=1} END {print a}')"
uci_key_values=$(env | grep -v -e "^CONFIG_${config}_\(TYPE\|ignore\|\(minB\|b\)andwidth\)=" | grep -c "^CONFIG_${config}_")
if [ "$args_key_values" != "$uci_key_values" ]
then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment