gluon/package/gluon-mesh-babel/check_site.lua

9 lines
372 B
Lua
Raw Permalink Normal View History

2018-05-16 14:58:24 +00:00
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)