fix(bridge/members): log attach/detach

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
Raito Bezarius 2024-09-01 01:32:45 +02:00 committed by Ryan Lahfa
parent 36f3015acd
commit 1d0fc24111

View file

@ -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 {