mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 05:20:02 +08:00
feat: Remove existing TAP interface (#892)
This commit is contained in:
parent
619657adf2
commit
00c4ef7795
@ -389,6 +389,11 @@ if [[ "$IP" == "172.17."* ]]; then
|
|||||||
warn "your container IP starts with 172.17.* which will cause conflicts when you install the Container Manager package inside DSM!"
|
warn "your container IP starts with 172.17.* which will cause conflicts when you install the Container Manager package inside DSM!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -d "/sys/class/net/$VM_NET_TAP" ]]; then
|
||||||
|
info "Lingering interface will be removed..."
|
||||||
|
ip link delete "$VM_NET_TAP" || true
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$DHCP" == [Yy1]* ]]; then
|
if [[ "$DHCP" == [Yy1]* ]]; then
|
||||||
|
|
||||||
checkOS
|
checkOS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user