VLAN link should depend on parent link

This commit is contained in:
Alex D. 2024-12-19 22:27:37 +00:00
parent 0a70be7e65
commit f0159110a7
Signed by: caskd
GPG Key ID: F92BA85F61F4C173

View File

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