2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-24 04:00:26 +00:00

create bridge on RH8 in postscripts

This commit is contained in:
bybai
2019-04-10 06:06:40 -04:00
parent 11e45fd741
commit 45631ac217

View File

@@ -563,8 +563,10 @@ function configure_nicdevice {
#openvswitch bridge type is bridge_ovs
elif [ x"$nic_dev_type" = "xbridge_ovs" -o x"$nic_dev_type" = "xbridge" ]; then
if [ "$networkmanager_active" = "0" ]; then
ps -ef|grep -v grep|grep NetworkManager >/dev/null 2>/dev/null
nmcli_used=$?
check_brctl $nic_dev_type
if [ $? -ne 0 ]; then
if [ $? -ne 0 ] && [ $nmcli_used -ne 0 ]; then
errorcode=1
else
create_bridge_interface ifname=$nic_dev _brtype=$nic_dev_type _port=$base_nic_dev _pretype=$base_nic_type