nixos-module/container/bird: fix import ipv6 routes from kernel
This commit is contained in:
parent
d3f1e4c778
commit
ead4199b3f
|
@ -72,11 +72,8 @@ in
|
||||||
else ''
|
else ''
|
||||||
export all;
|
export all;
|
||||||
import filter {
|
import filter {
|
||||||
${lib.concatMapStrings (net:
|
${lib.concatMapStrings (net: ''
|
||||||
lib.optionalString (
|
if net ~ [ ${lib.concatStringsSep " " (builtins.attrValues config.site.net.${net}.subnets6)} ] then {
|
||||||
config.site.net.${net}.subnet4 or null != null
|
|
||||||
) ''
|
|
||||||
if net ~ [ ${config.site.net.${net}.subnet4} ] then {
|
|
||||||
# Learn route of local network ${net}
|
# Learn route of local network ${net}
|
||||||
accept;
|
accept;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue