Browse Source

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

Tomek Mrugalski 12 years ago
parent
commit
9c2193e32b
1 changed files with 2 additions and 6 deletions
  1. 2 6
      src/bin/dhcp6/config_parser.cc

+ 2 - 6
src/bin/dhcp6/config_parser.cc

@@ -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;