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:
parent
57465fc515
commit
68ea925790
@ -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."
|
||||
|
Loading…
x
Reference in New Issue
Block a user