This commit is contained in:
Christof Schulze 2016-05-01 23:44:29 +00:00
commit b98943d21c

View File

@ -0,0 +1,25 @@
#!/usr/bin/lua
local site = require 'gluon.site_config'
local gmesh = require 'gluon.mesh'
--local interfaces='/lib/gluon/core/mesh_interfaces'
local babelconf=arg[1]
file = io.open(babelconf, "w")
file:write("ipv6-subtrees true\n")
file:write("export-table 10\n")
file:write("import-table 255\n")
file:write("import-table 11\n")
for interface, _ in pairs(gmesh.interfaces()) do
file:write("interface " .. interface .. "\n")
end
file:write(" redistribute ip " .. site.prefix6 .. " eq 128 allow\n")
file:write(" redistribute ip " .. site.babel_mesh.prefix .. " eq 128 allow\n")
file:write(" redistribute local deny\n")
file:write(" redistribute ip ::/0 eq 0 allow\n")
file:close()