Commit a6e27ced authored by Gio's avatar Gio

lime-proto-bgp: added automatic lan subnet announcement

parent cecfe5a3
......@@ -46,6 +46,17 @@ protocol bgp {
base_template = base_template .. utils.expandVars(peer_template, peer)
end
for _,proto in pairs(config.get("network", "protocols")) do
if proto == "lan" then
base_template = base_template .. [[
protocol direct {
interface "br-lan";
}
]]
break
end
end
fs.writefile("/etc/bird4.conf", utils.expandVars(base_template, ipv4:host():string()))
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment