gluon/package/gluon-next-node-batman-adv/check_site.lua
Nils Schneider e980593ff4 gluon-next-node: split batman-adv dependent code
ebtables and firewall rules have been moved to
gluon-mesh-batman-adv-core. They'll only be active when site.next_node
is set. gluon-next-node is still required in that case.

When gluon-mesh-batman-adv-core is selected, this package has a dependency
2016-03-31 00:11:12 +02:00

5 lines
185 B
Lua

need_string_match('next_node.ip4', '^%d+.%d+.%d+.%d+$')
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$')