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:
parent
e9a7d8fe80
commit
e92d7ee28f
1 changed files with 4 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue