gluon/package/gluon-simple-tc/check_site.lua

11 lines
284 B
Lua
Raw Normal View History

2014-07-16 15:31:40 +00:00
local function check_entry(k, _)
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)