2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

use ifup replace ip link set dev <> up, ifup can load NIC configure files in none nmcli case

This commit is contained in:
bybai 2019-03-27 02:04:29 -04:00
parent 57465fc515
commit 68ea925790

View File

@ -695,7 +695,7 @@ elif [ "$1" = "-s" ];then
nmcli con up $con_name
wait_for_ifstate $str_inst_nic UP 10 5
else
ip link set dev $str_inst_nic up
ifup $str_inst_nic
fi
fi
if [ $? -ne 0 ]; then
@ -1111,7 +1111,7 @@ else
nmcli con up $con_name
wait_for_ifstate $str_nic_name UP 10 10
else
ip link set dev $str_nic_name up
ifup $str_nic_name
fi
if [ $? -ne 0 ]; then
log_error "bring $str_nic_name up failed."