Skip to content
Snippets Groups Projects
Select Git revision
  • 06e421edcc39c35aab0b770887970ece9bd3dcc2
  • experimental default protected
  • v2023.2.5-ffs
  • nrb/ex400-remove-wps
  • nrb/airmax-test
  • v2023.2.4-ffs
  • nrb/ar9344-reset-sequence
  • autinerd/experimental-openwrt-24.10
  • v2023.2.3-ffs
  • v2023.2.2-ffs
  • v2023.2-ffs
  • v2023.1-ffs
  • v2022.1.4-ffs
  • feature/addMikrotikwAP
  • v2022.1.3-ffs
  • v2021.1.2-ffs
  • v2022.1.1-ffs
  • master protected
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • experimental-2025-07-04
  • experimental-2025-07-04-base
  • experimental-2025-07-01
  • experimental-2025-07-01-base
  • experimental-2025-06-25
  • experimental-2025-06-25-base
  • experimental-2025-06-24
  • experimental-2025-06-24-base
  • experimental-2025-06-22
  • experimental-2025-06-22-base
  • v2023.2.5-ffs0.1
  • experimental-2025-06-08
  • experimental-2025-06-08-base
  • experimental-2025-06-06
  • experimental-2025-06-06-base
  • experimental-2025-05-27
  • experimental-2025-05-27-base
  • experimental-2025-05-18
  • experimental-2025-05-18-base
  • experimental-2025-05-15
41 results

v2023.1.rst

Blame
  • check_site.lua 990 B
    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 function check_peer(prefix)
    	return function(k, _)
    		assert_uci_name(k)
    
    		local table = string.format('%s[%q].', prefix, k)
    
    		need_string_match(in_domain(table .. 'key'), '^%x+$')
    		need_string_array(in_domain(table .. 'remotes'))
    	end
    end
    
    local function check_group(prefix)
    	return function(k, _)
    		assert_uci_name(k)
    
    		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
    end
    
    need_table('mesh_vpn.fastd.groups', check_group('mesh_vpn.fastd.groups'))