liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 70fb9f86d3909195b7799f92d8141bbb8e7b0f87
parent b36272f99e45f896f4fdd859d5242dfbaae2a420
Author: Daniel Barlow <dan@telent.net>
Date:   Fri, 15 Sep 2023 20:42:36 +0100

mt300a vlan interface services depend on primary

Diffstat:
Mdevices/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 @@ -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";