-Add -a to makedhcp to update everything seen in the mac table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@860 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
7b4cee2d25
commit
b84a67462b
@ -263,6 +263,15 @@ sub process_request {
|
||||
foreach (keys %activenics) {
|
||||
addnic($_);
|
||||
}
|
||||
if (grep /^-a$/,@{$req->{arg}}) {
|
||||
$req->{node} = [];
|
||||
my $mactab = xCAT::Table->new('mac');
|
||||
my @entries = ($mactab->getAllNodeAttribs([qw(mac)]));
|
||||
foreach (@entries) {
|
||||
push @{$req->{node}},$_->{node};
|
||||
}
|
||||
}
|
||||
|
||||
if ($req->{node}) {
|
||||
@ARGV = @{$req->{arg}};
|
||||
$statements="";
|
||||
|
Loading…
Reference in New Issue
Block a user