2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

[2270] Fix for repeated reconf in dhcp6 (old defaults are now removed)

This commit is contained in:
Tomek Mrugalski 2012-12-05 15:23:34 +01:00
parent 65a83c79b1
commit bdeb3c67d1

View File

@ -752,10 +752,15 @@ DhcpConfigParser* createGlobalDhcpConfigParser(const std::string& config_id) {
ConstElementPtr ConstElementPtr
configureDhcp6Server(Dhcpv6Srv& , ConstElementPtr config_set) { configureDhcp6Server(Dhcpv6Srv& , ConstElementPtr config_set) {
if (!config_set) { if (!config_set) {
isc_throw(Dhcp6ConfigError, ConstElementPtr answer = isc::config::createAnswer(1,
"Null pointer is passed to configuration parser"); string("Can't parse NULL config"));
return (answer);
} }
/// Let's wipe previous configuration defaults
uint32_defaults.clear();
string_defaults.clear();
/// @todo: append most essential info here (like "2 new subnets configured") /// @todo: append most essential info here (like "2 new subnets configured")
string config_details; string config_details;