From 70fb9f86d3909195b7799f92d8141bbb8e7b0f87 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Fri, 15 Sep 2023 20:42:36 +0100 Subject: [PATCH] mt300a vlan interface services depend on primary --- devices/gl-mt300a/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/devices/gl-mt300a/default.nix b/devices/gl-mt300a/default.nix index 02f02f9..3013593 100644 --- a/devices/gl-mt300a/default.nix +++ b/devices/gl-mt300a/default.nix @@ -70,20 +70,22 @@ swconfig dev switch0 vlan 2 set ports '0 6t' swconfig dev switch0 set apply ''; - down = "swconfig dev switch0 set reset"; + down = "${pkgs.swconfig}/bin/swconfig dev switch0 set reset"; }; in rec { - eth = link.build { ifname = "eth0"; dependencies = [swconfig]; }; + eth = link.build { ifname = "eth0"; }; # lan and wan ports are both behind a switch on eth0 lan = vlan.build { ifname = "eth0.1"; primary = eth; vid = "1"; + dependencies = [swconfig eth]; }; wan = vlan.build { ifname = "eth0.2"; primary = eth; vid = "2"; + dependencies = [swconfig eth]; }; wlan = link.build { ifname = "wlan0";