mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 16:49:30 +01:00
feat: Display guest info before mode warning (#1232)
This commit is contained in:
1 parent
8963228b1c
commit
498248f43e
1 file changed
+5
-4
+5
-4
@@ -551,7 +551,7 @@ getPasst() {
|
||||
# Network mode setup
|
||||
# ######################################
|
||||
|
||||
configureDHCP() {
|
||||
configureVTAP() {
|
||||
|
||||
local msg=""
|
||||
local rc
|
||||
@@ -1432,7 +1432,8 @@ html "$MSG"
|
||||
if enabled "$DHCP"; then
|
||||
|
||||
# Configure for macvtap interface
|
||||
configureDHCP || exit 20
|
||||
configureVTAP || exit 20
|
||||
showGuestInfo
|
||||
|
||||
else
|
||||
|
||||
@@ -1486,6 +1487,8 @@ else
|
||||
|
||||
fi
|
||||
|
||||
showGuestInfo
|
||||
|
||||
if [[ "${NETWORK,,}" == "passt" || "${NETWORK,,}" == "slirp" ]]; then
|
||||
if [ -z "$USER_PORTS" ]; then
|
||||
info "Notice: because user-mode networking is active, when you need to forward custom ports to DSM, add them to the \"USER_PORTS\" variable."
|
||||
@@ -1494,8 +1497,6 @@ else
|
||||
|
||||
fi
|
||||
|
||||
showGuestInfo
|
||||
|
||||
NET_OPTS+=" -device $ADAPTER,id=net0,netdev=hostnet0,romfile=,mac=$MAC"
|
||||
|
||||
if [[ "$GUEST_MTU" != "0" && "$GUEST_MTU" != "1500" ]]; then
|
||||
|
||||
Reference in new issue
Block a user