check_site.lua 936 B

12345678910111213141516171819202122232425262728
  1. need_string('regdom')
  2. for _, config in ipairs({'wifi24', 'wifi5'}) do
  3. need_number(config .. '.channel')
  4. need_string(config .. '.htmode')
  5. if need_table(config .. '.ap', nil, false) then
  6. need_string(config .. '.ap.ssid')
  7. need_boolean(config .. '.ap.disabled', false)
  8. end
  9. if need_table(config .. '.ibss', nil, false) then
  10. need_string(config .. '.ibss.ssid')
  11. need_string_match(config .. '.ibss.bssid', '^%x[02468aAcCeE]:%x%x:%x%x:%x%x:%x%x:%x%x$')
  12. need_number(config .. '.ibss.mcast_rate', false)
  13. need_number(config .. '.ibss.vlan', false)
  14. need_boolean(config .. '.ibss.disabled', false)
  15. end
  16. if need_table(config .. '.mesh', nil, false) then
  17. need_string(config .. '.mesh.id')
  18. need_number(config .. '.mesh.mcast_rate', false)
  19. need_boolean(config .. '.mesh.disabled', false)
  20. end
  21. end
  22. need_boolean('mesh_on_wan', false)
  23. need_boolean('mesh_on_lan', false)