Browse Source

[5186] Applied fix to DHCPv6 too

Francis Dupont 8 years ago
parent
commit
a62c62639f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/bin/dhcp6/json_config_parser.cc

+ 3 - 1
src/bin/dhcp6/json_config_parser.cc

@@ -608,7 +608,9 @@ configureDhcp6Server(Dhcpv6Srv&, isc::data::ConstElementPtr config_set,
     Subnet::resetSubnetID();
 
     // Remove any existing timers.
-    TimerMgr::instance()->unregisterTimers();
+    if (!check_only) {
+        TimerMgr::instance()->unregisterTimers();
+    }
 
     // Revert any runtime option definitions configured so far and not committed.
     LibDHCP::revertRuntimeOptionDefs();