still fixing bug 3815, dhcp.pm process_request with different makedhcp options -n and -a are triggerd by AAsn.pm twice during xcatd restarting on SN. the first -n option is enabled and not get cleanup because it is a global variable. and then second call with -a option conficts with -n option in last makedhcp context. we have to clean up -n before call the second makedhcp.
This commit is contained in:
parent
b33e239dc1
commit
957403a1d2
@ -582,6 +582,10 @@ sub setup_DHCP
|
||||
|
||||
# setup DHCP
|
||||
#
|
||||
|
||||
# clean up $::opt_n which set by last makedhcp context and conlicts with -a below.
|
||||
undef $::opt_n;
|
||||
|
||||
my $modname = "dhcp";
|
||||
if ($snonly != 1) { # setup dhcp for all nodes
|
||||
$cmdref;
|
||||
|
Loading…
Reference in New Issue
Block a user