-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:
jbjohnso 2008-03-20 21:15:34 +00:00
parent 7b4cee2d25
commit b84a67462b

View File

@ -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="";