b902ddd8df
If next_node.ip4 is not set or gluon-next-node is not used, prefix4 will now be optional as well.
8 lines
260 B
Lua
8 lines
260 B
Lua
if need_string_match('next_node.ip4', '^%d+.%d+.%d+.%d+$', false) then
|
|
need_string_match('prefix4', '^%d+.%d+.%d+.%d+/%d+$')
|
|
end
|
|
|
|
need_string_match('next_node.ip6', '^[%x:]+$')
|
|
|
|
need_string_match('next_node.mac', '^%x[02468aAcCeE]:%x%x:%x%x:%x%x:%x%x:%x%x$')
|