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}"; };