Merge "[FUEL-323]"

This commit is contained in:
Victor Galkin 2012-12-24 23:27:06 +04:00 committed by Gerrit Code Review
commit 426eb2607a
1 changed files with 3 additions and 1 deletions

View File

@ -33,12 +33,14 @@ Puppet::Type.type(:nova_network).provide(:nova_manage) do
:gateway => '--gateway',
:bridge => '--bridge',
:vlan_start => '--vlan',
:network_size => '--network_size'
}.each do |param, opt|
if resource[param]
optional_opts.push(opt).push(resource[param])
end
end
if resource[:network_size].to_i <= 2**(32-resource[:name].split('/')[1].to_i)-1
optional_opts.push('--network_size').push(resource[:network_size])
end
nova_manage('network', 'create',
resource[:label],