|
@@ -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' => ['*']];
|
|
|
}
|
|
|
|
|
|
}
|