forked from DGNum/liminix
mt300a vlan interface services depend on primary
This commit is contained in:
parent
b36272f99e
commit
70fb9f86d3
1 changed files with 4 additions and 2 deletions
|
@ -70,20 +70,22 @@
|
||||||
swconfig dev switch0 vlan 2 set ports '0 6t'
|
swconfig dev switch0 vlan 2 set ports '0 6t'
|
||||||
swconfig dev switch0 set apply
|
swconfig dev switch0 set apply
|
||||||
'';
|
'';
|
||||||
down = "swconfig dev switch0 set reset";
|
down = "${pkgs.swconfig}/bin/swconfig dev switch0 set reset";
|
||||||
};
|
};
|
||||||
in rec {
|
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 and wan ports are both behind a switch on eth0
|
||||||
lan = vlan.build {
|
lan = vlan.build {
|
||||||
ifname = "eth0.1";
|
ifname = "eth0.1";
|
||||||
primary = eth;
|
primary = eth;
|
||||||
vid = "1";
|
vid = "1";
|
||||||
|
dependencies = [swconfig eth];
|
||||||
};
|
};
|
||||||
wan = vlan.build {
|
wan = vlan.build {
|
||||||
ifname = "eth0.2";
|
ifname = "eth0.2";
|
||||||
primary = eth;
|
primary = eth;
|
||||||
vid = "2";
|
vid = "2";
|
||||||
|
dependencies = [swconfig eth];
|
||||||
};
|
};
|
||||||
wlan = link.build {
|
wlan = link.build {
|
||||||
ifname = "wlan0";
|
ifname = "wlan0";
|
||||||
|
|
Loading…
Reference in a new issue