2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 20:30:56 +00:00

Merge pull request #4539 from stanford-rc/confignetwork_ignorebmc

ignore bmc interfaces defined in the nics table
This commit is contained in:
Yuan Bai
2017-12-20 11:26:29 +08:00
committed by GitHub

View File

@ -524,8 +524,13 @@ function configure_nicdevice {
nic_pair=`echo "$nics_pair" |sed -n "${num}p"`
echo "configure nic and its device : $nic_pair"
#ignore bmc interfaces. They're allowed in the nics table to generate DNS/hostname records, but they
#can't be configured here (it's done in bmcsetup
if [ x"$nic_dev_type" = "xbmc" ]; then
log_info "$nic_dev is of type $nic_dev_type, ignoring"
#configure standalone ethernet nic
if [ x"$nic_dev_type" = "xethernet" ]; then
elif [ x"$nic_dev_type" = "xethernet" ]; then
xcatnet=`query_nicnetworks_net $nic_dev`
ipaddrs=`find_nic_ips $nic_dev`
if [ -n "$ipaddrs" ]; then