nixos/network: Only check slave interfaces which are configured
This commit is contained in:
parent
01332149d4
commit
47d3db5c30
@ -14,7 +14,7 @@ let
|
|||||||
slaves = concatMap (i: i.interfaces) (attrValues cfg.bonds)
|
slaves = concatMap (i: i.interfaces) (attrValues cfg.bonds)
|
||||||
++ concatMap (i: i.interfaces) (attrValues cfg.bridges);
|
++ 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
|
# We must escape interfaces due to the systemd interpretation
|
||||||
subsystemDevice = interface:
|
subsystemDevice = interface:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user