]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1245] Addressed comments, todo unittests
authorFrancis Dupont <fdupont@isc.org>
Fri, 12 Jun 2020 14:22:18 +0000 (16:22 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 17 Jun 2020 09:27:52 +0000 (11:27 +0200)
src/bin/dhcp4/json_config_parser.cc
src/bin/dhcp6/json_config_parser.cc

index 93a6623719ca833bc670b6e972e77e08208b2490..8c0bae4c858f1a2d4069df05328c4d0588d1ca29 100644 (file)
@@ -511,7 +511,7 @@ configureDhcp4Server(Dhcpv4Srv& server, isc::data::ConstElementPtr config_set,
         // This parser is used in several places.
         Dhcp4ConfigParser global_parser;
 
-       // Keep relative orders of shared networks and subnets.
+        // Keep relative orders of shared networks and subnets.
         ConstElementPtr shared_networks = mutable_cfg->get("shared-networks");
         if (shared_networks) {
             parameter_name = "shared-networks";
@@ -559,7 +559,7 @@ configureDhcp4Server(Dhcpv4Srv& server, isc::data::ConstElementPtr config_set,
         // Make parsers grouping.
         ConfigPair config_pair;
         const std::map<std::string, ConstElementPtr>& values_map =
-                                                        mutable_cfg->mapValue();
+            mutable_cfg->mapValue();
         BOOST_FOREACH(config_pair, values_map) {
 
             parameter_name = config_pair.first;
index a525f257fd9a84be83cd320d1fa546253ff576ab..e3a3227b420c7c0e37e6dd31b78b1bb5408a1a1d 100644 (file)
@@ -635,7 +635,7 @@ configureDhcp6Server(Dhcpv6Srv& server, isc::data::ConstElementPtr config_set,
         // This parser is used in several places.
         Dhcp6ConfigParser global_parser;
 
-       // Keep relative orders of shared networks and subnets.
+        // Keep relative orders of shared networks and subnets.
         ConstElementPtr shared_networks = mutable_cfg->get("shared-networks");
         if (shared_networks) {
             parameter_name = "shared-networks";
@@ -696,7 +696,7 @@ configureDhcp6Server(Dhcpv6Srv& server, isc::data::ConstElementPtr config_set,
 
             parameter_name = config_pair.first;
 
-            // This is converted to SimpleParser and is handled already above.
+            // This are converted to SimpleParser and are handled already above.
             if ((config_pair.first == "data-directory") ||
                 (config_pair.first == "option-def")  ||
                 (config_pair.first == "option-data") ||