check_site.lua 284 B

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