support the regular expression in the hosts table

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15874 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2013-04-08 08:37:01 +00:00
parent 60f393ea20
commit f7b2205e92

View File

@ -79,7 +79,7 @@ sub findme {
last;
}
}
unless ($mac) {
xCAT::MsgUtils->message("S", "Discovery Error: Could not find the mac of the $ip.");
return;
@ -917,7 +917,7 @@ sub getfreeips () {
}
}
my @hostsent = $hoststb->getAllAttribs('node', 'ip');
my @hostsent = $hoststb->getAllNodeAttribs(['node', 'ip']);
my %usedips = ();
foreach my $host (@hostsent) {
if (defined ($host->{'ip'}) && !$predefips{$host->{'ip'}}) {