fog-softlayer 0.3.12 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/CONTRIBUTORS.md +2 -1
- data/examples/global_ip_address.md +2 -2
- data/lib/fog/softlayer/models/compute/server.rb +10 -2
- data/lib/fog/softlayer/version.rb +1 -1
- data/tests/softlayer/compute/schema.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWE5MDJiMGQyN2FlZWVjYWI4OGI3YTA5NGMxYzMzNjBlOTk0MDAwOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDRmMzFjZDFjODRjMDJkYjhlY2E5NjUyYTU1Y2Q4YzVlMGFhNDE0Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDE2YzRiODJhZGMxOGRhZjhiYzdiZWU2NDE1MDY2NWY5Mzg5MzNjZDMyZThh
|
10
|
+
Y2NkODQ5Nzc5NTQ3ZjgzNGI3ZWVhMzY1ZjE1YWJhM2JjNWU3YjY3NWY2MTI1
|
11
|
+
NWIyNWYzNTY2MWNlYTk3ZmYyN2VhM2RhMDgwYTNjYjMxOGYyMzg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzFmYmNjNDliYjczNGJjN2FlZDczYzhmNzBhOGM3ODM4OGI2ZmRmMzFhMTBi
|
14
|
+
MzY4MTNjNGY5YzhjNWE1NmU2YmZjNTIyMmE2NjFkYjc5NTA0ZjNkOGYxM2Y0
|
15
|
+
MWZlOWVlN2FhMDJmNTZlOTQxNGI4NmFmNmQ4MTM2MTFjMjY5MmI=
|
data/CONTRIBUTORS.md
CHANGED
@@ -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.
|
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.
|
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 :
|
24
|
-
attribute :
|
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
|
@@ -140,8 +140,8 @@ class Softlayer
|
|
140
140
|
:cpu => Fog::Nullable::String,
|
141
141
|
:ram => Fog::Nullable,
|
142
142
|
:disk => Fog::Nullable::Array,
|
143
|
-
:
|
144
|
-
:
|
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,
|