Sha256: 1e2d193ad7c0b44157ebd8b1f6b644b668394d24dccaf2c3c199f69c298d111b

Contents?: true

Size: 813 Bytes

Versions: 24

Compression:

Stored size: 813 Bytes

Contents

module Fog
  module Compute
    class OpenStack
      class Real
        # Remove an IP address.
        #
        # === Parameters
        # * server_id <~String> - The ID of the server in which to remove an IP from.
        # * address <~String> - The IP address to be removed.
        # === Returns
        # * success <~Boolean>
        def remove_fixed_ip(server_id, address)
          body = {
            'removeFixedIp' => {
              'address' => address
            }
          }
          server_action(server_id, body).status == 202
        end # def remove_fixed_ip
      end # class Real

      class Mock
        def remove_fixed_ip(server_id, network_id)
          true
        end # def remove_fixed_ip
      end # class Mock
    end # class OpenStack
  end # module Compute
end # module Fog

Version data entries

24 entries across 24 versions & 9 rubygems

Version Path
cifrado-0.2.1 vendor/fog/lib/fog/openstack/requests/compute/remove_fixed_ip.rb
cifrado-0.2.0 vendor/fog/lib/fog/openstack/requests/compute/remove_fixed_ip.rb
fog-nirvanix-1.8.2 lib/fog/openstack/requests/compute/remove_fixed_ip.rb
fog-nirvanix-1.8.1 lib/fog/openstack/requests/compute/remove_fixed_ip.rb
fog-parser-fix-1.6.1 lib/fog/openstack/requests/compute/remove_fixed_ip.rb
fog-test-again-1.6.0 lib/fog/openstack/requests/compute/remove_fixed_ip.rb
fog-parser-fix-1.6.0 lib/fog/openstack/requests/compute/remove_fixed_ip.rb
cifrado-0.1.3 vendor/fog/lib/fog/openstack/requests/compute/remove_fixed_ip.rb
cifrado-0.1.2 vendor/fog/lib/fog/openstack/requests/compute/remove_fixed_ip.rb
cifrado-0.1.1 vendor/fog/lib/fog/openstack/requests/compute/remove_fixed_ip.rb
cifrado-0.1 vendor/fog/lib/fog/openstack/requests/compute/remove_fixed_ip.rb
fog-1.9.0 lib/fog/openstack/requests/compute/remove_fixed_ip.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/openstack/requests/compute/remove_fixed_ip.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/openstack/requests/compute/remove_fixed_ip.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/openstack/requests/compute/remove_fixed_ip.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/openstack/requests/compute/remove_fixed_ip.rb
fog-sgonyea-1.8.1 lib/fog/openstack/requests/compute/remove_fixed_ip.rb
fog-1.8.0 lib/fog/openstack/requests/compute/remove_fixed_ip.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/openstack/requests/compute/remove_fixed_ip.rb
fog-1.7.0 lib/fog/openstack/requests/compute/remove_fixed_ip.rb