liminix

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

commit 85b5edc39dd88ae50f13e76fc69990c86af6dbe0
parent d290965711fc1b7316acfc20e431573d7a9937a9
Author: Daniel Barlow <dan@telent.net>
Date:   Wed,  8 Mar 2023 20:34:39 +0000

vlan interfaces depend on parent

Diffstat:
Mdevices/gl-mt300a/default.nix | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/devices/gl-mt300a/default.nix b/devices/gl-mt300a/default.nix @@ -43,7 +43,7 @@ "${openwrt}/target/linux/ramips/dts" ]; }; - networkInterfaces = { + networkInterfaces = rec { # lan and wan ports are both behind a switch on eth0 eth = interface { device = "eth0"; }; lan = interface { @@ -51,12 +51,14 @@ device = "eth0.1"; link = "eth0"; id = "1"; + dependencies = [eth]; }; wan = interface { type = "vlan"; device = "eth0.2"; id = "2"; link = "eth0"; + dependencies = [eth]; }; wlan = interface { device = "wlan0";