From 1d0fc24111cab325ea65e7de12b2e14ccb51e93c Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sun, 1 Sep 2024 01:32:45 +0200 Subject: [PATCH] fix(bridge/members): log attach/detach Signed-off-by: Raito Bezarius --- modules/bridge/members.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/bridge/members.nix b/modules/bridge/members.nix index a278730..114bc2e 100644 --- a/modules/bridge/members.nix +++ b/modules/bridge/members.nix @@ -21,9 +21,13 @@ let service = oneshot { name = "${primary.name}.member.${member.name}"; up = '' + echo "attaching $(output ${member} ifname) to $(output ${primary} ifname) bridge" ip link set dev $(output ${member} ifname) master $(output ${primary} ifname) ''; - down = "ip link set dev $(output ${member} ifname) nomaster"; + down = '' + echo "detaching $(output ${member} ifname) from any bridge" + ip link set dev $(output ${member} ifname) nomaster + ''; }; }; in bundle {