Example #1
0
 /**
  * API to fetch not-provisioned IP addresses
  */
 public function fetchUnusedIps()
 {
     return IpAddress::notProvisioned();
 }
 /**
  * Delete a reservation
  */
 public function destroy(IpAddress $ip_address)
 {
     logThis('Deleting DHCP Reservation for ' . $ip_address->dhcp_reservation->customer->name . ' - ' . $ip_address->address . ' (' . $ip_address->dhcp_reservation->mac . ')');
     $ip_address->dhcp_reservation()->delete();
     $this->dispatch(new RewriteDhcpConfig());
 }
 /**
  * Get the next available management IP
  */
 public function nextAvailableManagementIp()
 {
     $ips = IpAddress::notProvisioned();
     return $ips->where('is_management', true)->first();
 }