fix setup of service node dhcp based on site table input of dhcpinterfaces

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2291 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2008-10-07 16:40:00 +00:00
parent 6391aa7d52
commit 5f0e5dad2b

View File

@ -320,12 +320,21 @@ sub process_request
my $dhcpinterfaces = $href->{value};
my $dhcpif;
INTF: foreach $dhcpif (split /;/,$dhcpinterfaces) {
my $host;
my $savehost;
if ($dhcpif =~ /\|/) {
(my $ngroup,$dhcpif) = split /\|/,$dhcpif;
my $host;
foreach $host (noderange($ngroup)) {
$savehost=$host;
if (xCAT::Utils->thishostisnot($host)) {
next INTF;
}
}
if (!defined($savehost)) { # host not defined in db,
# probably management node
if (xCAT::Utils->thishostisnot($ngroup)) {
next INTF;
}
}