summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2024-01-06 12:38:08 +0100
committertv <tv@krebsco.de>2024-01-06 12:38:08 +0100
commit1e1e751fa4ed5380b2458263ed24b01a08847291 (patch)
tree7ba8a0125fe1824c70a5df6a78fdb713818ebc4b /krebs/3modules
parent191ee037480e0837091c0dbc7bf8ec42dd7f93b4 (diff)
parent04f538164ce11ce977a851b6de2a9d2c5f7a9adb (diff)
Merge remote-tracking branch 'orange/master'
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/sync-containers3.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/krebs/3modules/sync-containers3.nix b/krebs/3modules/sync-containers3.nix
index 7bec27b0f..d3a65bd4c 100644
--- a/krebs/3modules/sync-containers3.nix
+++ b/krebs/3modules/sync-containers3.nix
@@ -155,7 +155,7 @@ in {
# echo 'container is reachable, continueing'
continue
else
- # echo 'container seems dead, killing'
+ echo 'container seems dead, killing'
break
fi
else
@@ -249,6 +249,11 @@ in {
ExecStop = pkgs.writers.writeDash "remove_interface" ''
${pkgs.iproute2}/bin/ip link del vb-${ctr.name}
'';
+ ExecStartPost = [
+ (pkgs.writers.writeDash "bind-to-bridge" ''
+ ${pkgs.iproute2}/bin/ip link set "vb-$INSTANCE" master ctr0
+ '')
+ ];
};
}; }
]) (lib.attrValues cfg.containers)));