ソースを参照

FD3-805 in kea config only non static pools are added

Guillermo Espinoza 6 年 前
コミット
a6c5c149df
1 ファイル変更6 行追加3 行削除
  1. 6 3
      src/KeaBundle/Services/BaseKea.php

+ 6 - 3
src/KeaBundle/Services/BaseKea.php

@@ -108,9 +108,12 @@ class BaseKea implements KeaConfigInterface
         foreach ($subnets as $subnet) {
             $pools = [];
             foreach ($subnet->getIpPool() as $pool) {
-                $pools[] = [
-                    'pool' => $pool->getFirstIp() . ' - ' . $pool->getLastIp(),
-                ];
+                // only add non static pools
+                if ($pool->getIsStatic() == false) {
+                    $pools[] = [
+                        'pool' => $pool->getFirstIp() . ' - ' . $pool->getLastIp(),
+                    ];
+                }
             }
 
             $hostType = $subnet->getAllowedHostType();