|
@@ -68,11 +68,6 @@ class SubnetStatusOrHostTypeChangeSubscriber implements EventSubscriber
|
|
$entity = $args->getEntity();
|
|
$entity = $args->getEntity();
|
|
$changeset = $uow->getEntityChangeSet($entity);
|
|
$changeset = $uow->getEntityChangeSet($entity);
|
|
if ($entity instanceof SubNet && (isset($changeset['status']) || isset($changeset['allowedHostType']))) {
|
|
if ($entity instanceof SubNet && (isset($changeset['status']) || isset($changeset['allowedHostType']))) {
|
|
- // $leaseService = $this->serviceContainer->get('kea.lease.service');
|
|
|
|
- // // invalidating the host lease
|
|
|
|
- // $lease4 = $leaseService->invalidate($entity->getMac());
|
|
|
|
- // $flashbag->add("success", $translator->trans('host.lease.invalidate.ok', ['%hwaddr%' => $entity->getMac()], 'KeaBundle'));
|
|
|
|
-
|
|
|
|
// setting fixed address to null to all hosts in the pools static associated to the subnet
|
|
// setting fixed address to null to all hosts in the pools static associated to the subnet
|
|
$ipRange = $this->serviceContainer->get('pool_ipv4_service')->getStaticPoolIPRangeBySubnet($entity);
|
|
$ipRange = $this->serviceContainer->get('pool_ipv4_service')->getStaticPoolIPRangeBySubnet($entity);
|
|
$hosts = [];
|
|
$hosts = [];
|