mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Adding public_ip_address and private_ip_address to Fog::Compute::RackspaceV2::Server
This commit is contained in:
parent
82c6dd9cc9
commit
58ba3fdb3a
1 changed files with 8 additions and 0 deletions
|
@ -93,6 +93,14 @@ module Fog
|
|||
end
|
||||
end
|
||||
|
||||
def private_ip_address
|
||||
addresses['private'].select{|a| a["version"] == 4}[0]["addr"]
|
||||
end
|
||||
|
||||
def public_ip_address
|
||||
ipv4_address
|
||||
end
|
||||
|
||||
def ready?
|
||||
state == ACTIVE
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue