nixos-module/container/bird: revert to somewhat larger ospf intervals
This commit is contained in:
parent
f7dabd8e2d
commit
19674ea461
|
@ -121,8 +121,8 @@ in
|
||||||
if config.site.net ? "${net}" && config.site.net.${net}.ospf.secret != null
|
if config.site.net ? "${net}" && config.site.net.${net}.ospf.secret != null
|
||||||
then ''
|
then ''
|
||||||
interface "${net}" {
|
interface "${net}" {
|
||||||
hello 2;
|
hello 10;
|
||||||
wait 5;
|
wait 20;
|
||||||
|
|
||||||
authentication cryptographic;
|
authentication cryptographic;
|
||||||
password "${config.site.net.${net}.ospf.secret}";
|
password "${config.site.net.${net}.ospf.secret}";
|
||||||
|
@ -161,6 +161,8 @@ in
|
||||||
interface "${net}" instance ${toString hostConf.ospf.upstreamInstance} {
|
interface "${net}" instance ${toString hostConf.ospf.upstreamInstance} {
|
||||||
# Become the designated router
|
# Become the designated router
|
||||||
priority 10;
|
priority 10;
|
||||||
|
hello 10;
|
||||||
|
wait 20;
|
||||||
|
|
||||||
authentication cryptographic;
|
authentication cryptographic;
|
||||||
password "${config.site.net.${net}.ospf.secret}";
|
password "${config.site.net.${net}.ospf.secret}";
|
||||||
|
@ -196,6 +198,8 @@ in
|
||||||
# Enable OSPF only on interfaces with a secret.
|
# Enable OSPF only on interfaces with a secret.
|
||||||
lib.optionalString (config.site.net.${net}.ospf.secret != null) ''
|
lib.optionalString (config.site.net.${net}.ospf.secret != null) ''
|
||||||
interface "${net}" instance ${toString config.site.hosts.${upstream}.ospf.upstreamInstance} {
|
interface "${net}" instance ${toString config.site.hosts.${upstream}.ospf.upstreamInstance} {
|
||||||
|
hello 10;
|
||||||
|
wait 20;
|
||||||
authentication cryptographic;
|
authentication cryptographic;
|
||||||
password "${config.site.net.${net}.ospf.secret}";
|
password "${config.site.net.${net}.ospf.secret}";
|
||||||
};
|
};
|
||||||
|
@ -225,8 +229,8 @@ in
|
||||||
if config.site.net.${net}.ospf.secret != null
|
if config.site.net.${net}.ospf.secret != null
|
||||||
then ''
|
then ''
|
||||||
interface "${net}" {
|
interface "${net}" {
|
||||||
hello 2;
|
hello 10;
|
||||||
wait 5;
|
wait 20;
|
||||||
|
|
||||||
authentication cryptographic;
|
authentication cryptographic;
|
||||||
password "${config.site.net.${net}.ospf.secret}";
|
password "${config.site.net.${net}.ospf.secret}";
|
||||||
|
@ -266,6 +270,8 @@ in
|
||||||
interface "${net}" instance ${toString hostConf.ospf.upstreamInstance} {
|
interface "${net}" instance ${toString hostConf.ospf.upstreamInstance} {
|
||||||
# Become the designated router
|
# Become the designated router
|
||||||
priority 10;
|
priority 10;
|
||||||
|
hello 10;
|
||||||
|
wait 20;
|
||||||
|
|
||||||
authentication cryptographic;
|
authentication cryptographic;
|
||||||
password "${config.site.net.${net}.ospf.secret}";
|
password "${config.site.net.${net}.ospf.secret}";
|
||||||
|
@ -298,6 +304,8 @@ in
|
||||||
# Enable OSPF only on interfaces with a secret.
|
# Enable OSPF only on interfaces with a secret.
|
||||||
lib.optionalString (config.site.net.${net}.ospf.secret != null) ''
|
lib.optionalString (config.site.net.${net}.ospf.secret != null) ''
|
||||||
interface "${net}" instance ${toString config.site.hosts.${upstream}.ospf.upstreamInstance} {
|
interface "${net}" instance ${toString config.site.hosts.${upstream}.ospf.upstreamInstance} {
|
||||||
|
hello 10;
|
||||||
|
wait 20;
|
||||||
authentication cryptographic;
|
authentication cryptographic;
|
||||||
password "${config.site.net.${net}.ospf.secret}";
|
password "${config.site.net.${net}.ospf.secret}";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue