forked from mirrors/nixpkgs
nixos/containers: explicitly set link up on host for extraVeths
This commit is contained in:
parent
626233eee6
commit
8a8bf886b5
|
@ -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}
|
||||
|
|
|
@ -13,6 +13,7 @@ import ./make-test.nix ({ pkgs, ...} : {
|
|||
virtualisation.memorySize = 768;
|
||||
virtualisation.vlans = [];
|
||||
|
||||
networking.useDHCP = false;
|
||||
networking.bridges = {
|
||||
br0 = {
|
||||
interfaces = [];
|
||||
|
|
Loading…
Reference in a new issue