mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 13:15:30 +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:
commit
ca0639837c
2 changed files with 3 additions and 0 deletions
|
@ -188,6 +188,8 @@ let
|
||||||
''
|
''
|
||||||
else
|
else
|
||||||
''
|
''
|
||||||
|
echo "Bring ${name} up"
|
||||||
|
ip link set dev ${name} up
|
||||||
# Set IPs and routes for ${name}
|
# Set IPs and routes for ${name}
|
||||||
${optionalString (cfg.hostAddress != null) ''
|
${optionalString (cfg.hostAddress != null) ''
|
||||||
ip addr add ${cfg.hostAddress} dev ${name}
|
ip addr add ${cfg.hostAddress} dev ${name}
|
||||||
|
|
|
@ -13,6 +13,7 @@ import ./make-test.nix ({ pkgs, ...} : {
|
||||||
virtualisation.memorySize = 768;
|
virtualisation.memorySize = 768;
|
||||||
virtualisation.vlans = [];
|
virtualisation.vlans = [];
|
||||||
|
|
||||||
|
networking.useDHCP = false;
|
||||||
networking.bridges = {
|
networking.bridges = {
|
||||||
br0 = {
|
br0 = {
|
||||||
interfaces = [];
|
interfaces = [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue