nixos/network: Only check slave interfaces which are configured

This commit is contained in:
William A. Kennington III 2014-11-30 05:12:49 -08:00
parent 01332149d4
commit 47d3db5c30

View File

@ -14,7 +14,7 @@ let
slaves = concatMap (i: i.interfaces) (attrValues cfg.bonds)
++ concatMap (i: i.interfaces) (attrValues cfg.bridges);
slaveIfs = map (i: cfg.interfaces.${i}) slaves;
slaveIfs = map (i: cfg.interfaces.${i}) (filter (i: cfg.interfaces ? i) slaves);
# We must escape interfaces due to the systemd interpretation
subsystemDevice = interface: