add support for new nics table delimiter

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14853 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2013-01-10 20:23:12 +00:00
parent 1acc33adc1
commit f1ac1431d6

View File

@ -2330,8 +2330,14 @@ sub get_all_nicips{
if($_->{nicips}){
my @nicandiplist = split(',', $_->{nicips});
# Each record in @nicandiplist looks like "eth0:ip1"
# delimiter has been changed to use "!" in xCAT 2.8
foreach (@nicandiplist){
my @nicandip = split(':', $_);
my @nicandip;
if ($_ =~ /!/) {
@nicandip = split('!', $_);
} else {
@nicandip = split(':', $_);
}
if ($hashref){
$allipshash{$nicandip[1]} = 0;
} else{