소스 검색

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();