b3a9221b07
The site.node_client_prefix6() is only used internally by the l3roamd protocol. Therefore it is unnecessary to expose it to an administrator. Instead, if node_client_prefix6 is unspecified in the site, generate an IPv6 Unique Local Address prefix from the site domain_seed. This updates the site documentation as well and marks this setting as both optional and deprecated. Note: If you had the node_client_prefix6 specified before and want to use the new autogeneration from the domain_seed instead then this will break compatibility and will need a gluon-scheduled-domain switch. Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
9 lines
372 B
Lua
9 lines
372 B
Lua
need_string_match(in_domain({'node_prefix6'}), '^[%x:]+/64$')
|
|
|
|
need_string_match(in_domain({'next_node', 'ip6'}), '^[%x:]+$', false)
|
|
need_string_match(in_domain({'next_node', 'ip4'}), '^%d+.%d+.%d+.%d+$', false)
|
|
|
|
need_string_match(in_domain({'next_node', 'mac'}), '^%x[02468aAcCeE]:%x%x:%x%x:%x%x:%x%x:%x%x$', false)
|
|
|
|
need_value(in_domain({'mesh', 'vxlan'}), true, false)
|