fix vlan interface bring up on boot
when the parent interface of a vlan interface is not up (yet), ip link cannot bring the vlan interface up the vlan interface will be automatically brought up when the parent interface is up later fix NixOS/nixpkgs#28620
This commit is contained in:
parent
cd794f4216
commit
939c6be54e
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ let
|
||||||
# Remove Dead Interfaces
|
# Remove Dead Interfaces
|
||||||
ip link show "${n}" >/dev/null 2>&1 && ip link delete "${n}"
|
ip link show "${n}" >/dev/null 2>&1 && ip link delete "${n}"
|
||||||
ip link add link "${v.interface}" name "${n}" type vlan id "${toString v.id}"
|
ip link add link "${v.interface}" name "${n}" type vlan id "${toString v.id}"
|
||||||
ip link set "${n}" up
|
ip link set "${n}" up || true
|
||||||
'';
|
'';
|
||||||
postStop = ''
|
postStop = ''
|
||||||
ip link delete "${n}" || true
|
ip link delete "${n}" || true
|
||||||
|
|
Loading…
Reference in a new issue