Commit 9c2193e3 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[2270] dhcp6 now handles reconfigures better (reverted clear() on defaults)

parent 7e8e8bca
......@@ -157,7 +157,7 @@ public:
isc_throw(BadValue, "Failed to parse value " << value->str()
<< " as unsigned 32-bit integer.");
}
storage_->insert(pair<string, uint32_t>(param_name_, value_));
(*storage_)[param_name_] = value_;
}
/// @brief does nothing
......@@ -227,7 +227,7 @@ public:
virtual void build(ConstElementPtr value) {
value_ = value->str();
boost::erase_all(value_, "\"");
storage_->insert(pair<string, string>(param_name_, value_));
(*storage_)[param_name_] = value_;
}
/// @brief does nothing
......@@ -757,10 +757,6 @@ configureDhcp6Server(Dhcpv6Srv& , ConstElementPtr config_set) {
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")
string config_details;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment