mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	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:
		| @@ -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; | ||||
|                     } | ||||
|                  } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user