Merge pull request #53871 from elseym/fix-container-extraveths
nixos/containers: explicitly set link up on host for extraVeths
commitca0639837cfe23f176ce796b06afbeba02ae26fe
authorFranz Pletz <fpletz@fnordicwalking.de>
dateMon 14 Jan 2019, 03:59 (8 years ago)
parentd79e3518a8bf88
nixos/modules/virtualisation/containers.nix+2
@@ -188,6 +188,8 @@ let
188188 ''
189189 else
190190 ''
191+ echo "Bring ${name} up"
192+ ip link set dev ${name} up
191193 # Set IPs and routes for ${name}
192194 ${optionalString (cfg.hostAddress != null) ''
193195 ip addr add ${cfg.hostAddress} dev ${name}
nixos/tests/containers-extra_veth.nix+1
@@ -13,6 +13,7 @@ import ./make-test.nix ({ pkgs, ...} : {
1313 virtualisation.memorySize = 768;
1414 virtualisation.vlans = [];
1515
16+ networking.useDHCP = false;
1617 networking.bridges = {
1718 br0 = {
1819 interfaces = [];