mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[Openstack|Compute] server methods for console and migration
This commit is contained in:
parent
e90b4c0757
commit
9e95a13008
1 changed files with 15 additions and 0 deletions
|
@ -165,6 +165,21 @@ module Fog
|
||||||
connection.create_image(id, name, metadata)
|
connection.create_image(id, name, metadata)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def console(log_length = nil)
|
||||||
|
requires :id
|
||||||
|
connection.get_console_output(id, log_length)
|
||||||
|
end
|
||||||
|
|
||||||
|
def migrate
|
||||||
|
requires :id
|
||||||
|
connection.migrate_server(id)
|
||||||
|
end
|
||||||
|
|
||||||
|
def live_migrate(host, block_migration, disk_over_commit)
|
||||||
|
requires :id
|
||||||
|
connection.live_migrate_server(id, host, block_migration, disk_over_commit)
|
||||||
|
end
|
||||||
|
|
||||||
def min_count=(new_min_count)
|
def min_count=(new_min_count)
|
||||||
@min_count = new_min_count
|
@min_count = new_min_count
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue