nixos-module/container/bird: fix import ipv6 routes from kernel
This commit is contained in:
parent
d3f1e4c778
commit
ead4199b3f
|
@ -72,15 +72,12 @@ 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
|
# Learn route of local network ${net}
|
||||||
) ''
|
accept;
|
||||||
if net ~ [ ${config.site.net.${net}.subnet4} ] then {
|
}
|
||||||
# Learn route of local network ${net}
|
'') (builtins.attrNames hostConf.interfaces)}
|
||||||
accept;
|
|
||||||
}
|
|
||||||
'') (builtins.attrNames hostConf.interfaces)}
|
|
||||||
reject;
|
reject;
|
||||||
};
|
};
|
||||||
''}
|
''}
|
||||||
|
|
Loading…
Reference in New Issue