0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

Merge pull request #53871 from elseym/fix-container-extraveths

nixos/containers: explicitly set link up on host for extraVeths
This commit is contained in:
Franz Pletz 2019-01-14 03:59:19 +00:00 committed by GitHub
commit ca0639837c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -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}