Skip to content

Commit

Permalink
Merge pull request #53871 from elseym/fix-container-extraveths
Browse files Browse the repository at this point in the history
nixos/containers: explicitly set link up on host for extraVeths
  • Loading branch information
fpletz committed Jan 14, 2019
2 parents d79e351 + 8a8bf88 commit ca06398
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixos/modules/virtualisation/containers.nix
Expand Up @@ -188,6 +188,8 @@ let
''
else
''
echo "Bring ${name} up"
ip link set dev ${name} up
# Set IPs and routes for ${name}
${optionalString (cfg.hostAddress != null) ''
ip addr add ${cfg.hostAddress} dev ${name}
Expand Down
1 change: 1 addition & 0 deletions nixos/tests/containers-extra_veth.nix
Expand Up @@ -13,6 +13,7 @@ import ./make-test.nix ({ pkgs, ...} : {
virtualisation.memorySize = 768;
virtualisation.vlans = [];

networking.useDHCP = false;
networking.bridges = {
br0 = {
interfaces = [];
Expand Down

0 comments on commit ca06398

Please sign in to comment.