(comments apply to 3214 and this one ,accidental 3214 checkin)

-Allow getAllNodeAttribs to return in a hash organization through a new argument
-Have nodeonmynet return true for any 'remote' node (makedhcp/nodeset fix for proxied networks)
-rbeacon without argument now presumes stat for blades
-KVM support now auto-generates as many macs as required to have a mac per nic
-KVM plugin tracks and avoids collision of macs among the set xCAT manages



git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3217 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-04-17 20:29:52 +00:00
parent a571e4a7ed
commit a841e654d5
2 changed files with 5 additions and 5 deletions

View File

@ -1952,6 +1952,7 @@ sub nodeonmynet
my $noden = unpack("N", inet_aton($nodeip));
my @nets;
if ($utildata->{nodeonmynetdata} and $utildata->{nodeonmynetdata}->{pid} == $$) {
@nets = @{$utildata->{nodeonmynetdata}->{nets}};
} else {
@nets = split /\n/, `/sbin/ip route`;
my $nettab=xCAT::Table->new("networks");
@ -1964,11 +1965,12 @@ sub nodeonmynet
$bits--;
$curm=$curm>>1;
}
push @nets,$_->{'net'}."/".$bits." remote";
push @nets,$_->{'net'}."/".$bits." dev remote";
}
}
$utildata->{nodeonmynetdata}->{pid}=$$;
$utildata->{nodeonmynetdata}->{n}
$utildata->{nodeonmynetdata}->{nets} = \@nets;
}
foreach (@nets)
{
my @elems = split /\s+/;

View File

@ -16,7 +16,6 @@ use Fcntl ':flock';
my @dhcpconf; #Hold DHCP config file contents to be written back.
my @nrn; # To hold output of networks table to be consulted throughout process
my $haveremotenics;
my $domain;
my $omshell;
my $statements; #Hold custom statements to be slipped into host declarations
@ -475,7 +474,6 @@ sub process_request
my $nm = $_->{mask};
#$callback->({data => ["array of nets $n : $if : $nm"]});
if ($if =~ /!remote!/) { #only take in networks with special interface
$haveremotenics=1;
push @nrn, "$n:$if:$nm";
}
}
@ -618,7 +616,7 @@ sub process_request
}
else
{
unless ($haveremotenics or xCAT::Utils->nodeonmynet($_))
unless (xCAT::Utils->nodeonmynet($_))
{
next;
}