mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 17:23:08 +00:00
Remove trailing spaces in file xCAT-test/autotest/testcase/confignics/mtu_set_clean
This commit is contained in:
parent
e6fc6735f5
commit
652722c98e
@ -5,7 +5,7 @@ function test_ip()
|
||||
VALID_CHECK=$(echo $IP|awk -F. '$1<=255&&$2<=255&&$3<=255&&$4<=255{print "yes"}')
|
||||
if echo $IP|grep -E "^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$">/dev/null; then
|
||||
if [ ${VALID_CHECK:-no} == "yes" ]; then
|
||||
echo $1;
|
||||
echo $1;
|
||||
else
|
||||
return 1;
|
||||
fi
|
||||
@ -33,12 +33,12 @@ MASTERIP=""
|
||||
NETWORKNAME=""
|
||||
MASTERIP=`lsdef -t site -i master -c 2>&1 | awk -F'=' '{print $2}'`;
|
||||
MASTERIP=$(get_master_ip $MASTERIP);
|
||||
if [[ `tabdump networks |grep $MASTERIP` = "" ]]; then
|
||||
if [[ `tabdump networks |grep $MASTERIP` = "" ]]; then
|
||||
makenetworks
|
||||
fi
|
||||
NETWORKNAME=`tabdump networks |grep $MASTERIP|awk -F'"' '{print $2}'`;
|
||||
echo $NETWORKNAME,$MASTERIP;
|
||||
if [[ $NETWORKNAME = "" ]] || [[ $MASTERIP = "" ]];then
|
||||
if [[ $NETWORKNAME = "" ]] || [[ $MASTERIP = "" ]];then
|
||||
exit 2;
|
||||
else
|
||||
if [ $1 = "S" ] ;then
|
||||
|
Loading…
x
Reference in New Issue
Block a user