mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[vsphere|compute] Deprecated the old interface creation and destruction methods now that the idiomatic ones exist.
This commit is contained in:
parent
2c3cd101c1
commit
f27f09b74d
1 changed files with 6 additions and 4 deletions
|
@ -186,8 +186,9 @@ module Fog
|
|||
end
|
||||
|
||||
def add_interface attrs
|
||||
wait_for { not ready? } if interface_ready? attrs
|
||||
service.add_vm_interface(id, attrs)
|
||||
Fog::Logger.deprecation("<server>.add_interface is deprecated. Call <server>.interfaces.create instead.")
|
||||
|
||||
interfaces.create(attrs)
|
||||
end
|
||||
|
||||
def update_interface attrs
|
||||
|
@ -196,8 +197,9 @@ module Fog
|
|||
end
|
||||
|
||||
def destroy_interface attrs
|
||||
wait_for { not ready? } if interface_ready? attrs
|
||||
service.destroy_vm_interface(id, attrs)
|
||||
Fog::Logger.deprecation("<server>.destroy_vm_interface is deprecated. Call <server>.interfaces.get(:key => <nic_key>).destroy instead.")
|
||||
|
||||
interfaces.get(attrs[:key] || attrs['key']).destroy
|
||||
end
|
||||
|
||||
def volumes
|
||||
|
|
Loading…
Add table
Reference in a new issue