From 20c8821823d10e47ea6dc438bcf80852364ebd93 Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 5 May 2021 21:01:23 +0200 Subject: [PATCH] nixos-module/container/bird: don't redistribute bgp into ospf --- nix/nixos-module/container/bird.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/nixos-module/container/bird.nix b/nix/nixos-module/container/bird.nix index 93d7c04..f618924 100644 --- a/nix/nixos-module/container/bird.nix +++ b/nix/nixos-module/container/bird.nix @@ -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" (