Bump version to 20221128; Install default into OSPF; Refactor bird file structure
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
## Bird2 configuration for {{ node.hostname }}
|
||||
router id {{ node.loopback.ipv4.split("/")[0] }};
|
||||
|
||||
protocol device { scan time 30; }
|
||||
@ -13,7 +14,8 @@ protocol kernel kernel6 {
|
||||
scan time 300;
|
||||
}
|
||||
|
||||
include "static.conf";
|
||||
include "bfd.conf";
|
||||
include "ospf.conf";
|
||||
include "ibgp.conf";
|
||||
include "core/static.conf";
|
||||
include "core/bfd.conf";
|
||||
include "core/ospf.conf";
|
||||
include "manual.conf";
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
protocol ospf v2 ospf4 {
|
||||
ipv4 { export where source = RTS_DEVICE; import all; };
|
||||
ipv4 { export where (source = RTS_DEVICE || source = RTS_STATIC); import all; };
|
||||
area 0 {
|
||||
interface "loop0" { stub yes; };
|
||||
interface "e0" { type pointopoint; cost 5; bfd off; };
|
||||
@ -10,7 +10,7 @@ protocol ospf v2 ospf4 {
|
||||
}
|
||||
|
||||
protocol ospf v3 ospf6 {
|
||||
ipv6 { export where source = RTS_DEVICE; import all; };
|
||||
ipv6 { export where (source = RTS_DEVICE || source = RTS_STATIC); import all; };
|
||||
area 0 {
|
||||
interface "loop0" { stub yes; };
|
||||
interface "e0" { type pointopoint; cost 5; bfd off; };
|
@ -2,10 +2,19 @@ protocol static static4 {
|
||||
ipv4 { export all; };
|
||||
# route 192.0.2.0/24 via 10.0.0.1;
|
||||
route {{lab.ipv4}} unreachable;
|
||||
|
||||
{% if node.id == 0 %}
|
||||
route 0.0.0.0/0 via 192.168.{{10+lab.id}}.4;
|
||||
{% endif %}
|
||||
}
|
||||
|
||||
protocol static static6 {
|
||||
ipv6 { export all; };
|
||||
# route 2001:db8:cafe::/48 via 2001:db8::1;;
|
||||
route {{lab.ipv6}} unreachable;
|
||||
|
||||
{% if node.id == 0 %}
|
||||
route ::/0 via 2001:678:d78:2{{lab.id}}1::ffff;
|
||||
{% endif %}
|
||||
}
|
||||
|
@ -1 +0,0 @@
|
||||
# NOTE(ipng): Not created yet
|
1
overlays/bird/common/etc/bird/manual.conf.j2
Normal file
1
overlays/bird/common/etc/bird/manual.conf.j2
Normal file
@ -0,0 +1 @@
|
||||
## Manual configuration for {{ node.hostname }}
|
Reference in New Issue
Block a user