check_site.lua 307 B

123456789101112
  1. local function check_entry(k, _)
  2. assert_uci_name(k)
  3. local prefix = string.format('simple_tc[%q].', k)
  4. need_string(prefix .. 'ifname')
  5. need_boolean(prefix .. 'enabled')
  6. need_number(prefix .. 'limit_egress')
  7. need_number(prefix .. 'limit_ingress')
  8. end
  9. need_table('simple_tc', check_entry)