2014-07-16 15:31:40 +00:00
|
|
|
local function check_entry(k, _)
|
2015-10-11 17:31:44 +00:00
|
|
|
assert_uci_name(k)
|
|
|
|
|
2014-07-16 15:31:40 +00:00
|
|
|
local prefix = string.format('simple_tc[%q].', k)
|
|
|
|
|
|
|
|
need_string(prefix .. 'ifname')
|
|
|
|
need_boolean(prefix .. 'enabled')
|
|
|
|
need_number(prefix .. 'limit_egress')
|
|
|
|
need_number(prefix .. 'limit_ingress')
|
|
|
|
end
|
|
|
|
|
|
|
|
need_table('simple_tc', check_entry)
|