2018-01-19 09:12:43 +00:00
|
|
|
need_string_match(in_domain({'next_node', 'mac'}), '^%x[02468aAcCeE]:%x%x:%x%x:%x%x:%x%x:%x%x$', false)
|
2016-11-30 19:29:25 +00:00
|
|
|
|
2018-01-19 09:12:43 +00:00
|
|
|
if need_string_match(in_domain({'next_node', 'ip4'}), '^%d+.%d+.%d+.%d+$', false) then
|
|
|
|
need_string_match(in_domain({'prefix4'}), '^%d+.%d+.%d+.%d+/%d+$')
|
2016-11-30 19:29:25 +00:00
|
|
|
end
|
|
|
|
|
2018-01-19 09:12:43 +00:00
|
|
|
need_string_match(in_domain({'next_node', 'ip6'}), '^[%x:]+$', false)
|
2016-11-30 19:29:25 +00:00
|
|
|
|
|
|
|
|
2015-08-17 22:53:40 +00:00
|
|
|
for _, config in ipairs({'wifi24', 'wifi5'}) do
|
2018-03-01 00:18:39 +00:00
|
|
|
if need_table({config, 'ap'}, nil, false) then
|
2018-01-19 09:12:43 +00:00
|
|
|
need_string(in_domain({config, 'ap', 'ssid'}))
|
|
|
|
need_boolean({config, 'ap', 'disabled'}, false)
|
2017-06-26 20:45:42 +00:00
|
|
|
end
|
2015-08-17 22:53:40 +00:00
|
|
|
end
|