class Fog::Libvirt::Compute::Mock
Public Instance Methods
Source
# File lib/fog/libvirt/requests/compute/dhcp_leases.rb, line 14 def dhcp_leases(uuid, mac, flags = 0) leases1 = { 'aa:bb:cc:dd:ee:ff' => [ { 'type' => Socket::AF_INET, 'ipaddr' => '1.2.3.4', 'prefix' => 24, 'expirytime' => 5000 }, { 'type' => Socket::AF_INET, 'ipaddr' => '1.2.5.6', 'prefix' => 24, 'expirytime' => 5005 } ] } leases2 = { '99:88:77:66:55:44' => [ { 'type' => Socket::AF_INET, 'ipaddr' => '10.1.1.5', 'prefix' => 24, 'expirytime' => 50 } ] } networks = { # should match the default network from the test connection 'dd8fe884-6c02-601e-7551-cca97df1c5df' => leases1, 'fbd4ac68-cbea-4f95-86ed-22953fd92384' => leases2 } networks.dig(uuid, mac) end
Not implemented by the test driver
Source
# File lib/fog/libvirt/compute.rb, line 121 def enhance_uri(uri) uri = 'test:///default' unless ::URI.parse(uri).scheme == 'test' super(uri) end
Calls superclass method
Fog::Libvirt::Compute::Shared#enhance_uri