network-interfaces-scripted service: delay setup if IPv6 is disabled

Even if IPv6 gateway is set, there's no need to set it early if IPv6 is disabled.
This commit is contained in:
Nikolay Amiantov 2018-02-19 23:30:49 +03:00
parent 5ff25fcd7e
commit d77984f571

View file

@ -80,7 +80,7 @@ let
else optional (dev != null && dev != "lo" && !config.boot.isContainer) (subsystemDevice dev);
hasDefaultGatewaySet = (cfg.defaultGateway != null && cfg.defaultGateway.address != "")
|| (cfg.defaultGateway6 != null && cfg.defaultGateway6.address != "");
|| (cfg.enableIPv6 && cfg.defaultGateway6 != null && cfg.defaultGateway6.address != "");
networkLocalCommands = {
after = [ "network-setup.service" ];