diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index c3ec08da5..01ada02c7 100644 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -582,6 +582,12 @@ 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;