Skip to content
Snippets Groups Projects
check_site.lua 990 B
Newer Older
local fastd_methods = {'salsa2012+gmac', 'salsa2012+umac', 'null+salsa2012+gmac', 'null+salsa2012+umac', 'null'}
need_array_of('mesh_vpn.fastd.methods', fastd_methods)
need_boolean(in_site('mesh_vpn.fastd.configurable'), false)
need_one_of(in_site('mesh_vpn.fastd.syslog_level'), {'error', 'warn', 'info', 'verbose', 'debug', 'debug2'}, false)
		local table = string.format('%s[%q].', prefix, k)
		need_string_match(in_domain(table .. 'key'), '^%x+$')
		need_string_array(in_domain(table .. 'remotes'))
		local table = string.format('%s[%q].', prefix, k)
		need_number(table .. 'limit', false)
		need_table(table .. 'peers', check_peer(table .. 'peers'), false)
		need_table(table .. 'groups', check_group(table .. 'groups'), false)
	end
need_table('mesh_vpn.fastd.groups', check_group('mesh_vpn.fastd.groups'))