From bab496141b9476661b5efedd4c76a2fb9f2f1b5b Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 1 Nov 2022 00:03:17 +0100 Subject: [PATCH] nixos-module/container/bird: don't learn direct routes now that ospf has stub ifaces --- nix/nixos-module/container/bird.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/nix/nixos-module/container/bird.nix b/nix/nixos-module/container/bird.nix index acac414..7aef544 100644 --- a/nix/nixos-module/container/bird.nix +++ b/nix/nixos-module/container/bird.nix @@ -74,13 +74,10 @@ in then '' # No RFC1918, RFC6598 import where net !~ [ 100.64.0.0/10 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 ]; - '' else '' - import all; - ''} - }; - ipv6 { - import all; + '' + else ""} }; + ipv6; interface ${lib.concatMapStringsSep ", " (iface: ''"${iface}"'' )(builtins.attrNames hostConf.interfaces)};