gluon/package/gluon-mesh-batman-adv/check_site.lua
lemoer d571f6054b check_site: introduce in_site_or_domain() stub
This does not change any behaviour. It's just a preparatory step to
make things more clear in the following commits.
2021-08-15 16:38:59 +02:00

6 lines
312 B
Lua

-- mesh/vxlan is required in single domain setups (this_domain() is nil)
need_boolean(in_domain({'mesh', 'vxlan'}), not this_domain())
need_number(in_site_or_domain({'mesh', 'batman_adv', 'gw_sel_class'}), false)
need_one_of(in_site_or_domain({'mesh', 'batman_adv', 'routing_algo'}), {'BATMAN_IV', 'BATMAN_V'})