From 19674ea461d0081e344b28d674e651bce9ce7304 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 18 Nov 2021 17:10:36 +0100 Subject: [PATCH] nixos-module/container/bird: revert to somewhat larger ospf intervals --- nix/nixos-module/container/bird.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/nix/nixos-module/container/bird.nix b/nix/nixos-module/container/bird.nix index 4341002..7301883 100644 --- a/nix/nixos-module/container/bird.nix +++ b/nix/nixos-module/container/bird.nix @@ -121,8 +121,8 @@ in if config.site.net ? "${net}" && config.site.net.${net}.ospf.secret != null then '' interface "${net}" { - hello 2; - wait 5; + hello 10; + wait 20; authentication cryptographic; password "${config.site.net.${net}.ospf.secret}"; @@ -161,6 +161,8 @@ in interface "${net}" instance ${toString hostConf.ospf.upstreamInstance} { # Become the designated router priority 10; + hello 10; + wait 20; authentication cryptographic; password "${config.site.net.${net}.ospf.secret}"; @@ -196,6 +198,8 @@ in # Enable OSPF only on interfaces with a secret. lib.optionalString (config.site.net.${net}.ospf.secret != null) '' interface "${net}" instance ${toString config.site.hosts.${upstream}.ospf.upstreamInstance} { + hello 10; + wait 20; authentication cryptographic; password "${config.site.net.${net}.ospf.secret}"; }; @@ -225,8 +229,8 @@ in if config.site.net.${net}.ospf.secret != null then '' interface "${net}" { - hello 2; - wait 5; + hello 10; + wait 20; authentication cryptographic; password "${config.site.net.${net}.ospf.secret}"; @@ -266,6 +270,8 @@ in interface "${net}" instance ${toString hostConf.ospf.upstreamInstance} { # Become the designated router priority 10; + hello 10; + wait 20; authentication cryptographic; password "${config.site.net.${net}.ospf.secret}"; @@ -298,6 +304,8 @@ in # Enable OSPF only on interfaces with a secret. lib.optionalString (config.site.net.${net}.ospf.secret != null) '' interface "${net}" instance ${toString config.site.hosts.${upstream}.ospf.upstreamInstance} { + hello 10; + wait 20; authentication cryptographic; password "${config.site.net.${net}.ospf.secret}"; };