From f1ac1431d6e94c00eac806f51a707048fb4409a7 Mon Sep 17 00:00:00 2001 From: nott Date: Thu, 10 Jan 2013 20:23:12 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/NetworkUtils.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/NetworkUtils.pm b/perl-xCAT/xCAT/NetworkUtils.pm index 7a4fd80bd..47e6af192 100755 --- a/perl-xCAT/xCAT/NetworkUtils.pm +++ b/perl-xCAT/xCAT/NetworkUtils.pm @@ -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{