git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/networkd: Add an assertion for unsupported rstp
commite453f994463c8a0c3da80434cadc2bcf9034789b authorWilliam A. Kennington III <william@wkennington.com> dateTue 24 Feb 2015, 13:09 (12 years ago) parentd378324
1 file changed+4−1
nixos/modules/tasks/network-interfaces-systemd.nix+4−1
nixos/modules/tasks/network-interfaces-systemd.nix+4−1
@@ -35,7 +35,10 @@ in
3535 assertions = [ {
3636 assertion = cfg.defaultGatewayWindowSize == null;
3737 message = "networking.defaultGatewayWindowSize is not supported by networkd.";
38− } ];
38+ } ] ++ flip mapAttrsToList cfg.bridges (n: { rstp, ... }: {
39+ assertion = !rstp;
40+ message = "networking.bridges.${n}.rstp is not supported by networkd.";
41+ });
3942
4043 systemd.services.dhcpcd.enable = mkDefault false;
4144