From b84a67462b9af6f89821bfaa4e7771aeea5d36d2 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 20 Mar 2008 21:15:34 +0000 Subject: [PATCH] -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 --- xCAT-server-2.0/lib/xcat/plugins/dhcp.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm b/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm index 88677e387..a05aa74ae 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm @@ -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="";