Developing lightweight computation at the DSG edge

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

Add support for new minBandwidth option for bmx6 tunOut. Closes #245.

parent cb2d654c
......@@ -106,6 +106,7 @@ config 'gateway'
option 'maxPrefixLen' '24'
option 'hysteresis' '20'
option 'bonus' '10'
option 'minBandwidth' '10000'
option 'exportDistance' '10'
config 'qmp' 'wireless'
......
......@@ -860,6 +860,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