Commit 3464d5df authored by nanahira's avatar nanahira

fix subnet

parent 37e529d9
......@@ -3,8 +3,8 @@
debug 1
# router-id 00:00:00:00:00:00:00:03
redistribute local ip 10.198.0.0/24
{% for interface in lanInterfaces %}
redistribute if {{interface}}
{% for subnet in localSubnets %}
redistribute local ip {{subnet}}
{% endfor %}
redistribute local deny
reflect-kernel-metric true
......
......@@ -171,6 +171,7 @@ class InventoryBuilder {
host.frpsNeeded = false;
const null_connection = '10000,null';
const lanInterfaces = host.lanInterfaces;
const localSubnets = host.subnets;
const masqInterfaces = host.masqInterfaces.length > 0 ? host.masqInterfaces.split(',') : [];
const routePlans = [];
......@@ -219,6 +220,7 @@ class InventoryBuilder {
gateways: _.values(this.gateways[host.name]),
connections,
lanInterfaces,
localSubnets,
masqInterfaces,
dockerServices: host.dockerServices,
routePlans,
......
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