]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3944] addressed review comments
authorRazvan Becheriu <razvan@isc.org>
Thu, 24 Jul 2025 10:59:55 +0000 (13:59 +0300)
committerRazvan Becheriu <razvan@isc.org>
Thu, 24 Jul 2025 10:59:55 +0000 (13:59 +0300)
doc/sphinx/arm/dhcp4-srv.rst
doc/sphinx/arm/dhcp6-srv.rst
src/lib/dhcpsrv/parsers/host_reservation_parser.h
src/lib/dhcpsrv/tests/srv_config_unittest.cc

index 9fb21f8f64ceb838b7dd2f4918e1a480f2fa28bc..aec25d71c2d9dade43dc9b297aa7962504243e66 100644 (file)
@@ -8569,7 +8569,7 @@ Some scalar parameters contained by top-level global maps are supported by the c
    | dhcp-queue-control.capacity                                      | dhcp-queue-control           | capacity                         |
    +------------------------------------------------------------------+------------------------------+----------------------------------+
 
-Some scalar parameters contained by top-level global list are supported by the configuration backend.
+Some global list parameters containing only scalar types are supported by the configuration backend.
 
 .. table:: List of DHCPv4 list parameters supported by the configuration backend
 
index 7275043484554b010396af5c1ecfdee9590a8572..b2809051858fe1321f91a29e76c66d284445d699 100644 (file)
@@ -8404,7 +8404,7 @@ Some scalar parameters contained by top level global maps are supported by the c
    | dhcp-queue-control.capacity                                      | dhcp-queue-control           | capacity                         |
    +------------------------------------------------------------------+------------------------------+----------------------------------+
 
-Some scalar parameters contained by top-level global list are supported by the configuration backend.
+Some global list parameters containing only scalar types are supported by the configuration backend.
 
 .. table:: List of DHCPv6 list parameters supported by the configuration backend
 
index d4eacb7c32efb26a9a8a704bc3a2712655c06d60..202ba38235d8c909e334427b925dc5192312ad9d 100644 (file)
@@ -155,6 +155,9 @@ public:
     /// @brief Constructor.
     ///
     /// @param cfg Pointer to the object holding configuration.
+    /// The configuration provided will be updated by
+    /// @ref HostReservationIdsParser::parse with the list of host
+    /// identifiers.
     HostReservationIdsParser(CfgHostOperationsPtr cfg);
 
     /// @brief Destructor.
@@ -207,6 +210,9 @@ public:
     /// configuration.
     ///
     /// @param cfg Pointer to the object holding configuration.
+    /// The configuration provided will be updated by
+    /// @ref HostReservationIdsParser::parse with the list of host
+    /// identifiers.
     HostReservationIdsParser4(CfgHostOperationsPtr cfg);
 
 protected:
@@ -230,6 +236,9 @@ public:
     /// configuration.
     ///
     /// @param cfg Pointer to the object holding configuration.
+    /// The configuration provided will be updated by
+    /// @ref HostReservationIdsParser::parse with the list of host
+    /// identifiers.
     HostReservationIdsParser6(CfgHostOperationsPtr cfg);
 
 protected:
index 962c60bf0e5618ed716049e4399c4b86075e8cdc..9e4d11d142888247509f5e91b043ec0eeeab5392 100644 (file)
@@ -1122,9 +1122,9 @@ TEST_F(SrvConfigTest, mergeGlobals4) {
     mt->set("enable-multi-threading", Element::create(false));
     mt->set("thread-pool-size", Element::create(256));
     ElementPtr hr_i = Element::createList();
-    cfg_from.addConfiguredGlobal("host-reservation-identifiers", hr_i);
     hr_i->add(Element::create("hw-address"));
     hr_i->add(Element::create("flex-id"));
+    cfg_from.addConfiguredGlobal("host-reservation-identifiers", hr_i);
 
     // Now let's merge.
     ASSERT_NO_THROW(cfg_to.merge(cfg_from));
@@ -1226,9 +1226,9 @@ TEST_F(SrvConfigTest, mergeGlobals6) {
     mt->set("enable-multi-threading", Element::create(false));
     mt->set("thread-pool-size", Element::create(256));
     ElementPtr hr_i = Element::createList();
-    cfg_from.addConfiguredGlobal("host-reservation-identifiers", hr_i);
     hr_i->add(Element::create("hw-address"));
     hr_i->add(Element::create("flex-id"));
+    cfg_from.addConfiguredGlobal("host-reservation-identifiers", hr_i);
 
     // Now let's merge.
     ASSERT_NO_THROW(cfg_to.merge(cfg_from));