1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00

add comment for issue #28620

This commit is contained in:
Youfu Zhang 2018-08-10 11:52:16 +08:00 committed by GitHub
parent 939c6be54e
commit ae65ddc8de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -473,6 +473,9 @@ let
# Remove Dead Interfaces
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}"
# Try to bring up vlan interface
# Note: When master interface is down, we cannot bring vlan interfaces up (#28620)
# Vlan interfaces will be automatically bring up when master is up
ip link set "${n}" up || true
'';
postStop = ''