ManageIQ/manageiq-providers-azure

View on GitHub
app/models/manageiq/providers/azure/network_manager/floating_ip.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
80%
class ManageIQ::Providers::Azure::NetworkManager::FloatingIp < ::FloatingIp
  def self.available
    joins(:network_port).where("network_ports.device_id" => nil) + where(:network_port_id => nil)
  end

  def self.display_name(number = 1)
    n_('Floating IP (Microsoft Azure)', 'Floating IPs (Microsoft Azure)', number)
  end
end