1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[rackspace|compute] Update server to use default networks.

Rackspace Cloud Networks uses hard-coded UUIDs for
identifying public net and service net. This defaults the
network array for new servers to use public net and service
net.
This commit is contained in:
Brad Gignac 2013-01-31 22:33:08 -05:00
parent e9a7d8fe80
commit e92d7ee28f

View file

@ -17,6 +17,10 @@ module Fog
data['server']['OS-DCF:diskConfig'] = options[:disk_config] unless options[:disk_config].nil?
data['server']['metadata'] = options[:metadata] unless options[:metadata].nil?
data['server']['personality'] = options[:personality] unless options[:personality].nil?
data['server']['networks'] = options[:networks] || [
{ :uuid => '00000000-0000-0000-0000-000000000000' },
{ :uuid => '11111111-1111-1111-1111-111111111111' }
]
request(
:body => Fog::JSON.encode(data),