nixos-module/container/bird: don't redistribute bgp into ospf

This commit is contained in:
Astro 2021-05-05 21:01:23 +02:00
parent bf0a185ed5
commit 20c8821823
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ in
# OSPFv2 for site-local IPv4
protocol ospf v2 ZW4 {
ipv4 {
export where net != 0.0.0.0/0;
export where net != 0.0.0.0/0 && source != RTS_BGP;
};
area 0 {
${builtins.concatStringsSep "\n" (
@ -208,7 +208,7 @@ in
# OSPFv3 for site-local IPv6
protocol ospf v3 ZW6 {
ipv6 {
export where net != ::/0;
export where net != ::/0 && source != RTS_BGP;
};
area 0 {
${builtins.concatStringsSep "\n" (