|
@@ -110,9 +110,9 @@ class BaseKea implements KeaConfigInterface
|
|
|
|
|
|
$hostType = $subnet->getAllowedHostType();
|
|
|
$client_class = '';
|
|
|
- /* if ($hostType) {
|
|
|
+ if ($hostType != 'Cablemodem') {
|
|
|
$client_class = $hostType->getShortname();
|
|
|
- } */
|
|
|
+ }
|
|
|
if ($subnet->getStatus() != HostStatus::STATE_NONE && $subnet->getStatus() != '') {
|
|
|
if ($client_class != '') {
|
|
|
$client_class .= '-';
|
|
@@ -187,13 +187,13 @@ class BaseKea implements KeaConfigInterface
|
|
|
|
|
|
// $dhcp = $data['dhcp'];
|
|
|
// $hosts = $data['hosts'];
|
|
|
- //
|
|
|
+ //
|
|
|
// $hook = [
|
|
|
// 'library' => $data['library'],
|
|
|
// ];
|
|
|
- //
|
|
|
+ //
|
|
|
// $dhcpModelParams = $dhcp && $dhcp->getDhcpModel() ? $dhcp->getDhcpModel()->getData('parameters') : null;
|
|
|
- //
|
|
|
+ //
|
|
|
// $option122 = isset($dhcpModelParams['option122']) ? $dhcpModelParams['option122'] : null;
|
|
|
// $ip = isset($dhcpModelParams['ip']) ? $dhcpModelParams['ip'] : null;
|
|
|
// if ($option122 && $ip) {
|
|
@@ -203,12 +203,12 @@ class BaseKea implements KeaConfigInterface
|
|
|
// $macs[] = $host->getMac();
|
|
|
// }
|
|
|
// }
|
|
|
- //
|
|
|
+ //
|
|
|
// $hook['parameters']['option122'] = [
|
|
|
// $ip => $macs
|
|
|
// ];
|
|
|
// }
|
|
|
- //
|
|
|
+ //
|
|
|
// $remote_id_map = isset($dhcpModelParams['remote-id-map']) ? $dhcpModelParams['remote-id-map'] : null;
|
|
|
// if ($remote_id_map) {
|
|
|
// $hostConfig = [];
|
|
@@ -217,9 +217,9 @@ class BaseKea implements KeaConfigInterface
|
|
|
// $mac = $host->getMac();
|
|
|
// $state = $host->getState();
|
|
|
// $shortname = $host->getHostType()->getShortname();
|
|
|
- //
|
|
|
+ //
|
|
|
// $client_class = $state != HostStatus::STATE_NONE ? $state : $shortname;
|
|
|
- //
|
|
|
+ //
|
|
|
// $hostConfig[$client_class][] = $mac;
|
|
|
// }
|
|
|
// }
|