Commit 3ce036e7 authored by nanahira's avatar nanahira

format

parent 2e919a0b
......@@ -4,44 +4,44 @@ router id {{address}};
protocol device {
}
protocol direct {
disabled;
ipv4;
ipv6;
disabled;
ipv4;
ipv6;
}
protocol direct {
ipv4 {
import all;
};
ipv6;
ipv4 {
import all;
};
ipv6;
}
protocol kernel {
ipv4 {
export all;
};
kernel table 300;
ipv4 {
export all;
};
kernel table 300;
}
protocol kernel {
ipv6 { export all; };
ipv6 { export all; };
}
{% for connection in connections %}
{% if connection.protocol != "null" and connection.remoteLocalAddress != address %}
ipv4 table {{connection.name.replace("-", "_")}};
protocol static {
ipv4 {
table {{connection.name.replace("-", "_")}};
};
igp table master4;
route 0.0.0.0/0 recursive {{connection.remoteLocalAddress}};
ipv4 {
table {{connection.name.replace("-", "_")}};
};
igp table master4;
route 0.0.0.0/0 recursive {{connection.remoteLocalAddress}};
}
protocol kernel {
ipv4 {
table {{connection.name.replace("-", "_")}};
export all;
};
kernel table {{connection.remoteMark}};
ipv4 {
table {{connection.name.replace("-", "_")}};
export all;
};
kernel table {{connection.remoteMark}};
}
{% endif %}
{% endfor %}
......@@ -51,31 +51,31 @@ protocol kernel {
ipv4 table {{plan.name}};
{% for net in plan.list %}
protocol static {
ipv4 {
table {{plan.name}};
};
igp table master4;
route {{net}} recursive {{plan.gatewayAddress}};
ipv4 {
table {{plan.name}};
};
igp table master4;
route {{net}} recursive {{plan.gatewayAddress}};
}
{% endfor %}
protocol kernel {
ipv4 {
table {{plan.name}};
export all;
};
kernel table {{plan.table}};
ipv4 {
table {{plan.name}};
export all;
};
kernel table {{plan.table}};
}
{% endfor %}
protocol ospf v2 {
ipv4 {
import all;
export where source ~ [ RTS_DEVICE, RTS_STATIC ];
};
area 0 {
networks {
10.0.0.0/8;
};
ipv4 {
import all;
export where source ~ [ RTS_DEVICE, RTS_STATIC ];
};
area 0 {
networks {
10.0.0.0/8;
};
# interface "eth*" {
# type broadcast; # Detected by default
# cost 10; # Interface metric
......@@ -83,28 +83,28 @@ protocol ospf v2 {
# };
{% for connection in connections %}
{% if connection.protocol != "null" and connection.remoteLocalAddress != address %}
interface "{{connection.name}}" {
type ptp;
interface "{{connection.name}}" {
type ptp;
{% if connection.outbound %}
cost {{connection.metric}};
cost {{connection.metric}};
{% else %}
cost 50000;
cost 50000;
{% endif %}
hello 5;
};
hello 5;
};
{% endif %}
{% endfor %}
{% for interface in lan_interfaces %}
interface "{{interface}}" {
type broadcast;
cost 1;
hello 5;
};
interface "{{interface}}" {
type broadcast;
cost 1;
hello 5;
};
{% endfor %}
interface "dummy0" {
stub; # Stub interface, just propagate it
};
};
interface "dummy0" {
stub; # Stub interface, just propagate it
};
};
}
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