defect 4492: to support comstomized script for install nic

This commit is contained in:
daniceexi 2014-12-24 06:22:04 -05:00
parent d00c051680
commit 1c3496a1db

View File

@ -206,10 +206,6 @@ elif [ `echo $str_temp | grep -E "e(n|th)[0-9a-z]+"` ];then
str_inst_nic=$str_temp
fi
if [ $bool_cfg_inst_nic -eq 1 ];then
configeth -s $str_inst_nic
fi
bool_exit_flag=0
#check the required attributes
if [ -z "$NICIPS" ];then
@ -287,9 +283,6 @@ do
key=`echo $key | sed 's/^ \+//' | sed 's/ \+$//'`
str_nic_type=
str_value=$(hashget hash_defined_nics $key)
if [ "$key" = "$str_inst_nic" ];then
continue
fi
old_ifs=$IFS
IFS=$','
array_temp=($str_value)
@ -300,6 +293,16 @@ do
echo "confignics on $NODE: processing custom scripts: ${array_temp[1]} for interface $key"
${array_temp[1]}
else
if [ "$key" = "$str_inst_nic" ];then
if [ $bool_cfg_inst_nic -eq 1 ];then
logger -t xcat -p local4.info "confignics: call 'configeth $str_inst_nic'"
echo "confignics on $NODE: call 'configeth -s $str_inst_nic"
configeth -s $str_inst_nic
continue
else
continue
fi
fi
if [ `echo $key | grep -E 'e(n|th|m)[0-9a-z]+'` ];then
str_nic_type="ethernet"
elif [ `echo $key | grep -E 'ib[0-9]+'` ];then