nixos-module/container/bird: become designated router for ospf instances when adveritising upstream
This commit is contained in:
parent
df5fee8f69
commit
f99d05c42d
|
@ -144,6 +144,8 @@ in
|
||||||
${lib.optionalString isUpstream ''
|
${lib.optionalString isUpstream ''
|
||||||
# OSPFv2 to advertise my default route
|
# OSPFv2 to advertise my default route
|
||||||
protocol ospf v2 ZW4_${hostName} {
|
protocol ospf v2 ZW4_${hostName} {
|
||||||
|
# Become the designated router
|
||||||
|
priority 10;
|
||||||
ipv4 {
|
ipv4 {
|
||||||
export where net = 0.0.0.0/0;
|
export where net = 0.0.0.0/0;
|
||||||
};
|
};
|
||||||
|
@ -244,6 +246,8 @@ in
|
||||||
${lib.optionalString isUpstream ''
|
${lib.optionalString isUpstream ''
|
||||||
# OSPFv3 to advertise my default route
|
# OSPFv3 to advertise my default route
|
||||||
protocol ospf v3 ZW6_${hostName} {
|
protocol ospf v3 ZW6_${hostName} {
|
||||||
|
# Become the designated router
|
||||||
|
priority 10;
|
||||||
ipv6 {
|
ipv6 {
|
||||||
export where net = ::/0;
|
export where net = ::/0;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue