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:
parent
1acc33adc1
commit
f1ac1431d6
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user