فهرست منبع

FD3-544 config kea interfaces

Espinoza Guillermo 7 سال پیش
والد
کامیت
302933c570
1فایلهای تغییر یافته به همراه15 افزوده شده و 2 حذف شده
  1. 15 2
      src/KeaBundle/Services/BaseKea.php

+ 15 - 2
src/KeaBundle/Services/BaseKea.php

@@ -18,6 +18,11 @@ class BaseKea implements KeaConfigInterface
     */
     private $hooks_libraries = [];
 
+    /**
+    * @var array
+    */
+    private $interfaces_config = [];
+
 
     /**
      * @param array $data
@@ -43,6 +48,7 @@ class BaseKea implements KeaConfigInterface
                         'lease-database' =>$this->leaseDatabaseConfig(),
                         'subnet4' => $this->subnet4,
                         'hooks-libraries' => $this->hooks_libraries,
+                        'interfaces-config' => $this->getInterfacesConfig(),
                     ],
                     'Logging' => $this->loggingConfig(),
             ))], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
@@ -144,7 +150,7 @@ class BaseKea implements KeaConfigInterface
     /**
      * @return array
      */
-    private function controlSocketConfig() 
+    private function controlSocketConfig()
     {
         /* "control-socket": {"socket-name": "\/tmp\/kea-dhcp4-ctrl.sock","socket-type": "unix"} */
         return array(
@@ -156,14 +162,21 @@ class BaseKea implements KeaConfigInterface
     /**
      * @return array
      */
-    private function leaseDatabaseConfig() 
+    private function leaseDatabaseConfig()
     {
         /* "lease-database": {"lfc-interval": 3600,"type": "memfile"} */
         return array(
             'lfc-interval' => 3600,
             'type' => 'memfile'
         );
+    }
 
+    /**
+     * @return array
+     */
+    private function getInterfacesConfig()
+    {
+        return ['interfaces' => ['*']];
     }
 
 }