forked from zentralwerk/network
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 ''
|
||||
export all;
|
||||
import filter {
|
||||
${lib.concatMapStrings (net:
|
||||
lib.optionalString (
|
||||
config.site.net.${net}.subnet4 or null != null
|
||||
) ''
|
||||
if net ~ [ ${config.site.net.${net}.subnet4} ] then {
|
||||
${lib.concatMapStrings (net: ''
|
||||
if net ~ [ ${lib.concatStringsSep " " (builtins.attrValues config.site.net.${net}.subnets6)} ] then {
|
||||
# Learn route of local network ${net}
|
||||
accept;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user