summary refs log tree commit diff
path: root/nixos/modules/tasks
diff options
context:
space:
mode:
authorVolth <volth@webmaster.ms>2017-08-21 16:47:59 +0000
committerVolth <volth@webmaster.ms>2017-08-21 16:52:27 +0000
commite123631ed3e9466147dce40a376a8b9355cc00c5 (patch)
treee70bdc2287cf565570cc69fbfbc310c82501e215 /nixos/modules/tasks
parentd48b12c27c62496cb484872f2e51ea0e620738aa (diff)
downloadnixlib-e123631ed3e9466147dce40a376a8b9355cc00c5.tar
nixlib-e123631ed3e9466147dce40a376a8b9355cc00c5.tar.gz
nixlib-e123631ed3e9466147dce40a376a8b9355cc00c5.tar.bz2
nixlib-e123631ed3e9466147dce40a376a8b9355cc00c5.tar.lz
nixlib-e123631ed3e9466147dce40a376a8b9355cc00c5.tar.xz
nixlib-e123631ed3e9466147dce40a376a8b9355cc00c5.tar.zst
nixlib-e123631ed3e9466147dce40a376a8b9355cc00c5.zip
add separator in case if a VM connected to more than 1 bridge
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r--nixos/modules/tasks/network-interfaces-scripted.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces-scripted.nix b/nixos/modules/tasks/network-interfaces-scripted.nix
index 0cfb8d525e33..0560176bf579 100644
--- a/nixos/modules/tasks/network-interfaces-scripted.nix
+++ b/nixos/modules/tasks/network-interfaces-scripted.nix
@@ -256,7 +256,7 @@ let
                   for uri in qemu:///system lxc:///; do
                     for dom in $(${pkgs.libvirt}/bin/virsh -c $uri list --name); do
                       ${pkgs.libvirt}/bin/virsh -c $uri dumpxml "$dom" | \
-                      ${pkgs.xmlstarlet}/bin/xmlstarlet sel -t -m "//domain/devices/interface[@type='bridge'][target/@dev][source/@bridge]" -v "concat('ip link set ',target/@dev,' master ',source/@bridge)" | \
+                      ${pkgs.xmlstarlet}/bin/xmlstarlet sel -t -m "//domain/devices/interface[@type='bridge'][source/@bridge='${n}'][target/@dev]" -v "concat('ip link set ',target/@dev,' master ',source/@bridge,';')" | \
                       ${pkgs.bash}/bin/bash
                     done
                   done