diff --git a/lib/fog/clodo/compute.rb b/lib/fog/clodo/compute.rb index 48b4fbd39..24773d68e 100644 --- a/lib/fog/clodo/compute.rb +++ b/lib/fog/clodo/compute.rb @@ -26,6 +26,9 @@ module Fog request :stop_server request :reboot_server request :rebuild_server + request :add_ip_address + request :delete_ip_address + request :move_ip_address # request :list_addresses # request :list_private_addresses # request :list_public_addresses diff --git a/lib/fog/clodo/models/compute/server.rb b/lib/fog/clodo/models/compute/server.rb index e7e1b7ae7..81085c3f2 100644 --- a/lib/fog/clodo/models/compute/server.rb +++ b/lib/fog/clodo/models/compute/server.rb @@ -76,6 +76,18 @@ module Fog pubaddrs && !pubaddrs.empty? ? pubaddrs.first['ip'] : nil end + def add_ip_address + connection.add_ip_address(id) + end + + def move_ip_address(ip_address) + connection.move_ip_address(id, ip_address) + end + + def delete_ip_address(ip_address) + connection.delete_ip_address(id, ip_address) + end + def public_key_path @public_key_path ||= Fog.credentials[:public_key_path] @public_key_path &&= File.expand_path(@public_key_path)