nixos-module/container/bird: become designated router for ospf instances when adveritising upstream

This commit is contained in:
Astro 2021-05-02 19:52:00 +02:00
parent df5fee8f69
commit f99d05c42d
1 changed files with 4 additions and 0 deletions

View File

@ -144,6 +144,8 @@ in
${lib.optionalString isUpstream ''
# OSPFv2 to advertise my default route
protocol ospf v2 ZW4_${hostName} {
# Become the designated router
priority 10;
ipv4 {
export where net = 0.0.0.0/0;
};
@ -244,6 +246,8 @@ in
${lib.optionalString isUpstream ''
# OSPFv3 to advertise my default route
protocol ospf v3 ZW6_${hostName} {
# Become the designated router
priority 10;
ipv6 {
export where net = ::/0;
};