gluon/package/gluon-mesh-vpn-fastd/check_site.lua

15 lines
409 B
Lua
Raw Normal View History

2014-07-05 00:48:56 +00:00
need_string_array 'fastd_mesh_vpn.methods'
need_number 'fastd_mesh_vpn.mtu'
need_number 'fastd_mesh_vpn.backbone.limit'
local function check_peer(k, _)
local prefix = string.format('fastd_mesh_vpn.backbone.peers[%q].', k)
need_string(prefix .. 'key')
need_string_array(prefix .. 'remotes')
end
need_table('fastd_mesh_vpn.backbone.peers', check_peer)
need_boolean('fastd_mesh_vpn.enabled', false)