From f0159110a768db2e8a21c6cc02a4c05e6a5e25b7 Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Thu, 19 Dec 2024 22:27:37 +0000 Subject: [PATCH] VLAN link should depend on parent link --- services.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services.go b/services.go index cb11ac2..86f02a0 100644 --- a/services.go +++ b/services.go @@ -142,6 +142,10 @@ func (t *S6SvcTree) ReadyServices(i Iface) (r []*S6Svc) { "ip link set dev $INTERFACE down", }, "\n") svc_link.S6Children(t.netdevCreateBundleStage(i.Name, "configure")) + // VLAN interfaces are quite special + if i.Type == &NetdevIfTypes.Vlan { + svc_link.S6Children(t.LinkIfaceService(i.Parent.Name)) + } bundle_ready := t.NetdevDependBundleStage(i.Name, "ready", svc_link) r = append(r, bundle_ready)