From c15f716dd154c938c0a12ed046dd3771ee289331 Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 2 May 2021 20:01:59 +0200 Subject: [PATCH] nixos-module/container/bird: fix ospf priority --- nix/nixos-module/container/bird.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nix/nixos-module/container/bird.nix b/nix/nixos-module/container/bird.nix index 4d232fe..61304fb 100644 --- a/nix/nixos-module/container/bird.nix +++ b/nix/nixos-module/container/bird.nix @@ -144,8 +144,6 @@ 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; }; @@ -156,6 +154,9 @@ in # Enable OSPF only on interfaces with a secret. lib.optionalString (config.site.net.${net}.ospf.secret != null) '' interface "${net}" instance ${toString hostConf.ospf.upstreamInstance} { + # Become the designated router + priority 10; + authentication cryptographic; password "${config.site.net.${net}.ospf.secret}"; }; @@ -246,8 +247,6 @@ 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; }; @@ -258,6 +257,9 @@ in # Enable OSPF only on interfaces with a secret. lib.optionalString (config.site.net.${net}.ospf.secret != null) '' interface "${net}" instance ${toString hostConf.ospf.upstreamInstance} { + # Become the designated router + priority 10; + #authentication cryptographic; #password "${config.site.net.${net}.ospf.secret}"; };