]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3389a] Renamed patchIfacesReDetect into disableIfacesReDetect
authorFrancis Dupont <fdupont@isc.org>
Thu, 11 May 2017 12:12:07 +0000 (14:12 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 11 May 2017 12:12:07 +0000 (14:12 +0200)
src/bin/dhcp4/tests/dhcp4_test_utils.cc
src/bin/dhcp4/tests/dhcp4_test_utils.h
src/bin/dhcp6/tests/dhcp6_test_utils.cc
src/bin/dhcp6/tests/dhcp6_test_utils.h

index 0ac816e40bb9355526a401e6e6d889a562563274..3d66c465af6858916f379463e5a9762affc669f1 100644 (file)
@@ -608,8 +608,8 @@ Dhcpv4SrvTest::configure(const std::string& config, NakedDhcpv4Srv& srv,
     ASSERT_NO_THROW(json = parseJSON(config));
     ConstElementPtr status;
 
-    // Patch the re-detect flag
-    patchIfacesReDetect(json);
+    // Disable the re-detect flag
+    disableIfacesReDetect(json);
 
     // Configure the server and make sure the config is accepted
     EXPECT_NO_THROW(status = configureDhcp4Server(srv, json));
index 5c9581a3fc9381f503ab3f3c669d3da78cb9c37f..5bdd5c4ebd61af7bc0f79f4b6915cddbed37912c 100644 (file)
@@ -482,7 +482,7 @@ public:
 /// @brief Patch the server config to add interface-config/re-detect=false
 /// @param json the server config
 inline void
-patchIfacesReDetect(isc::data::ConstElementPtr json) {
+disableIfacesReDetect(isc::data::ConstElementPtr json) {
     isc::data::ConstElementPtr ifaces_cfg = json->get("interfaces-config");
     if (ifaces_cfg) {
         isc::data::ElementPtr mutable_cfg =
@@ -517,7 +517,7 @@ parseDHCP4(const std::string& in, bool verbose = false)
         isc::dhcp::Parser4Context ctx;
         isc::data::ElementPtr json;
         json = ctx.parseString(in, isc::dhcp::Parser4Context::SUBPARSER_DHCP4);
-        patchIfacesReDetect(json);
+        disableIfacesReDetect(json);
         return (json);
     }
     catch (const std::exception& ex) {
index 70b64d418978669f0fb9b0d60e97e9aa02bff61a..b836b8fbc9e95b2383f56552ea9ceadd76fae4eb 100644 (file)
@@ -702,8 +702,8 @@ Dhcpv6SrvTest::configure(const std::string& config, NakedDhcpv6Srv& srv) {
     ASSERT_NO_THROW(json = parseJSON(config));
     ConstElementPtr status;
 
-    // Patch the re-detect flag
-    patchIfacesReDetect(json);
+    // Disable the re-detect flag
+    disableIfacesReDetect(json);
 
     // Configure the server and make sure the config is accepted
     EXPECT_NO_THROW(status = configureDhcp6Server(srv, json));
index 3846029b4afa77d21d186ac1178758a0543f9d6b..e0edfe9761a0cf9af151f59d3d0887562239fbf2 100644 (file)
@@ -642,7 +642,7 @@ public:
 /// @brief Patch the server config to add interface-config/re-detect=false
 /// @param json the server config
 inline void
-patchIfacesReDetect(isc::data::ConstElementPtr json) {
+disableIfacesReDetect(isc::data::ConstElementPtr json) {
     isc::data::ConstElementPtr ifaces_cfg = json->get("interfaces-config");
     if (ifaces_cfg) {
         isc::data::ElementPtr mutable_cfg =
@@ -677,7 +677,7 @@ parseDHCP6(const std::string& in, bool verbose = false)
         isc::dhcp::Parser6Context ctx;
         isc::data::ElementPtr json;
         json = ctx.parseString(in, isc::dhcp::Parser6Context::SUBPARSER_DHCP6);
-        patchIfacesReDetect(json);
+        disableIfacesReDetect(json);
         return (json);
     }
     catch (const std::exception& ex) {