map-agent: add missing uci validation and new cfg option to default

This commit is contained in:
Jakob Olsson 2022-06-14 15:12:53 +02:00
parent f8a0d6e54b
commit 8e1fc7dcb0
2 changed files with 3 additions and 0 deletions

View file

@ -10,6 +10,7 @@ config agent 'agent'
config dynamic_backhaul
option missing_bh_timer '60'
option missing_bh_reconfig_timer '1800'
config controller_select
option id 'auto'

View file

@ -187,6 +187,8 @@ validate_dyn_bh_section() {
uci_validate_section mapagent $section "${1}" \
'missing_bh_timer:range(1,255)'
uci_validate_section mapagent $section "${1}" \
'missing_bh_reconfig_timer:range(0,65535)'
[ "$?" -ne 0 ] && {
logger -s -t "mapagent" "Validation of dynamic backhaul section failed"