]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4014] addressed review comments
authorRazvan Becheriu <razvan@isc.org>
Wed, 30 Jul 2025 13:44:26 +0000 (16:44 +0300)
committerRazvan Becheriu <razvan@isc.org>
Wed, 30 Jul 2025 13:44:26 +0000 (16:44 +0300)
17 files changed:
doc/sphinx/arm/hooks-cb-cmds.rst
src/hooks/dhcp/mysql/mysql_cb_dhcp4.cc
src/hooks/dhcp/mysql/mysql_cb_dhcp4.h
src/hooks/dhcp/mysql/mysql_cb_dhcp6.cc
src/hooks/dhcp/mysql/mysql_cb_dhcp6.h
src/hooks/dhcp/mysql/mysql_cb_impl.cc
src/hooks/dhcp/pgsql/pgsql_cb_dhcp4.cc
src/hooks/dhcp/pgsql/pgsql_cb_dhcp4.h
src/hooks/dhcp/pgsql/pgsql_cb_dhcp6.cc
src/hooks/dhcp/pgsql/tests/pgsql_cb_dhcp6_unittest.cc
src/lib/dhcpsrv/config_backend_pool_dhcp4.h
src/lib/dhcpsrv/config_backend_pool_dhcp6.cc
src/lib/dhcpsrv/config_backend_pool_dhcp6.h
src/lib/dhcpsrv/testutils/generic_cb_dhcp4_unittest.cc
src/lib/dhcpsrv/testutils/generic_cb_dhcp6_unittest.cc
src/lib/dhcpsrv/testutils/test_config_backend_dhcp4.h
src/lib/dhcpsrv/testutils/test_config_backend_dhcp6.h

index 5084a15af889c9d566be55758ca76da793c16b0c..c345682f2ba1173954190794e9d2aade3751a4a8 100644 (file)
@@ -1343,7 +1343,7 @@ The ``remote-option4-network-del``, ``remote-option6-network-del`` Commands
 
 These commands are used to delete a shared-network-specific DHCP
 option from the database. The option is identified by an option code
-and option space and as of Kea 3.1.1, an optional ``client-classes``
+and option space, and as of Kea 3.1.1, an optional ``client-classes``
 parameter may also be specified (see :ref:`cb-cmds-option-class-tags-as-keys`).
 These parameters are passed within the ``options`` list.
 Another list, ``shared-networks``, contains a map
@@ -1438,8 +1438,10 @@ The ``remote-option6-pd-pool-del`` Command
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 This command is used to delete a prefix delegation pool-specific DHCPv6
-option from the database. The option is identified by an option code
-and option space. These two parameters are passed within the ``options`` list.
+option from the database. The option is identified by an option code and
+option space, and as of Kea 3.1.1, an optional ``client-classes`` parameter
+may also be specified (see :ref:`cb-cmds-option-class-tags-as-keys`).
+These parameters are passed within the ``options`` list.
 Another list, ``pd-pools``, contains a map with the
 prefix-delegation-pool prefix and length identifying the pool. If the
 option is not explicitly specified for this pool, no option is deleted.
index aff111d6ca83c86aef86f3b0b002a0e4855f62fb..4701444544761fda4d03c12b94517f67e98dbb2d 100644 (file)
@@ -3517,7 +3517,8 @@ TaggedStatementArray tagged_statements = { {
 
     // Update existing global option.
     { MySqlConfigBackendDHCPv4Impl::UPDATE_OPTION4,
-      MYSQL_UPDATE_OPTION4_WITH_TAG(AND o.scope_id = 0 AND o.code = ? AND o.space = ? AND o.client_classes = ?)
+      MYSQL_UPDATE_OPTION4_WITH_TAG(AND o.scope_id = 0 AND o.code = ? AND o.space = ?
+                                    AND o.client_classes = ?)
     },
 
     // Update existing subnet level option.
index 8f41b4ba612ef18ccbeea52a42b66ac94dc4173f..7fa7858f352c0933b0e9240cd12822788772bba1 100644 (file)
@@ -487,6 +487,7 @@ public:
     /// @param space Option space of the deleted option.
     /// @param client_classes Optional client classes list of the option to be deleted.
     /// Defaults to an empty pointer.
+    /// @return Number of deleted options.
     /// @throw NotImplemented if server selector is "unassigned".
     virtual uint64_t
     deleteOption4(const db::ServerSelector& server_selector,
index b5249b23cb0f54f6623829de127e66960ac96265..6efda22e901b419752108678dda9fd8a41459a8b 100644 (file)
@@ -3950,14 +3950,14 @@ TaggedStatementArray tagged_statements = { {
 
     // Update existing shared network level option.
     { MySqlConfigBackendDHCPv6Impl::UPDATE_OPTION6_SHARED_NETWORK,
-      MYSQL_UPDATE_OPTION6_NO_TAG(o.scope_id = 4 AND o.shared_network_name = ? AND o.code = ?
-                                  AND o.space = ? AND o.client_classes = ?)
+      MYSQL_UPDATE_OPTION6_NO_TAG(o.scope_id = 4 AND o.shared_network_name = ? AND o.code = ? AND o.space = ?
+                                  AND o.client_classes = ?)
     },
 
     // Update existing client class level option.
     { MySqlConfigBackendDHCPv6Impl::UPDATE_OPTION6_CLIENT_CLASS,
-      MYSQL_UPDATE_OPTION6_NO_TAG(o.scope_id = 2 AND o.dhcp_client_class = ? AND o.code = ?
-                                  AND o.space = ? AND o.client_classes = ?)
+      MYSQL_UPDATE_OPTION6_NO_TAG(o.scope_id = 2 AND o.dhcp_client_class = ? AND o.code = ? AND o.space = ?
+                                  AND o.client_classes = ?)
     },
 
     // Update existing client class with specifying its position.
@@ -4099,8 +4099,8 @@ TaggedStatementArray tagged_statements = { {
     // Delete single option from a subnet.
     { MySqlConfigBackendDHCPv6Impl::DELETE_OPTION6_SUBNET_ID,
       MYSQL_DELETE_OPTION_NO_TAG(dhcp6,
-                          WHERE o.scope_id = 1 AND o.dhcp6_subnet_id = ? AND o.code = ? AND o.space = ?
-                                AND o.client_classes LIKE ?)
+                          WHERE (o.scope_id = 1 AND o.dhcp6_subnet_id = ? AND o.code = ? AND o.space = ?
+                                 AND o.client_classes LIKE ?))
     },
 
     // Delete single option from a pool.
@@ -4118,8 +4118,8 @@ TaggedStatementArray tagged_statements = { {
     // Delete single option from a shared network.
     { MySqlConfigBackendDHCPv6Impl::DELETE_OPTION6_SHARED_NETWORK,
       MYSQL_DELETE_OPTION_NO_TAG(dhcp6,
-                          WHERE o.scope_id = 4 AND o.shared_network_name = ? AND o.code = ? AND o.space = ?
-                                AND o.client_classes LIKE ?)
+                          WHERE (o.scope_id = 4 AND o.shared_network_name = ? AND o.code = ? AND o.space = ?
+                                 AND o.client_classes LIKE ?))
     },
 
     // Delete options belonging to a subnet.
index 97d068263073bac1d4191b0b2f353defac308ad1..12fcc239f9770056c74e64ac1e358d4df5456726 100644 (file)
@@ -523,10 +523,8 @@ public:
     /// @return Number of deleted options.
     /// @throw NotImplemented if server selector is "unassigned".
     virtual uint64_t
-    deleteOption6(const db::ServerSelector& server_selector,
-                  const SubnetID& subnet_id,
-                  const uint16_t code,
-                  const std::string& space,
+    deleteOption6(const db::ServerSelector& server_selector, const SubnetID& subnet_id,
+                  const uint16_t code, const std::string& space,
                   const ClientClassesPtr client_classes = ClientClassesPtr());
 
     /// @brief Deletes pool level option.
index 4418fccfbf0d1a97fe7d42b50f274ecfb10815e4..aa5f63f17b4fe47bc175a1d6fe7fb4c95ab485c2 100644 (file)
@@ -587,7 +587,6 @@ MySqlConfigBackendImpl::getOption(const int index,
             OptionDescriptor::create(*options.begin()));
 }
 
-
 OptionContainer
 MySqlConfigBackendImpl::getAllOptions(const int index,
                                       const Option::Universe& universe,
index 2bdcb8b7594f5ac76d1b48ab81cc86bdeabe9b39..17d77f34e94beb8cec11c58b47e8871f3b00a48e 100644 (file)
@@ -4054,7 +4054,8 @@ TaggedStatementArray tagged_statements = { {
             OID_TEXT        // 18 client_classes (of option to update)
         },
         "UPDATE_OPTION4",
-        PGSQL_UPDATE_OPTION4_WITH_TAG(AND o.scope_id = 0 AND o.code = $16 AND o.space = $17 AND o.client_classes = $18)
+        PGSQL_UPDATE_OPTION4_WITH_TAG(AND o.scope_id = 0 AND o.code = $16 AND o.space = $17
+                                      AND o.client_classes = $18)
     },
 
     // Update existing subnet level option.
@@ -4082,7 +4083,8 @@ TaggedStatementArray tagged_statements = { {
             OID_TEXT        // 18 client_classes (of option to update)
         },
         "UPDATE_OPTION4_SUBNET_ID",
-        PGSQL_UPDATE_OPTION4_NO_TAG(o.scope_id = 1 AND o.dhcp4_subnet_id = $15 AND o.code = $16 AND o.space = $17 AND o.client_classes = $18)
+        PGSQL_UPDATE_OPTION4_NO_TAG(o.scope_id = 1 AND o.dhcp4_subnet_id = $15 AND o.code = $16 AND o.space = $17
+                                    AND o.client_classes = $18)
     },
 
     // Update existing pool level option.
@@ -4110,7 +4112,8 @@ TaggedStatementArray tagged_statements = { {
             OID_TEXT        // 18 client_classes (of option to update)
         },
         "UPDATE_OPTION4_POOL_ID",
-        PGSQL_UPDATE_OPTION4_NO_TAG(o.scope_id = 5 AND o.pool_id = $15 AND o.code = $16 AND o.space = $17 AND o.client_classes = $18)
+        PGSQL_UPDATE_OPTION4_NO_TAG(o.scope_id = 5 AND o.pool_id = $15 AND o.code = $16 AND o.space = $17
+                                    AND o.client_classes = $18)
     },
 
     // Update existing shared network level option.
@@ -4138,7 +4141,8 @@ TaggedStatementArray tagged_statements = { {
             OID_TEXT,       // 18 client_classes (of option to update)
         },
         "UPDATE_OPTION4_SHARED_NETWORK",
-        PGSQL_UPDATE_OPTION4_NO_TAG(o.scope_id = 4 AND o.shared_network_name = $15 AND o.code = $16 AND o.space = $17 AND o.client_classes = $18)
+        PGSQL_UPDATE_OPTION4_NO_TAG(o.scope_id = 4 AND o.shared_network_name = $15 AND o.code = $16 AND o.space = $17
+                                    AND o.client_classes = $18)
     },
 
     // Update existing client class level option.
@@ -4166,7 +4170,8 @@ TaggedStatementArray tagged_statements = { {
             OID_TEXT        // 18 client_classes (of option to update)
         },
         "UPDATE_OPTION4_CLIENT_CLASS",
-        PGSQL_UPDATE_OPTION4_NO_TAG(o.scope_id = 2 AND o.dhcp_client_class = $15 AND o.code = $16 AND o.space = $17 AND o.client_classes = $18)
+        PGSQL_UPDATE_OPTION4_NO_TAG(o.scope_id = 2 AND o.dhcp_client_class = $15 AND o.code = $16 AND o.space = $17
+                                    AND o.client_classes = $18)
     },
 
     // Update existing client class with specifying its position.
index eea5b9479d92e417eb361836b78feceb50b72e44..517fcc65b844f29371cec860479947456f8a6b35 100644 (file)
@@ -487,6 +487,7 @@ public:
     /// @param space Option space of the deleted option.
     /// @param client_classes Optional client classes list of the option to be deleted.
     /// Defaults to an empty pointer.
+    /// @return Number of deleted options.
     /// @throw NotImplemented if server selector is "unassigned".
     virtual uint64_t
     deleteOption4(const db::ServerSelector& server_selector,
index 3528292a37742aef751c91275077d4c6e80abe14..c644dabad887f0ef201c64d6fdd045f698801967 100644 (file)
@@ -4492,8 +4492,8 @@ TaggedStatementArray tagged_statements = { {
             OID_TEXT        // 19 client_classes (of option to update)
         },
         "UPDATE_OPTION6_SUBNET_ID",
-        PGSQL_UPDATE_OPTION6_NO_TAG(o.scope_id = 1 AND o.dhcp6_subnet_id = $16 AND o.code = $17
-                                    AND o.space = $18 AND o.client_classes = $19)
+        PGSQL_UPDATE_OPTION6_NO_TAG(o.scope_id = 1 AND o.dhcp6_subnet_id = $16 AND o.code = $17 AND o.space = $18
+                                    AND o.client_classes = $19)
     },
 
     // Update existing pool level option.
@@ -4522,8 +4522,8 @@ TaggedStatementArray tagged_statements = { {
             OID_TEXT        // 19 client_classes (of option to update)
         },
         "UPDATE_OPTION6_POOL_ID",
-        PGSQL_UPDATE_OPTION6_NO_TAG(o.scope_id = 5 AND o.pool_id = $16 AND o.code = $17
-                                    AND o.space = $18 AND o.client_classes = $19)
+        PGSQL_UPDATE_OPTION6_NO_TAG(o.scope_id = 5 AND o.pool_id = $16 AND o.code = $17 AND o.space = $18
+                                    AND o.client_classes = $19)
     },
 
     // Update existing pd pool level option.
@@ -4552,8 +4552,8 @@ TaggedStatementArray tagged_statements = { {
             OID_TEXT        // 19 client_classes (of option to update)
         },
         "UPDATE_OPTION6_PD_POOL_ID",
-        PGSQL_UPDATE_OPTION6_NO_TAG(o.scope_id = 6 AND o.pd_pool_id = $16 AND o.code = $17
-                                    AND o.space = $18 AND o.client_classes = $19)
+        PGSQL_UPDATE_OPTION6_NO_TAG(o.scope_id = 6 AND o.pd_pool_id = $16 AND o.code = $17 AND o.space = $18
+                                    AND o.client_classes = $19)
     },
 
     // Update existing shared network level option.
@@ -4582,8 +4582,8 @@ TaggedStatementArray tagged_statements = { {
             OID_TEXT        // 19 client_classes (of option to update)
         },
         "UPDATE_OPTION6_SHARED_NETWORK",
-        PGSQL_UPDATE_OPTION6_NO_TAG(o.scope_id = 4 AND o.shared_network_name = $16 AND o.code = $17
-                                    AND o.space = $18 AND o.client_classes = $19)
+        PGSQL_UPDATE_OPTION6_NO_TAG(o.scope_id = 4 AND o.shared_network_name = $16 AND o.code = $17 AND o.space = $18
+                                    AND o.client_classes = $19)
     },
 
     // Update existing client class level option.
@@ -4612,8 +4612,8 @@ TaggedStatementArray tagged_statements = { {
             OID_TEXT        // 19 client_classes (of option to update)
         },
         "UPDATE_OPTION6_CLIENT_CLASS",
-        PGSQL_UPDATE_OPTION6_NO_TAG(o.scope_id = 2 AND o.dhcp_client_class = $16 AND o.code = $17
-                                    AND o.space = $18 AND o.client_classes = $19)
+        PGSQL_UPDATE_OPTION6_NO_TAG(o.scope_id = 2 AND o.dhcp_client_class = $16 AND o.code = $17 AND o.space = $18
+                                    AND o.client_classes = $19)
     },
 
     // Update existing client class with specifying its position.
@@ -5015,7 +5015,7 @@ TaggedStatementArray tagged_statements = { {
         "DELETE_OPTION6_SHARED_NETWORK",
         PGSQL_DELETE_OPTION_NO_TAG(dhcp6,
             WHERE o.scope_id = 4 AND o.shared_network_name = $1 AND o.code = $2 AND o.space = $3
-                 AND o.client_classes LIKE $4)
+                  AND o.client_classes LIKE $4)
     },
 
     // Delete options belonging to a subnet.
index 4b5ff7019ee38b1d83b3558c0fcc80af336f1f9b..4778355bfc8acb2ce471bfe925143f027a76744c 100644 (file)
@@ -349,7 +349,6 @@ TEST_F(PgSqlConfigBackendDHCPv6Test, getModifiedOptions6Test) {
     getModifiedOptions6Test();
 }
 
-
 TEST_F(PgSqlConfigBackendDHCPv6Test, globalOption6WithClientClassesTest) {
     globalOption6WithClientClassesTest();
 }
index b292c1e3b015ae0759ad424434771cfef63e43ee..0523c3d09215a1e00b74edb8eb62eb50e034faae 100644 (file)
@@ -521,6 +521,7 @@ public:
     /// @param space Option space of the option to be deleted.
     /// @param client_classes Optional client classes list of the option to be deleted.
     /// Defaults to an empty pointer.
+    /// @return Number of deleted options.
     virtual uint64_t
     deleteOption4(const db::BackendSelector& backend_selector,
                   const db::ServerSelector& server_selector,
index 405d59e996ff139ab54162e35311e687bd4f3868..e6ed8a1155201d4d409cb12d1fae2cde947ee459 100644 (file)
@@ -139,8 +139,7 @@ ConfigBackendPoolDHCPv6::getOption6(const BackendSelector& backend_selector,
                                     const ServerSelector& server_selector,
                                     const uint16_t code,
                                     const std::string& space,
-                                    const ClientClassesPtr client_classes
-                                    /* = ClientClassesPtr() */) const {
+                                    const ClientClassesPtr client_classes /* = ClientClassesPtr() */) const {
     OptionDescriptorPtr option;
     getPropertyPtrConst<OptionDescriptorPtr, uint16_t, const std::string&>
         (&ConfigBackendDHCPv6::getOption6, backend_selector, server_selector,
@@ -446,8 +445,7 @@ ConfigBackendPoolDHCPv6::deleteOption6(const BackendSelector& backend_selector,
                                        const ServerSelector& server_selector,
                                        const uint16_t code,
                                        const std::string& space,
-                                       const ClientClassesPtr client_classes
-                                             /* = ClientClassesPtr() */) {
+                                       const ClientClassesPtr client_classes /* = ClientClassesPtr() */) {
     return (createUpdateDeleteProperty<uint64_t, uint16_t, const std::string&,
                                        const ClientClassesPtr>
             (&ConfigBackendDHCPv6::deleteOption6, backend_selector, server_selector,
@@ -460,8 +458,7 @@ ConfigBackendPoolDHCPv6::deleteOption6(const BackendSelector& backend_selector,
                                        const std::string& shared_network_name,
                                        const uint16_t code,
                                        const std::string& space,
-                                       const ClientClassesPtr client_classes
-                                             /* = ClientClassesPtr() */) {
+                                       const ClientClassesPtr client_classes /* = ClientClassesPtr() */) {
     return (createUpdateDeleteProperty<uint64_t, const std::string&, uint16_t,
                                        const std::string&,
                                        const ClientClassesPtr>
@@ -475,8 +472,7 @@ ConfigBackendPoolDHCPv6::deleteOption6(const BackendSelector& backend_selector,
                                        const SubnetID& subnet_id,
                                        const uint16_t code,
                                        const std::string& space,
-                                       const ClientClassesPtr client_classes
-                                             /* = ClientClassesPtr() */) {
+                                       const ClientClassesPtr client_classes /* = ClientClassesPtr() */) {
     return (createUpdateDeleteProperty<uint64_t, const SubnetID&, uint16_t,
                                        const std::string&,
                                        const ClientClassesPtr>
@@ -491,8 +487,7 @@ ConfigBackendPoolDHCPv6::deleteOption6(const BackendSelector& backend_selector,
                                        const asiolink::IOAddress& pool_end_address,
                                        const uint16_t code,
                                        const std::string& space,
-                                       const ClientClassesPtr client_classes
-                                             /* = ClientClassesPtr() */) {
+                                       const ClientClassesPtr client_classes /* = ClientClassesPtr() */) {
     return (createUpdateDeleteProperty<uint64_t, const IOAddress&, const IOAddress&,
                                        uint16_t, const std::string&,
                                        const ClientClassesPtr>
@@ -507,8 +502,7 @@ ConfigBackendPoolDHCPv6::deleteOption6(const BackendSelector& backend_selector,
                                        const uint8_t pd_pool_prefix_length,
                                        const uint16_t code,
                                        const std::string& space,
-                                       const ClientClassesPtr client_classes
-                                             /* = ClientClassesPtr() */) {
+                                       const ClientClassesPtr client_classes /* = ClientClassesPtr() */) {
     return (createUpdateDeleteProperty<uint64_t, const IOAddress&, uint8_t,
                                        uint16_t, const std::string&,
                                        const ClientClassesPtr>
index e122beb959a7f1840dc220621197e1488f2af8a5..73e0435304444c9aec6532752b4777bde3464c5c 100644 (file)
@@ -573,6 +573,8 @@ public:
     /// deleted option belongs.
     /// @param code Code of the deleted option.
     /// @param space Option space of the deleted option.
+    /// @param client_classes Optional client classes list of the option to be deleted.
+    /// Defaults to an empty pointer.
     /// @return Number of deleted options.
     virtual uint64_t
     deleteOption6(const db::BackendSelector& backend_selector,
index ca7f9d6dae4fab3f2ef9d8ae7290477b8730cd43..a61b122e0c7bdcfbe5ea4cb17b11f3ffcadf630d 100644 (file)
@@ -3717,7 +3717,8 @@ GenericConfigBackendDHCPv4Test::globalOption4WithClientClassesTest() {
                                           ref_option->option_->getType(),
                                           DHCP4_OPTION_SPACE,
                                           ref_option->copyClientClasses());
-        ASSERT_TRUE(found_option);
+        ASSERT_TRUE(found_option) << "ref_option" << ref_option->option_->toText()
+                                  << ", cc: " << ref_option->client_classes_.toText();
         SCOPED_OPT_COMPARE((*ref_option), (*found_option));
     }
 
index 0056724bf24ca6f087e211b8e977ab7b3770ccfc..3a411bba067b8b7cac7ef511afcf677cd1f44145 100644 (file)
@@ -74,10 +74,10 @@ GenericConfigBackendDHCPv6Test::SetUp() {
 void
 GenericConfigBackendDHCPv6Test::TearDown() {
     cbptr_.reset();
+    // If data wipe enabled, delete transient data otherwise destroy the schema.
     if (getenv("KEA_UNIT_TEST_KEEP_SCHEMA")) {
         std::cout << "KEA_UNIT_TEST_KEEP_SCHEMA set, avoid schema destruction" << std::endl;
     } else {
-        // If data wipe enabled, delete transient data otherwise destroy the schema.
         destroySchema();
     }
 }
@@ -5238,7 +5238,8 @@ GenericConfigBackendDHCPv6Test::poolOption6WithClientClassesTest() {
                                                     subnet->getID());
     ASSERT_TRUE(returned_subnet);
 
-    PoolPtr returned_pool = returned_subnet->getPool(Lease::TYPE_NA, IOAddress("2001:db8::10"));
+    PoolPtr returned_pool = returned_subnet->getPool(Lease::TYPE_NA,
+                                                     IOAddress("2001:db8::10"));
     ASSERT_TRUE(returned_pool);
 
     // Make sure that CfgOption->get() with client_classes finds each ref option.
@@ -5251,6 +5252,7 @@ GenericConfigBackendDHCPv6Test::poolOption6WithClientClassesTest() {
 
     // Now make sure that we can set the options individually.
     updateClassTaggedOptions(ref_options);
+
     for (auto const& ref_option : ref_options) {
         cbptr_->createUpdateOption6(ServerSelector::ALL(),
                                     pool->getFirstAddress(),
@@ -5262,7 +5264,8 @@ GenericConfigBackendDHCPv6Test::poolOption6WithClientClassesTest() {
     returned_subnet = cbptr_->getSubnet6(ServerSelector::ALL(), subnet->getID());
     ASSERT_TRUE(returned_subnet);
 
-    returned_pool = returned_subnet->getPool(Lease::TYPE_NA, IOAddress("2001:db8::10"));
+    returned_pool = returned_subnet->getPool(Lease::TYPE_NA,
+                                             IOAddress("2001:db8::10"));
     ASSERT_TRUE(returned_pool);
 
     // Make sure that CfgOption->get() with client_classes finds each ref option.
@@ -5287,7 +5290,8 @@ GenericConfigBackendDHCPv6Test::poolOption6WithClientClassesTest() {
     returned_subnet = cbptr_->getSubnet6(ServerSelector::ALL(), subnet->getID());
     ASSERT_TRUE(returned_subnet);
 
-    returned_pool = returned_subnet->getPool(Lease::TYPE_NA, IOAddress("2001:db8::10"));
+    returned_pool = returned_subnet->getPool(Lease::TYPE_NA,
+                                             IOAddress("2001:db8::10"));
     ASSERT_TRUE(returned_pool);
 
     // Make sure that CfgOption is empty
index 61a1a7d59c50ede89a1217e2e374840a01d765a1..b75d151c85053da00c3e2550b7f9d9a3be5ecc74 100644 (file)
@@ -457,6 +457,7 @@ public:
     /// @param space Option space of the option to be deleted.
     /// @param client_classes Optional client classes list of the option to be deleted.
     /// Defaults to an empty pointer.
+    /// @return Number of deleted options.
     virtual uint64_t
     deleteOption4(const db::ServerSelector& server_selector,
                   const std::string& shared_network_name,
index bb247d3c062fde062f7e445bba2130f6fce8cfa1..6c2818b95de0692e139dfb54875d5e825dad8774 100644 (file)
@@ -487,10 +487,8 @@ public:
     /// @param space Option space of the deleted option.
     /// @return Number of deleted options.
     virtual uint64_t
-    deleteOption6(const db::ServerSelector& server_selector,
-                  const SubnetID& subnet_id,
-                  const uint16_t code,
-                  const std::string& space,
+    deleteOption6(const db::ServerSelector& server_selector, const SubnetID& subnet_id,
+                  const uint16_t code, const std::string& space,
                   const ClientClassesPtr client_classes = ClientClassesPtr());
 
     /// @brief Deletes pool level option.