Permalink
Browse files

Merge pull request #47252 from xeji/p/fix-47210

nixos/network-interfaces-scripted: fix a container networking bug
  • Loading branch information...
xeji committed Oct 11, 2018
2 parents e3d9799 + 2742063 commit e7f67f97f2cbf6151ef7d803260c26dd58988723
Showing with 2 additions and 1 deletion.
  1. +2 −1 nixos/modules/tasks/network-interfaces-scripted.nix
@@ -85,7 +85,8 @@ let
after = [ "network-pre.target" "systemd-udevd.service" "systemd-sysctl.service" ];
before = [ "network.target" "shutdown.target" ];
wants = [ "network.target" ];
partOf = map (i: "network-addresses-${i.name}.service") interfaces;
# exclude bridges from the partOf relationship to fix container networking bug #47210
partOf = map (i: "network-addresses-${i.name}.service") (filter (i: !(hasAttr i.name cfg.bridges)) interfaces);
conflicts = [ "shutdown.target" ];
wantedBy = [ "multi-user.target" ] ++ optional hasDefaultGatewaySet "network-online.target";

0 comments on commit e7f67f9

Please sign in to comment.