3
0
Fork 0
forked from mirrors/nixpkgs

nixos/networkd: Fix macvlan called with null mode

This commit is contained in:
William A. Kennington III 2014-11-30 01:19:33 -08:00
parent 16827ff287
commit a911f9989c

View file

@ -124,7 +124,7 @@ in
Name = name;
Kind = "macvlan";
};
macvlanConfig.Mode = macvlan.mode;
macvlanConfig = optionalAttrs (macvlan.mode != null) { Mode = macvlan.mode; };
};
networks."40-${macvlan.interface}" = (mkMerge [ (genericNetwork (mkOverride 999)) {
macvlan = [ name ];