fog-softlayer 0.3.12 → 0.3.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGE0MjZlOWMwMjk4MWMxYzRkNzAxMjg4YWUyMzBhYzI3N2FmNjIyMw==
4
+ YWE5MDJiMGQyN2FlZWVjYWI4OGI3YTA5NGMxYzMzNjBlOTk0MDAwOA==
5
5
  data.tar.gz: !binary |-
6
- OGFlYzgxMDY5OWVlNDk2YWUzYjM4ZmMwYWMzZDBjMDNhODIwMTUxMw==
6
+ NDRmMzFjZDFjODRjMDJkYjhlY2E5NjUyYTU1Y2Q4YzVlMGFhNDE0Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzQzOGUzNzM1NWUwNWVjODE1YjA3NTg3ZmQzZmU2MzA1OTdiNjczNmQ1OGY2
10
- YmQyNTBjNTJlZDg0NTA4NzkyM2ExOGM4MzYzODBlMDEyODM3NmE2ZDI0N2Y5
11
- Zjc2Zjc4MTIxNDQ2OGQ0OTIxZTQ1NmFjMTM5NTZmN2RkZGY5ZDc=
9
+ NDE2YzRiODJhZGMxOGRhZjhiYzdiZWU2NDE1MDY2NWY5Mzg5MzNjZDMyZThh
10
+ Y2NkODQ5Nzc5NTQ3ZjgzNGI3ZWVhMzY1ZjE1YWJhM2JjNWU3YjY3NWY2MTI1
11
+ NWIyNWYzNTY2MWNlYTk3ZmYyN2VhM2RhMDgwYTNjYjMxOGYyMzg=
12
12
  data.tar.gz: !binary |-
13
- YjcwYjk5MWQ1YmYzZGNlNmUzNWJmY2ExYWMyNTJkYjc5YTU1Y2M3NmRkNGFh
14
- N2IxNzEyNmJhMDgwOGExYTE3ODQyYjNjZDI4MjllNDA0OTQwNTNhODMwY2Vh
15
- Y2EwNThiYTA1NzA2NmE3NWE3MmRhN2NlNWRhZjYwYjNiYmY1MDc=
13
+ YzFmYmNjNDliYjczNGJjN2FlZDczYzhmNzBhOGM3ODM4OGI2ZmRmMzFhMTBi
14
+ MzY4MTNjNGY5YzhjNWE1NmU2YmZjNTIyMmE2NjFkYjc5NTA0ZjNkOGYxM2Y0
15
+ MWZlOWVlN2FhMDJmNTZlOTQxNGI4NmFmNmQ4MTM2MTFjMjY5MmI=
@@ -1,4 +1,5 @@
1
1
  * Celso Fernandes <fernandes@zertico.com>
2
2
  * Hiroyuki Urasoko <ura.58.58@gmail.com>
3
3
  * Konstantin Krauss <konstantin@propertybase.com>
4
- * Matt Eldridge <matt.eldridge@us.ibm.com>
4
+ * Matt Eldridge <matt.eldridge@us.ibm.com>
5
+ * geemus <geemus@gmail.com>
@@ -86,7 +86,7 @@ global_ip.routed? # => false
86
86
 
87
87
  @compute = Fog::Compute[:softlayer]
88
88
  dest_server = @compute.servers.tagged_with(['production', 'frontend', 'hkg']).first # => <Fog::Compute::Softlayer::Server>
89
- dest_ip = @network.ips.by_address(dest_server.public_ip) # => <Fog::Network::Softlayer::Ip>
89
+ dest_ip = @network.ips.by_address(dest_server.public_ip_address) # => <Fog::Network::Softlayer::Ip>
90
90
 
91
91
 
92
92
  global_ip.route(dest_ip) # => true
@@ -129,7 +129,7 @@ global_ip = @network.ips.by_address('203.0.113.5')
129
129
  global_ip.destination.address # => 203.0.113.8
130
130
 
131
131
  london_server = @compute.servers.tagged_with(['production', 'frontend', 'lon']).first # => <Fog::Compute::Softlayer::Server>
132
- dest_ip = @network.ips.by_address(london_server.public_ip) # => <Fog::Network::Softlayer::Ip>
132
+ dest_ip = @network.ips.by_address(london_server.public_ip_address) # => <Fog::Network::Softlayer::Ip>
133
133
 
134
134
  global_ip.route(dest_ip) # => true
135
135
  global_ip.reload # => <Fog::Network::Softlayer::Ip>
@@ -20,8 +20,8 @@ module Fog
20
20
  attribute :cpu, :aliases => ['startCpus', 'processorCoreAmount']
21
21
  attribute :ram, :aliases => ['maxMemory', 'memory']
22
22
  attribute :disk, :aliases => ['blockDevices','hardDrives']
23
- attribute :private_ip, :aliases => 'primaryBackendIpAddress'
24
- attribute :public_ip, :aliases => 'primaryIpAddress'
23
+ attribute :private_ip_address, :aliases => 'primaryBackendIpAddress'
24
+ attribute :public_ip_address, :aliases => 'primaryIpAddress'
25
25
  attribute :flavor_id
26
26
  attribute :bare_metal, :type => :boolean
27
27
  attribute :os_code
@@ -132,6 +132,14 @@ module Fog
132
132
  clean_attributes
133
133
  end
134
134
 
135
+ def private_ip # maintain backward compatibility with <0.3.13
136
+ private_ip_address
137
+ end
138
+
139
+ def public_ip # maintain backward compatibility with <0.3.13
140
+ public_ip_address
141
+ end
142
+
135
143
  def os_code
136
144
  attributes['operatingSystem']['softwareLicense']['softwareDescription']['referenceCode'] if attributes['operatingSystem']
137
145
  end
@@ -7,6 +7,6 @@
7
7
 
8
8
  module Fog
9
9
  module Softlayer
10
- VERSION = "0.3.12"
10
+ VERSION = "0.3.13"
11
11
  end
12
12
  end
@@ -140,8 +140,8 @@ class Softlayer
140
140
  :cpu => Fog::Nullable::String,
141
141
  :ram => Fog::Nullable,
142
142
  :disk => Fog::Nullable::Array,
143
- :private_ip => Fog::Nullable::String,
144
- :public_ip => Fog::Nullable::String,
143
+ :private_ip_address => Fog::Nullable::String,
144
+ :public_ip_address => Fog::Nullable::String,
145
145
  :flavor_id => Fog::Nullable::String,
146
146
  :bare_metal => Fog::Nullable::Boolean,
147
147
  :os_code => Fog::Nullable::String,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-softlayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.12
4
+ version: 0.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Eldridge