Skip to content
Snippets Groups Projects
Unverified Commit a4b078d6 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-mesh-layer3-common: remove deprecated node_client_prefix6 from site

This should have been removed with Babel; it was only left as deprecated
to avoid breaking compatibility with existing Babel meshes. Drop support
for overriding the prefix and always generate it from the domain seed.
parent 373e2b8e
No related branches found
No related tags found
No related merge requests found
...@@ -49,17 +49,6 @@ node_prefix6 ...@@ -49,17 +49,6 @@ node_prefix6
node_prefix6 = 'fdca::ffee:babe:2::/64' node_prefix6 = 'fdca::ffee:babe:2::/64'
node_client_prefix6 \: optional, deprecated
DEPRECATED: Don't specify it anymore, this prefix will then
automatically be generated from the domain_seed.
An IPv6 prefix internally used by the l3roamd protocol, used to allow
an efficient handover via unicast when a client roamed.
This is exclusively useful when running a routing mesh protocol
like olsr. e.g. ::
node_client_prefix6 = 'fdca::ffee:babe:3::/64'
timezone timezone
The timezone of your community live in, e.g. :: The timezone of your community live in, e.g. ::
......
need_string_match(in_domain({'node_prefix6'}), '^[%x:]+/64$') need_string_match(in_domain({'node_prefix6'}), '^[%x:]+/64$')
need_string_match(in_domain({'node_client_prefix6'}), '^[%x:]+/64$', false)
local site = require("gluon.site")
local util = require("gluon.util") local util = require("gluon.util")
local M = {} local M = {}
...@@ -7,14 +6,8 @@ local M = {} ...@@ -7,14 +6,8 @@ local M = {}
-- for l3roamd -P <node-client-prefix> -- for l3roamd -P <node-client-prefix>
function M.node_client_prefix6() function M.node_client_prefix6()
local key = "gluon-l3roamd.node_client_prefix6" local key = "gluon-l3roamd.node_client_prefix6"
local prefix = site.node_client_prefix6()
if not prefix then
local prefix_seed = util.domain_seed_bytes(key, 7) local prefix_seed = util.domain_seed_bytes(key, 7)
prefix = ("fd" .. prefix_seed):gsub(("(%x%x%x%x)"):rep(4), "%1:%2:%3:%4" .. "::/64") return ("fd" .. prefix_seed):gsub(("(%x%x%x%x)"):rep(4), "%1:%2:%3:%4" .. "::/64")
end
return prefix
end end
return M return M
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment