]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#710,!408] Fixed invalid tabulations in test config backends impl. 710-cb_cmds-add-support-for-server-tags-in-global-options
authorMarcin Siodelski <marcin@isc.org>
Mon, 8 Jul 2019 22:10:38 +0000 (00:10 +0200)
committerFrancis Dupont <fdupont@isc.org>
Tue, 9 Jul 2019 07:30:45 +0000 (09:30 +0200)
src/lib/dhcpsrv/testutils/test_config_backend_dhcp4.cc
src/lib/dhcpsrv/testutils/test_config_backend_dhcp6.cc

index f91796ea86fc45cea5e0f669afe8a1a4e132f894..cf24885a5985649f31e5a86745273300e5cf4d8a 100644 (file)
@@ -562,29 +562,29 @@ TestConfigBackendDHCPv4::createUpdateOption4(const db::ServerSelector& server_se
     auto tags = server_selector.getTags();
     auto not_in_tags = false;
     for (auto subnet : subnets_) {
-       // Get the pool: if it is not here we can directly go to the next subnet.
+        // Get the pool: if it is not here we can directly go to the next subnet.
         auto pool = subnet->getPool(Lease::TYPE_V4, pool_start_address);
         if (!pool) {
             continue;
         }
 
-       // Verify the subnet is in all or one of the given servers.
+        // Verify the subnet is in all or one of the given servers.
         if (!subnet->hasAllServerTag()) {
-           auto in_tags = false;
+            auto in_tags = false;
             for (auto tag : tags) {
                 if (subnet->hasServerTag(ServerTag(tag))) {
-                   in_tags = true;
+                    in_tags = true;
                     break;
                 }
             }
             if (!in_tags) {
-               // Records the fact a subnet was found but not in a server.
-               not_in_tags = true;
+                // Records the fact a subnet was found but not in a server.
+                not_in_tags = true;
                 continue;
             }
         }
 
-       // Update the option.
+        // Update the option.
         pool->getCfgOption()->del(option->space_name_, option->option_->getType());
         pool->getCfgOption()->add(*option, option->space_name_);
 
index e557f94b1c8cc74ad4e9012307108294432daccf..7acf85d683e2c59c61405114deaba9e9453f3223 100644 (file)
@@ -561,29 +561,29 @@ TestConfigBackendDHCPv6::createUpdateOption6(const db::ServerSelector& server_se
     auto tags = server_selector.getTags();
     auto not_in_tags = false;
     for (auto subnet : subnets_) {
-       // Get the pool: if it is not here we can directly go to the next subnet.
+        // Get the pool: if it is not here we can directly go to the next subnet.
         auto pool = subnet->getPool(Lease::TYPE_NA, pool_start_address);
         if (!pool) {
             continue;
         }
 
-       // Verify the subnet is in all or one of the given servers.
+        // Verify the subnet is in all or one of the given servers.
         if (!subnet->hasAllServerTag()) {
-           auto in_tags = false;
+            auto in_tags = false;
             for (auto tag : tags) {
                 if (subnet->hasServerTag(ServerTag(tag))) {
-                   in_tags = true;
+                    in_tags = true;
                     break;
                 }
             }
             if (!in_tags) {
-               // Records the fact a subnet was found but not in a server.
-               not_in_tags = true;
+                // Records the fact a subnet was found but not in a server.
+                not_in_tags = true;
                 continue;
             }
         }
 
-       // Update the option.
+        // Update the option.
         pool->getCfgOption()->del(option->space_name_, option->option_->getType());
         pool->getCfgOption()->add(*option, option->space_name_);
 
@@ -610,15 +610,15 @@ TestConfigBackendDHCPv6::createUpdateOption6(const db::ServerSelector& server_se
     auto tags = server_selector.getTags();
     auto not_in_tags = false;
     for (auto subnet : subnets_) {
-       // Get the pd pool: if it is not here we can directly go to the next subnet.
+        // Get the pd pool: if it is not here we can directly go to the next subnet.
         auto pdpool = subnet->getPool(Lease::TYPE_PD, pd_pool_prefix);
         if (!pdpool) {
             continue;
         }
 
-       // Verify the subnet is in all or one of the given servers.
+        // Verify the subnet is in all or one of the given servers.
         if (!subnet->hasAllServerTag()) {
-           auto in_tags = false;
+            auto in_tags = false;
             for (auto tag : tags) {
                 if (subnet->hasServerTag(ServerTag(tag))) {
                     in_tags = true;
@@ -626,13 +626,13 @@ TestConfigBackendDHCPv6::createUpdateOption6(const db::ServerSelector& server_se
                 }
             }
             if (!in_tags) {
-               // Records the fact a subnet was found but not in a server.
-               not_in_tags = true;
+                // Records the fact a subnet was found but not in a server.
+                not_in_tags = true;
                 continue;
             }
         }
 
-       // Update the option.
+        // Update the option.
         pdpool->getCfgOption()->del(option->space_name_, option->option_->getType());
         pdpool->getCfgOption()->add(*option, option->space_name_);